Makefile revision 6e91bba0d6c6bdabbba62cefae583715a4a58e2a
7f007e36bec06aba6b3a0f84a64f2abf99edfcd8gstein#
9bd71e35f5d26d26d23fe3a677401828e842ed72wrowe# CDDL HEADER START
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# The contents of this file are subject to the terms of the
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Common Development and Distribution License (the "License").
9bd71e35f5d26d26d23fe3a677401828e842ed72wrowe# You may not use this file except in compliance with the License.
2900ab946a2d76b73a14cebfe2985d253f01c967stoddard#
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb# or http://www.opensolaris.org/os/licensing.
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb# See the License for the specific language governing permissions
b876b7bcf0ce3d232da723246d709e8dbbfe8762rbb# and limitations under the License.
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein#
35330e0d79ceb8027223bbb8330a381b1f989d6etrawick# When distributing Covered Code, include this CDDL HEADER in each
6f6f4a4bca281779d196acbdd5c017bb90858305trawick# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8dd4618c4709236b4ea297d7250d282e463ce2d8rbb# If applicable, add the following below this CDDL HEADER, with the
09bd86d0db1114ee23eda0a6eb76ca055877a1cftrawick# fields enclosed by brackets "[]" replaced with your own identifying
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb# information: Portions Copyright [yyyy] [name of copyright owner]
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb#
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj# CDDL HEADER END
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a4b7a53f3573605d4f5686f03a67c37425dc22bgregames# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
2a4b7a53f3573605d4f5686f03a67c37425dc22bgregames# Use is subject to license terms.
5ac928b7a71a12bc1a6b42194c47edbff1dcc02fgregames#
5ac928b7a71a12bc1a6b42194c47edbff1dcc02fgregames# cmd/cmd-inet/usr.lib/in.ndpd/Makefile
2a4b7a53f3573605d4f5686f03a67c37425dc22bgregames#
5b233db661cfc7c8c420dfe63d8e7058bc5d3e62trawick
f467b575e2698cfeb818b357b00b2a13873eb309trawickPROG= in.ndpd
f467b575e2698cfeb818b357b00b2a13873eb309trawickOBJS= config.o main.o ndp.o tables.o trace.o
f467b575e2698cfeb818b357b00b2a13873eb309trawickSRCS= $(OBJS:%.o=%.c)
f467b575e2698cfeb818b357b00b2a13873eb309trawickSVCMETHOD= svc-ndp
f467b575e2698cfeb818b357b00b2a13873eb309trawickMANIFEST= ndp.xml
f467b575e2698cfeb818b357b00b2a13873eb309trawick
f467b575e2698cfeb818b357b00b2a13873eb309trawickinclude ../../../Makefile.cmd
f467b575e2698cfeb818b357b00b2a13873eb309trawick
f467b575e2698cfeb818b357b00b2a13873eb309trawickROOTMANIFESTDIR= $(ROOTSVCNETWORKROUTING)
f467b575e2698cfeb818b357b00b2a13873eb309trawick
f467b575e2698cfeb818b357b00b2a13873eb309trawick# in.ndpd uses the ancillary data feature which is available only through
f467b575e2698cfeb818b357b00b2a13873eb309trawick# UNIX 98 standards version of Socket interface. This interface is supposed to
f467b575e2698cfeb818b357b00b2a13873eb309trawick# be accessed by -lxnet. In addition -lsocket and -lnsl are used to
f467b575e2698cfeb818b357b00b2a13873eb309trawick# capture new not-yet-standard interfaces. Someday -lxnet alone should be enough
f467b575e2698cfeb818b357b00b2a13873eb309trawick# when IPv6 inspired new interfaces are part of standards.
f467b575e2698cfeb818b357b00b2a13873eb309trawickLDLIBS += -ldhcpagent -lxnet -lsocket -lnsl -lipadm
f467b575e2698cfeb818b357b00b2a13873eb309trawick
f467b575e2698cfeb818b357b00b2a13873eb309trawick# these #defines are required to use UNIX 98 interfaces
f467b575e2698cfeb818b357b00b2a13873eb309trawick_D_UNIX98_EXTN= -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
f467b575e2698cfeb818b357b00b2a13873eb309trawick
f467b575e2698cfeb818b357b00b2a13873eb309trawick$(OBJS) := CPPFLAGS += $(_D_UNIX98_EXTN)
f467b575e2698cfeb818b357b00b2a13873eb309trawick
f467b575e2698cfeb818b357b00b2a13873eb309trawickLINTFLAGS += $(_D_UNIX98_EXTN)
f467b575e2698cfeb818b357b00b2a13873eb309trawick
f467b575e2698cfeb818b357b00b2a13873eb309trawick# This shouldn't be necessary, but linking with libxnet requires it.
f467b575e2698cfeb818b357b00b2a13873eb309trawickLINTFLAGS += -erroff=E_INCONS_ARG_DECL2 -erroff=E_INCONS_VAL_TYPE_DECL2
f467b575e2698cfeb818b357b00b2a13873eb309trawick
f467b575e2698cfeb818b357b00b2a13873eb309trawick# This is needed to avoid littering the code with useless LINTED statements
f467b575e2698cfeb818b357b00b2a13873eb309trawick# for each place where pointers are casted. It's not perfect, but being
f467b575e2698cfeb818b357b00b2a13873eb309trawick# perfect would require a bigger rewrite.
f467b575e2698cfeb818b357b00b2a13873eb309trawickLINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN
f467b575e2698cfeb818b357b00b2a13873eb309trawick
f467b575e2698cfeb818b357b00b2a13873eb309trawickCTFCONVERT_HOOK = && $(CTFCONVERT_O)
f467b575e2698cfeb818b357b00b2a13873eb309trawickCTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(OBJS)
f467b575e2698cfeb818b357b00b2a13873eb309trawick$(OBJS) := CFLAGS += $(CTF_FLAGS)
2b4a4e1af8497e0f4600ef7b79d284e71f374052trawick
2b4a4e1af8497e0f4600ef7b79d284e71f374052trawick.KEEP_STATE:
2b4a4e1af8497e0f4600ef7b79d284e71f374052trawick
2b4a4e1af8497e0f4600ef7b79d284e71f374052trawick.PARALLEL: $(OBJS)
e5d1a36ad35f809c6f1bd3339aae78569abdd48ctrawick
e5d1a36ad35f809c6f1bd3339aae78569abdd48ctrawickall: $(PROG)
e5d1a36ad35f809c6f1bd3339aae78569abdd48ctrawick
e5d1a36ad35f809c6f1bd3339aae78569abdd48ctrawick$(PROG): $(OBJS)
e5d1a36ad35f809c6f1bd3339aae78569abdd48ctrawick $(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(CTFMERGE_HOOK)
e5d1a36ad35f809c6f1bd3339aae78569abdd48ctrawick $(POST_PROCESS)
e5d1a36ad35f809c6f1bd3339aae78569abdd48ctrawick
e5d1a36ad35f809c6f1bd3339aae78569abdd48ctrawickinclude ../Makefile.lib
e5d1a36ad35f809c6f1bd3339aae78569abdd48ctrawick
e5d1a36ad35f809c6f1bd3339aae78569abdd48ctrawickinstall: all $(ROOTLIBINETPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
e5d1a36ad35f809c6f1bd3339aae78569abdd48ctrawick
e5d1a36ad35f809c6f1bd3339aae78569abdd48ctrawickcheck: $(CHKMANIFEST)
e5d1a36ad35f809c6f1bd3339aae78569abdd48ctrawick
e5d1a36ad35f809c6f1bd3339aae78569abdd48ctrawickclean:
e5d1a36ad35f809c6f1bd3339aae78569abdd48ctrawick $(RM) $(OBJS)
e5d1a36ad35f809c6f1bd3339aae78569abdd48ctrawick
e5d1a36ad35f809c6f1bd3339aae78569abdd48ctrawicklint: lint_SRCS
e5d1a36ad35f809c6f1bd3339aae78569abdd48ctrawick
e5d1a36ad35f809c6f1bd3339aae78569abdd48ctrawickinclude ../../../Makefile.targ
5b233db661cfc7c8c420dfe63d8e7058bc5d3e62trawick