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