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 53048Samaguire# Common Development and Distribution License (the "License"). 63048Samaguire# 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*10889SJonathan.Adams@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate# Use is subject to license terms. 240Sstevel@tonic-gate# 250Sstevel@tonic-gate 260Sstevel@tonic-gatePROG = inetd 270Sstevel@tonic-gateMANIFEST= inetd.xml inetd-upgrade.xml 280Sstevel@tonic-gateSVCMETHOD= inetd-upgrade 290Sstevel@tonic-gate 300Sstevel@tonic-gateOBJS = inetd.o tlx.o config.o util.o contracts.o repval.o wait.o env.o 310Sstevel@tonic-gateSRCS = $(OBJS:%.o=%.c) 320Sstevel@tonic-gate 330Sstevel@tonic-gateinclude ../../../Makefile.cmd 340Sstevel@tonic-gateinclude ../../Makefile.cmd-inet 35*10889SJonathan.Adams@Sun.COMinclude ../../../Makefile.ctf 360Sstevel@tonic-gate 370Sstevel@tonic-gateROOTMANIFESTDIR= $(ROOTSVCNETWORK) 380Sstevel@tonic-gate 396309SceasthaCPPFLAGS += -D_FILE_OFFSET_BITS=64 -I$(CMDINETCOMMONDIR) -D_REENTRANT 400Sstevel@tonic-gate$(RELEASE_BUILD)CPPFLAGS += -DNDEBUG 410Sstevel@tonic-gate 420Sstevel@tonic-gateLDLIBS += -lsocket -lnsl -lrestart -lscf -lcontract -linetutil \ 436309Sceastha -lwrap -linetsvc -luutil -lumem -lbsm 440Sstevel@tonic-gate 450Sstevel@tonic-gateCLOBBERFILES += $(SVCMETHOD) 460Sstevel@tonic-gate 470Sstevel@tonic-gate# lint doesn't like the unused _umem_*_init() 480Sstevel@tonic-gatelint_SRCS := LINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2 490Sstevel@tonic-gate 500Sstevel@tonic-gate.PARALLEL: $(OBJS) 510Sstevel@tonic-gate.WAIT: $(PROG) 520Sstevel@tonic-gate.KEEP_STATE: 530Sstevel@tonic-gate 540Sstevel@tonic-gateall: $(PROG) $(SVCMETHOD) 550Sstevel@tonic-gate 560Sstevel@tonic-gate$(PROG): $(OBJS) 57*10889SJonathan.Adams@Sun.COM $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 580Sstevel@tonic-gate $(POST_PROCESS) 590Sstevel@tonic-gate 600Sstevel@tonic-gateinclude ../Makefile.lib 610Sstevel@tonic-gate 620Sstevel@tonic-gateinstall: all $(ROOTLIBINETPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD) 630Sstevel@tonic-gate -$(RM) $(ROOTUSRSBINPROG) 640Sstevel@tonic-gate -$(SYMLINK) ../lib/inet/${PROG} $(ROOTUSRSBINPROG) 650Sstevel@tonic-gate 660Sstevel@tonic-gatecheck: $(CHKMANIFEST) 670Sstevel@tonic-gate 680Sstevel@tonic-gateclean: 690Sstevel@tonic-gate $(RM) $(OBJS) 700Sstevel@tonic-gate 710Sstevel@tonic-gatelint: lint_SRCS 720Sstevel@tonic-gate 730Sstevel@tonic-gateinclude ../../../Makefile.targ 74