Print this page
9852 enable ld(1) guidance and deflib assertions for the illumos build
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/ypcmd/yppasswd/Makefile
+++ new/usr/src/cmd/ypcmd/yppasswd/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 #
24 24
25 25 NETYPPROG = rpc.yppasswdd
26 26 DEFAULTFILES = yppasswdd.dfl
27 27 PROG = $(NETYPPROG)
28 28
29 29 MANIFEST = passwd.xml
30 30
31 31 include ../../Makefile.cmd
32 32
33 33 ROOTMANIFESTDIR = $(ROOTSVCNETWORKNIS)
34 34
35 35 #installed directories
36 36 RPCSVC= $(ROOT)/usr/include/rpcsvc
↓ open down ↓ |
36 lines elided |
↑ open up ↑ |
37 37 NETSVC = $(ROOTLIB)/netsvc
38 38 NETYP = $(NETSVC)/yp
39 39 ROOTDIRS = $(NETSVC) $(NETYP)
40 40
41 41 # include library definitions
42 42 #LDLIBS += -lrpcsvc -lnsl -lcrypt -lintl -lgen
43 43 LDLIBS += -lnsl -lnisdb -lc
44 44 MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
45 45 LDFLAGS += $(MAPFILES:%=-M%)
46 46
47 +# This links with libnisdb, and thus is 'C++', but is otherwise entirely C. A
48 +# result of this is that it probably doesn't _actually_ use the C++ runtime, but
49 +# may in future (depending on compiler implementation)
50 +#
51 +# Give up.
52 +ZGUIDANCE= -zguidance=nounused
53 +
54 +$(__SUNC)ADJUNCT_LIBS = libC.so
55 +
47 56 # Pick up includes from library
48 57 CPPFLAGS += -I$(SRC)/lib/libnisdb/yptol
49 58
50 59 # This file is now in the $(SRC)/head/rpcsvc directory.
51 60 #HDRFILE= yppasswd.h
52 61 #IHDRFILE= $(HDRFILE:%=$(RPCSVC)/%)
53 62
54 63 INETYPPROG= $(NETYPPROG:%=$(NETYP)/%)
55 64
56 65 COMMONOBJ = yppasswdxdr.o yplckpwdf.o
57 66 RPCYPPASSWDDOBJ = yppasswdd.o changepasswd.o
↓ open down ↓ |
1 lines elided |
↑ open up ↑ |
58 67
59 68 CERRWARN += -_gcc=-Wno-implicit-function-declaration
60 69 CERRWARN += -_gcc=-Wno-parentheses
61 70 CERRWARN += -_gcc=-Wno-uninitialized
62 71
63 72 #
64 73 # Objects shared between all the major components
65 74 #
66 75 SHAREDOBJ= ../shared/utils.o ../shared/lockmap.o ../shared/ancil.o
67 76
68 -OBJS = $(RPCYPPASSWDDOBJ) \
77 +OBJS = $(RPCYPPASSWDDOBJ) \
69 78 $(COMMONOBJ)
70 79 # $(YPPWCONVOBJ) $(YPPASSMGMTOBJ)
71 80
72 81 SRCS = $(OBJS:%.o=%.c)
73 82
74 83 #conditional assignments
75 84 $(INETSVC) := FILEMODE=555
76 85
77 86 $(ETCDFLTFILE) := FILEMODE=0444
78 87
79 88 #install rules
80 89
81 90 .KEEP_STATE:
82 91
83 92 all: $(PROG)
84 93
85 94 rpc.yppasswdd: $(RPCYPPASSWDDOBJ) $(COMMONOBJ) $(MAPFILES)
86 95 $(LINK.cc) -o $@ $(RPCYPPASSWDDOBJ) \
87 96 $(SHAREDOBJ) $(COMMONOBJ) $(LDLIBS)
88 97 $(POST_PROCESS)
89 98
90 99 install: all $(ROOTDIRS) $(IBINPROG) $(INETYPPROG) $(ROOTETCDEFAULTFILES) \
91 100 $(ROOTMANIFEST)
92 101
93 102 $(ROOTDIRS):
94 103 $(INS.dir)
95 104
96 105 $(NETYP)/%: %
97 106 $(INS.file)
98 107
99 108 clean:
100 109 $(RM) $(OBJS)
101 110
102 111 lint: lint_SRCS
103 112
104 113 check: $(CHKMANIFEST)
105 114
106 115 cstyle:
107 116 ${CSTYLE} ${SRCS}
108 117
109 118 # include library targets
110 119 include ../../Makefile.targ
↓ open down ↓ |
32 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX