8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / ypcmd / yppasswd / Makefile
blob1906d7bcf754e5e631e721531ef636b5b91a90bd
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
25 NETYPPROG = rpc.yppasswdd
26 DEFAULTFILES = yppasswdd.dfl
27 PROG = $(NETYPPROG)
29 MANIFEST = passwd.xml
31 include ../../Makefile.cmd
33 ROOTMANIFESTDIR = $(ROOTSVCNETWORKNIS)
35 #installed directories
36 RPCSVC= $(ROOT)/usr/include/rpcsvc
37 NETSVC = $(ROOTLIB)/netsvc
38 NETYP = $(NETSVC)/yp
39 ROOTDIRS = $(NETSVC) $(NETYP)
41 # include library definitions
42 #LDLIBS += -lrpcsvc -lnsl -lcrypt -lintl -lgen
43 LDLIBS += -lnsl -lnisdb -lc
44 MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
45 LDFLAGS += $(MAPFILES:%=-M%)
47 # Pick up includes from library
48 CPPFLAGS += -I$(SRC)/lib/libnisdb/yptol
50 # This file is now in the $(SRC)/head/rpcsvc directory.
51 #HDRFILE= yppasswd.h
52 #IHDRFILE= $(HDRFILE:%=$(RPCSVC)/%)
54 INETYPPROG= $(NETYPPROG:%=$(NETYP)/%)
56 COMMONOBJ = yppasswdxdr.o yplckpwdf.o
57 RPCYPPASSWDDOBJ = yppasswdd.o changepasswd.o
59 CERRWARN += -_gcc=-Wno-implicit-function-declaration
60 CERRWARN += -_gcc=-Wno-parentheses
61 CERRWARN += -_gcc=-Wno-uninitialized
64 # Objects shared between all the major components
66 SHAREDOBJ= ../shared/utils.o ../shared/lockmap.o ../shared/ancil.o
68 OBJS = $(RPCYPPASSWDDOBJ) \
69 $(COMMONOBJ)
70 # $(YPPWCONVOBJ) $(YPPASSMGMTOBJ)
72 SRCS = $(OBJS:%.o=%.c)
74 #conditional assignments
75 $(INETSVC) := FILEMODE=555
77 $(ETCDFLTFILE) := FILEMODE=0444
79 #install rules
81 .KEEP_STATE:
83 all: $(PROG)
85 rpc.yppasswdd: $(RPCYPPASSWDDOBJ) $(COMMONOBJ) $(MAPFILES)
86 $(LINK.cc) -o $@ $(RPCYPPASSWDDOBJ) \
87 $(SHAREDOBJ) $(COMMONOBJ) $(LDLIBS)
88 $(POST_PROCESS)
90 install: all $(ROOTDIRS) $(IBINPROG) $(INETYPPROG) $(ROOTETCDEFAULTFILES) \
91 $(ROOTMANIFEST)
93 $(ROOTDIRS):
94 $(INS.dir)
96 $(NETYP)/%: %
97 $(INS.file)
99 clean:
100 $(RM) $(OBJS)
102 lint: lint_SRCS
104 check: $(CHKMANIFEST)
106 cstyle:
107 ${CSTYLE} ${SRCS}
109 # include library targets
110 include ../../Makefile.targ