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