Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
1452N/A#
1452N/A# CDDL HEADER START
1452N/A#
1452N/A# The contents of this file are subject to the terms of the
1452N/A# Common Development and Distribution License, Version 1.0 only
1452N/A# (the "License"). You may not use this file except in compliance
1452N/A# with the License.
1452N/A#
1452N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1452N/A# or http://www.opensolaris.org/os/licensing.
1452N/A# See the License for the specific language governing permissions
1452N/A# and limitations under the License.
1452N/A#
1452N/A# When distributing Covered Code, include this CDDL HEADER in each
1452N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1452N/A# If applicable, add the following below this CDDL HEADER, with the
1452N/A# fields enclosed by brackets "[]" replaced with your own identifying
1452N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1452N/A#
1452N/A# CDDL HEADER END
1452N/A#
1452N/A#
1452N/A# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
1452N/A# Use is subject to license terms.
1452N/A#
1452N/A# ident "%Z%%M% %I% %E% SMI"
1452N/A#
1452N/A
1452N/ANETYPPROG = rpc.yppasswdd # pwconv passmgmt
1452N/ADFLTSRC = yppasswdd.dfl
1452N/APROG = $(NETYPPROG)
1452N/A
1452N/AMANIFEST = passwd.xml
1452N/A
1452N/Ainclude ../../Makefile.cmd
1452N/A
1452N/AROOTMANIFESTDIR = $(ROOTSVCNETWORKNIS)
1452N/A
1452N/A#installed directories
1452N/ARPCSVC= $(ROOT)/usr/include/rpcsvc
1452N/ANETSVC = $(ROOTLIB)/netsvc
1452N/ANETYP = $(NETSVC)/yp
1452N/ADFLTDIR = $(ROOTETC)/default
1452N/AROOTDIRS = $(NETSVC) $(NETYP) $(ROOTETC) $(DFLTDIR)
1452N/A
1452N/A# include library definitions
1452N/A#LDLIBS += -lrpcsvc -lnsl -lcrypt -lintl -lgen
1452N/ALDLIBS += -lnsl -lcmd -lc -lnisdb
1452N/A
1452N/A# Pick up includes from library
1452N/ACPPFLAGS += -I$(SRC)/lib/libnisdb/yptol
1452N/A
1452N/A# This file is now in the $(SRC)/head/rpcsvc directory.
1452N/A#HDRFILE= yppasswd.h
1452N/A#IHDRFILE= $(HDRFILE:%=$(RPCSVC)/%)
1452N/A
1452N/AINETYPPROG= $(NETYPPROG:%=$(NETYP)/%)
1452N/AETCDFLTFILE= $(NETYPPROG:rpc.%=$(DFLTDIR)/%)
1452N/A
1452N/ACOMMONOBJ = yppasswdxdr.o yplckpwdf.o
1452N/ARPCYPPASSWDDOBJ = yppasswdd.o changepasswd.o
1452N/A#YPPWCONVOBJ = pwconv.o
1452N/A#YPPASSMGMTOBJ = passmgmt.o
1452N/A
1452N/A#
1476N/A# Objects shared between all the major components
1476N/A#
1452N/ASHAREDOBJ= ../shared/utils.o ../shared/lockmap.o ../shared/ancil.o
1452N/A
1452N/AOBJS = $(RPCYPPASSWDDOBJ) \
1452N/A $(COMMONOBJ)
1452N/A # $(YPPWCONVOBJ) $(YPPASSMGMTOBJ)
1452N/A
1452N/ASRCS = $(OBJS:%.o=%.c)
1452N/A
1452N/A#conditional assignments
1452N/A$(INETSVC) := GROUP=bin
1452N/A$(INETSVC) := FILEMODE=555
1452N/A
1452N/A$(ETCDFLTFILE) := GROUP=sys
1452N/A$(ETCDFLTFILE) := FILEMODE=0444
1452N/A
1452N/A$(ROOTMANIFEST) := FILEMODE = 0444
1452N/A
1452N/A#install rules
1452N/A
1452N/A.KEEP_STATE:
1452N/A
1452N/Aall: $(PROG)
1452N/A
1452N/Arpc.yppasswdd: $(RPCYPPASSWDDOBJ) $(COMMONOBJ)
1452N/A $(LINK.cc) -o $@ $(RPCYPPASSWDDOBJ) \
1452N/A $(SHAREDOBJ) $(COMMONOBJ) $(LDLIBS)
1452N/A $(POST_PROCESS)
1452N/A
1452N/Ainstall: all $(ROOTDIRS) $(IBINPROG) $(INETYPPROG) $(ETCDFLTFILE) \
1452N/A $(ROOTMANIFEST)
1452N/A
1452N/A$(ROOTDIRS):
1452N/A $(INS.dir)
1452N/A
1452N/A$(NETYP)/%: %
1452N/A $(INS.file)
1452N/A
1452N/A$(DFLTDIR)/% : %.dfl
1476N/A $(INS.rename)
1452N/A
1452N/Aclean:
1452N/A $(RM) $(OBJS)
1452N/A
1452N/Alint: lint_SRCS
1452N/A
1452N/Acheck: $(CHKMANIFEST)
1452N/A
1452N/Acstyle:
1452N/A ${CSTYLE} ${SRCS}
1452N/A
1452N/A# include library targets
1452N/Ainclude ../../Makefile.targ
1452N/A