10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*3048Samaguire# Common Development and Distribution License (the "License"). 6*3048Samaguire# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 210Sstevel@tonic-gate# 22*3048Samaguire# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate# Use is subject to license terms. 240Sstevel@tonic-gate# 250Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 260Sstevel@tonic-gate# 270Sstevel@tonic-gate# cmd/cmd-inet/usr.lib/in.ripngd/Makefile 280Sstevel@tonic-gate# 290Sstevel@tonic-gate 30*3048SamaguireSVCMETHOD= svc-ripng 31*3048SamaguireMANIFEST= ripng.xml 32*3048Samaguire 330Sstevel@tonic-gatePROG= in.ripngd 340Sstevel@tonic-gateOBJS= if.o input.o main.o output.o startup.o tables.o timer.o trace.o 350Sstevel@tonic-gateSRCS= $(OBJS:%.o=%.c) 360Sstevel@tonic-gate 370Sstevel@tonic-gateinclude ../../../Makefile.cmd 380Sstevel@tonic-gate 39*3048SamaguireROOTMANIFESTDIR= $(ROOTSVCNETWORKROUTING) 40*3048Samaguire 410Sstevel@tonic-gate# these #defines are required to use UNIX 98 interfaces 420Sstevel@tonic-gate_D_UNIX98_EXTN= -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ 430Sstevel@tonic-gate 440Sstevel@tonic-gate$(OBJS) := CFLAGS += $(CCVERBOSE) 450Sstevel@tonic-gate$(OBJS) := CPPFLAGS += $(_D_UNIX98_EXTN) 460Sstevel@tonic-gate 470Sstevel@tonic-gateLINTFLAGS += $(_D_UNIX98_EXTN) 480Sstevel@tonic-gate 490Sstevel@tonic-gate# in.ripngd uses the ancillary data feature which is available only through 500Sstevel@tonic-gate# UNIX 98 standards version of Socket interface. This interface is supposed to 510Sstevel@tonic-gate# be accessed by -lxnet. In addition, -lsocket and -lnsl are used to 520Sstevel@tonic-gate# capture new not-yet-standard interfaces. Someday -lxnet alone should be enough 530Sstevel@tonic-gate# when IPv6 inspired new interfaces are part of standards. 540Sstevel@tonic-gateLDLIBS += -lxnet -lsocket -lnsl 550Sstevel@tonic-gate 560Sstevel@tonic-gate.KEEP_STATE: 570Sstevel@tonic-gate 580Sstevel@tonic-gate.PARALLEL: $(OBJS) 590Sstevel@tonic-gate 600Sstevel@tonic-gateall: $(PROG) 610Sstevel@tonic-gate 620Sstevel@tonic-gate$(PROG): $(OBJS) 630Sstevel@tonic-gate $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 640Sstevel@tonic-gate $(POST_PROCESS) 650Sstevel@tonic-gate 660Sstevel@tonic-gateinclude ../Makefile.lib 670Sstevel@tonic-gate 68*3048Samaguireinstall: all $(ROOTLIBINETPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD) 69*3048Samaguire 70*3048Samaguirecheck: $(CHKMANIFEST) 710Sstevel@tonic-gate 720Sstevel@tonic-gateclean: 730Sstevel@tonic-gate $(RM) $(OBJS) 740Sstevel@tonic-gate 75*3048Samaguirelint: lint_SRCS 760Sstevel@tonic-gate 770Sstevel@tonic-gateinclude ../../../Makefile.targ 78