Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
369N/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#
6320N/A#
369N/A# Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
369N/A#
369N/A
369N/ANETYPPROG = rpc.yppasswdd
6320N/ADEFAULTFILES = yppasswdd.dfl
369N/APROG = $(NETYPPROG)
369N/A
844N/AMANIFEST = passwd.xml
6320N/A
6320N/Ainclude ../../Makefile.cmd
369N/A
3996N/AROOTMANIFESTDIR = $(ROOTSVCNETWORKNIS)
3996N/A
369N/A#installed directories
369N/ARPCSVC= $(ROOT)/usr/include/rpcsvc
369N/ANETSVC = $(ROOTLIB)/netsvc
369N/ANETYP = $(NETSVC)/yp
6320N/AROOTDIRS = $(NETSVC) $(NETYP)
6320N/A
369N/A# include library definitions
369N/A#LDLIBS += -lrpcsvc -lnsl -lcrypt -lintl -lgen
369N/ALDLIBS += -lnsl -lnisdb -lc
369N/AMAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
6320N/ALDFLAGS += $(MAPFILES:%=-M%)
6320N/A
6320N/A# Pick up includes from library
6320N/ACPPFLAGS += -I$(SRC)/lib/libnisdb/yptol
369N/A
6320N/A# This file is now in the $(SRC)/head/rpcsvc directory.
6320N/A#HDRFILE= yppasswd.h
6320N/A#IHDRFILE= $(HDRFILE:%=$(RPCSVC)/%)
6320N/A
6320N/AINETYPPROG= $(NETYPPROG:%=$(NETYP)/%)
6320N/A
369N/ACOMMONOBJ = yppasswdxdr.o yplckpwdf.o
369N/ARPCYPPASSWDDOBJ = yppasswdd.o changepasswd.o
369N/A
369N/ACERRWARN += -_gcc=-Wno-implicit-function-declaration
369N/ACERRWARN += -_gcc=-Wno-parentheses
369N/ACERRWARN += -_gcc=-Wno-uninitialized
369N/A
369N/A#
369N/A# Objects shared between all the major components
369N/A#
4994N/ASHAREDOBJ= ../shared/utils.o ../shared/lockmap.o ../shared/ancil.o
4994N/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) := FILEMODE=555
369N/A
369N/A$(ETCDFLTFILE) := FILEMODE=0444
369N/A
369N/A#install rules
369N/A
369N/A.KEEP_STATE:
369N/A
369N/Aall: $(PROG)
369N/A
369N/Arpc.yppasswdd: $(RPCYPPASSWDDOBJ) $(COMMONOBJ) $(MAPFILES)
369N/A $(LINK.cc) -o $@ $(RPCYPPASSWDDOBJ) \
369N/A $(SHAREDOBJ) $(COMMONOBJ) $(LDLIBS)
369N/A $(POST_PROCESS)
369N/A
4994N/Ainstall: all $(ROOTDIRS) $(IBINPROG) $(INETYPPROG) $(ROOTETCDEFAULTFILES) \
369N/A $(ROOTMANIFEST)
4994N/A
369N/A$(ROOTDIRS):
369N/A $(INS.dir)
369N/A
369N/A$(NETYP)/%: %
$(INS.file)
clean:
$(RM) $(OBJS)
lint: lint_SRCS
check: $(CHKMANIFEST)
cstyle:
${CSTYLE} ${SRCS}
# include library targets
include ../../Makefile.targ