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 52830Sdjl# Common Development and Distribution License (the "License"). 62830Sdjl# 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*12788Sgary.winiger@oracle.com# Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved. 230Sstevel@tonic-gate# 242830Sdjl# Makefile for name service cache daemon 252830Sdjl# 260Sstevel@tonic-gate 272837SrafPROG= nscd 280Sstevel@tonic-gateMANIFEST= name-service-cache.xml 290Sstevel@tonic-gateSVCMETHOD= svc-nscd 300Sstevel@tonic-gate 310Sstevel@tonic-gateinclude ../Makefile.cmd 320Sstevel@tonic-gate 330Sstevel@tonic-gateROOTMANIFESTDIR= $(ROOTSVCSYSTEM) 340Sstevel@tonic-gate 352830SdjlOBJS= server.o getpw.o getgr.o gethost.o getnode.o \ 362830Sdjl getether.o getrpc.o getproto.o getnet.o \ 37*12788Sgary.winiger@oracle.com getbootp.o getauth.o getserv.o \ 382830Sdjl getnetmasks.o getprinter.o getproject.o \ 392830Sdjl getexec.o getprof.o getuser.o cache.o \ 402830Sdjl nscd_biggest.o nscd_wait.o \ 412830Sdjl nscd_init.o nscd_access.o nscd_cfgfile.o nscd_config.o \ 422830Sdjl nscd_dbimpl.o nscd_getentctx.o nscd_intaddr.o \ 432830Sdjl nscd_log.o nscd_nswconfig.o nscd_nswstate.o nscd_nswcfgst.o \ 442830Sdjl nscd_seqnum.o nscd_smfmonitor.o \ 452830Sdjl nscd_switch.o nscd_nswparse.o nscd_initf.o nscd_selfcred.o \ 462830Sdjl nscd_frontend.o nscd_admin.o nscd_door.o \ 472830Sdjl gettnrhtp.o gettnrhdb.o 480Sstevel@tonic-gate 4911262SRajagopal.Andra@Sun.COMCLOBBERFILES= nscd 500Sstevel@tonic-gate 512837SrafSRCS= ${OBJS:%.o=%.c} 520Sstevel@tonic-gate 532837SrafCFLAGS += $(CCVERBOSE) 542837SrafCPPFLAGS += -D_REENTRANT -DSUN_THREADS \ 552830Sdjl -I../../lib/libc/port/gen -I../../lib/libc/inc \ 562830Sdjl -I../../lib/libsldap/common 572830SdjlLINTFLAGS += -erroff=E_GLOBAL_COULD_BE_STATIC2 582830SdjlLINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2 592830SdjlLINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2 600Sstevel@tonic-gate 614271Srie# nscd interposes on many symbols, and must export others for its own dlsym() 624271Srie# use, and dlsym() calls from libc. Itemizing the interfaces within a mapfile 634271Srie# is error-prone, so establish the whole object as an interposer. 644271SrieLDFLAGS += $(ZINTERPOSE) 654271Srie 660Sstevel@tonic-gate# TCOV_FLAG= -ql 670Sstevel@tonic-gate# GPROF_FLAG= -xpg 680Sstevel@tonic-gate# DEBUG_FLAG= -g 690Sstevel@tonic-gate 702924SmichenPROGLIBS= $(LDLIBS) -lresolv -lnsl -lsocket -lumem -lscf -lavl 710Sstevel@tonic-gate 720Sstevel@tonic-gate# install macros and rule 730Sstevel@tonic-gate# 740Sstevel@tonic-gateROOTPROG= ${ROOTUSRSBIN}/nscd 750Sstevel@tonic-gate 760Sstevel@tonic-gate.KEEP_STATE: 770Sstevel@tonic-gate 780Sstevel@tonic-gateall: $(PROG) $(NISPROG) 790Sstevel@tonic-gate 800Sstevel@tonic-gate${PROG}: ${OBJS} 812837Sraf ${LINK.c} ${OPT} -o $@ ${OBJS} ${PROGLIBS} 820Sstevel@tonic-gate ${POST_PROCESS} 830Sstevel@tonic-gate 840Sstevel@tonic-gatelint: 852837Sraf $(LINT.c) ${SRCS} ${PROGLIBS} 860Sstevel@tonic-gate 870Sstevel@tonic-gatecstyle: 8811262SRajagopal.Andra@Sun.COM ${CSTYLE} ${SRCS} 890Sstevel@tonic-gate 9011262SRajagopal.Andra@Sun.COMinstall: all $(ROOTPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD) 910Sstevel@tonic-gate 920Sstevel@tonic-gatecheck: $(CHKMANIFEST) 930Sstevel@tonic-gate 940Sstevel@tonic-gateclean: 9511262SRajagopal.Andra@Sun.COM ${RM} ${OBJS} 960Sstevel@tonic-gate 970Sstevel@tonic-gate${ROOTUSRSBIN}/%: % 980Sstevel@tonic-gate ${INS.file} 990Sstevel@tonic-gate 1000Sstevel@tonic-gate${ROOTUSRLIB}/%: % 1010Sstevel@tonic-gate ${INS.file} 1020Sstevel@tonic-gate 1030Sstevel@tonic-gateinclude ../Makefile.targ 104