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]
22 # Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
25 NETYPPROG
= rpc.yppasswdd
26 DEFAULTFILES
= yppasswdd.dfl
31 include ..
/..
/Makefile.cmd
33 ROOTMANIFESTDIR
= $(ROOTSVCNETWORKNIS
)
35 #installed directories
36 RPCSVC
= $(ROOT
)/usr
/include/rpcsvc
37 NETSVC
= $(ROOTLIB
)/netsvc
39 ROOTDIRS
= $(NETSVC
) $(NETYP
)
41 # include library definitions
42 #LDLIBS += -lrpcsvc -lcrypt -lintl -lgen
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
) \
66 # $(YPPWCONVOBJ) $(YPPASSMGMTOBJ)
68 SRCS
= $(OBJS
:%.o
=%.c
)
70 #conditional assignments
71 $(INETSVC
) := FILEMODE
=555
73 $(ETCDFLTFILE
) := FILEMODE
=0444
81 rpc.yppasswdd
: $(RPCYPPASSWDDOBJ
) $(COMMONOBJ
) $(MAPFILES
)
82 $(LINK.
cc) -o
$@
$(RPCYPPASSWDDOBJ
) \
83 $(SHAREDOBJ
) $(COMMONOBJ
) $(LDLIBS
)
86 install: all $(ROOTDIRS
) $(IBINPROG
) $(INETYPPROG
) $(ROOTETCDEFAULTFILES
) \
104 # include library targets
105 include ..
/..
/Makefile.targ