Makefile revision 69bb4bb45c98da60d21839c4dc3c01ea1be60585
221N/A#
221N/A# CDDL HEADER START
221N/A#
221N/A# The contents of this file are subject to the terms of the
221N/A# Common Development and Distribution License (the "License").
221N/A# You may not use this file except in compliance with the License.
221N/A#
221N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
221N/A# or http://www.opensolaris.org/os/licensing.
221N/A# See the License for the specific language governing permissions
221N/A# and limitations under the License.
221N/A#
221N/A# When distributing Covered Code, include this CDDL HEADER in each
221N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
221N/A# If applicable, add the following below this CDDL HEADER, with the
221N/A# fields enclosed by brackets "[]" replaced with your own identifying
221N/A# information: Portions Copyright [yyyy] [name of copyright owner]
221N/A#
221N/A# CDDL HEADER END
221N/A#
5680N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5680N/A# Use is subject to license terms.
5626N/A#
221N/A# ident "%Z%%M% %I% %E% SMI"
5680N/A#
5626N/A# cmd/cmd-inet/usr.lib/in.ndpd/Makefile
5680N/A#
221N/A
6398N/APROG= in.ndpd
6398N/AOBJS= config.o main.o ndp.o tables.o trace.o
6398N/ASRCS= $(OBJS:%.o=%.c)
6398N/A
6398N/Ainclude ../../../Makefile.cmd
6398N/A
6398N/A# in.ndpd uses the ancillary data feature which is available only through
221N/A# UNIX 98 standards version of Socket interface. This interface is supposed to
6398N/A# be accessed by -lxnet. In addition -lsocket and -lnsl are used to
2899N/A# capture new not-yet-standard interfaces. Someday -lxnet alone should be enough
2899N/A# when IPv6 inspired new interfaces are part of standards.
5680N/ALDLIBS += -lxnet -lsocket -lnsl
221N/A
679N/A# these #defines are required to use UNIX 98 interfaces
679N/A_D_UNIX98_EXTN= -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
679N/A
679N/A$(OBJS) := CPPFLAGS += $(_D_UNIX98_EXTN)
679N/A
679N/ALINTFLAGS += $(_D_UNIX98_EXTN)
679N/A
679N/A# This shouldn't be necessary, but linking with libxnet requires it.
221N/ALINTFLAGS += -erroff=E_INCONS_ARG_DECL2 -erroff=E_INCONS_VAL_TYPE_DECL2
221N/A
5795N/A# This is needed to avoid littering the code with useless LINTED statements
5795N/A# for each place where pointers are casted. It's not perfect, but being
5795N/A# perfect would require a bigger rewrite.
5795N/ALINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN
5795N/A
5795N/A.KEEP_STATE:
5795N/A
5795N/A.PARALLEL: $(OBJS)
5795N/A
5795N/Aall: $(PROG)
5795N/A
5795N/A$(PROG): $(OBJS)
5795N/A $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
5795N/A $(POST_PROCESS)
5795N/A
5626N/Ainclude ../Makefile.lib
5626N/A
5626N/Ainstall: all $(ROOTLIBINETPROG)
5626N/A
5626N/Aclean:
5626N/A $(RM) $(OBJS)
5626N/A
5626N/Alint: lint_SRCS
5795N/A
5626N/Ainclude ../../../Makefile.targ
5626N/A