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