dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / ypcmd / yppasswd / Makefile
blob335c40e0feca71ea9ad0c10dbb01b4c371120875
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 -lcrypt -lintl -lgen
43 LDLIBS += -lnisdb -lc
44 MAPFILES = $(MAPFILE.INT)
45 LDFLAGS += $(MAPFILES:%=-Wl,-M%)
47 # Pick up includes from library
48 CPPFLAGS += -I$(SRC)/lib/libnisdb/yptol
50 INETYPPROG= $(NETYPPROG:%=$(NETYP)/%)
52 COMMONOBJ = yppasswdxdr.o yplckpwdf.o
53 RPCYPPASSWDDOBJ = yppasswdd.o changepasswd.o
55 CERRWARN += -Wno-implicit-function-declaration
56 CERRWARN += -Wno-parentheses
57 CERRWARN += -Wno-uninitialized
60 # Objects shared between all the major components
62 SHAREDOBJ= ../shared/utils.o ../shared/lockmap.o ../shared/ancil.o
64 OBJS = $(RPCYPPASSWDDOBJ) \
65 $(COMMONOBJ)
66 # $(YPPWCONVOBJ) $(YPPASSMGMTOBJ)
68 SRCS = $(OBJS:%.o=%.c)
70 #conditional assignments
71 $(INETSVC) := FILEMODE=555
73 $(ETCDFLTFILE) := FILEMODE=0444
75 #install rules
77 .KEEP_STATE:
79 all: $(PROG)
81 rpc.yppasswdd: $(RPCYPPASSWDDOBJ) $(COMMONOBJ) $(MAPFILES)
82 $(LINK.cc) -o $@ $(RPCYPPASSWDDOBJ) \
83 $(SHAREDOBJ) $(COMMONOBJ) $(LDLIBS)
84 $(POST_PROCESS)
86 install: all $(ROOTDIRS) $(IBINPROG) $(INETYPPROG) $(ROOTETCDEFAULTFILES) \
87 $(ROOTMANIFEST)
89 $(ROOTDIRS):
90 $(INS.dir)
92 $(NETYP)/%: %
93 $(INS.file)
95 clean:
96 $(RM) $(OBJS)
99 check: $(CHKMANIFEST)
101 cstyle:
102 ${CSTYLE} ${SRCS}
104 # include library targets
105 include ../../Makefile.targ