Makefile revision d04ccbb3f3163ae5962a8b7465d9796bff6ca434
1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A#
1N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
1N/A# Use is subject to license terms.
1N/A#
1N/A# ident "%Z%%M% %I% %E% SMI"
1N/A#
1N/A
1N/APROG = dhcpagent
1N/AROOTFS_PROG = $(PROG)
1N/ADEFAULTFILES = dhcpagent.dfl
1N/A
1N/ALOCOBJS = adopt.o agent.o async.o bound.o class_id.o defaults.o \
1N/A dlpi_io.o dlprims.o inform.o init_reboot.o interface.o ipc_action.o \
1N/A packet.o release.o renew.o request.o script_handler.o select.o \
1N/A states.o util.o
1N/ACOMDIR = $(SRC)/common/net/dhcp
1N/ACOMOBJS = ipv4_sum.o udp_sum.o
1N/A
1N/Ainclude ../../../Makefile.cmd
1N/A
1N/AOBJS = $(COMOBJS) $(LOCOBJS)
1N/ASRCS = $(COMOBJS:%.o=$(COMDIR)/%.c) $(LOCOBJS:%.o=%.c)
1N/A
1N/APOFILES = $(LOCOBJS:%.o=%.po)
1N/AXGETFLAGS += -a -x dhcpagent.xcl
1N/A
1N/A#
1N/A# to compile a debug version, do a `make COPTFLAG="-g -XO0"'
1N/A#
1N/A
1N/ACPPFLAGS += -I$(COMDIR) -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
1N/ALDLIBS += -lxnet -lnvpair -ldhcpagent -ldhcputil -linetutil -ldevinfo
1N/A
1N/A# Disable warnings that affect all XPG applications.
1N/ALINTFLAGS += -erroff=E_INCONS_ARG_DECL2 -erroff=E_INCONS_VAL_TYPE_DECL2
1N/A
1N/A.KEEP_STATE:
1N/A
1N/Aall: $(ROOTFS_PROG)
1N/A
1N/Ainstall: all $(ROOTSBINPROG) $(ROOTETCDEFAULTFILES)
1N/A
1N/A$(PROG): $(OBJS)
1N/A $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
1N/A $(POST_PROCESS)
1N/A
1N/A%.o: $(COMDIR)/%.c
1N/A $(COMPILE.c) $(OUTPUT_OPTION) $<
1N/A $(POST_PROCESS_O)
1N/A
1N/A$(POFILE): $(POFILES)
1N/A $(RM) $@; $(CAT) $(POFILES) > $@; $(RM) $(POFILES)
1N/A
1N/Aclean:
1N/A $(RM) $(OBJS)
1N/A
1N/Alint: lint_SRCS
1N/A
1N/Ainclude ../../../Makefile.targ
1N/A