Print this page
3882 remove xmod & friends
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/gss/gssd/Makefile
+++ new/usr/src/cmd/gss/gssd/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 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25
26 26 TESTPROG = gssdtest
27 27
28 28 OUTPUT_OPTION = -I.
29 29
30 30 PROG= gssd
31 31
32 32 MANIFEST= gss.xml
33 33
34 34 GSSD_BASEOBJS = gssd.o gssd_proc.o gssd_generic.o gssd_getuid.o
35 35 GSSC_BASEOBJS = gssdtest.o gssd_release_name_and_type.o gssd_clnt_stubs.o \
36 36 gssd_handle.o
37 37
38 38 GD_OBJS = gssd_svc.o
39 39 GC_OBJS = gssd_clnt.o
40 40 G_OBJS = gssd_xdr.o
41 41 GSSDOBJS = $(GSSD_BASEOBJS) $(GD_OBJS) $(G_OBJS)
42 42 GSSCOBJS = $(GSSC_BASEOBJS) $(GC_OBJS) $(G_OBJS)
43 43
44 44 GSSD_LINTS = $(GSSD_BASEOBJS:.o=.c)
45 45 GSSC_LINTS = $(GSSC_BASEOBJS:.o=.c)
46 46
47 47 ROBJS = $(GD_OBJS) $(GC_OBJS) $(G_OBJS)
48 48 OBJS = $(GSSD_BASEOBJS) $(GD_OBJS) $(GSSC_BASEOBJS) $(GC_OBJS) $(G_OBJS)
49 49 SRCS = $(OBJS:.o=.c)
50 50 RSRC = $(ROBJS:.o=.c)
51 51 RSRC += gssd.h
52 52
53 53 CLOBBERFILES += $(TESTPROG)
54 54
55 55 include ../../Makefile.cmd
56 56
57 57 ROOTMANIFESTDIR= $(ROOTSVCNETWORKRPC)
58 58
59 59 TEXT_DOMAIN = SUNW_OST_NETRPC
60 60 POFILE = $(PROG).po
61 61 POFILES = generic.po
62 62
63 63 #
64 64 # Override $ROOTLIB
65 65 #
66 66 ROOTLIB= $(ROOT)/usr/lib/gss
67 67
68 68 DIRS= $(ROOTLIB)
69 69
70 70 CPPFLAGS += -I$(SRC)/uts/common/gssapi/include
71 71 COPTFLAG += $(XESS) #-I$(KINCDIR)
72 72
73 73 CERRWARN += -_gcc=-Wno-unused-variable
74 74 CERRWARN += -_gcc=-Wno-implicit-function-declaration
75 75 CERRWARN += -_gcc=-Wno-parentheses
76 76 CERRWARN += -_gcc=-Wno-uninitialized
77 77
78 78 LDLIBS += -lgss -lnsl
79 79
80 80 gssd := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
81 81 gssd := LDFLAGS += $(MAPFILES:%=-M%)
82 82
83 83 $(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50
84 84
85 85 .KEEP_STATE:
86 86
87 87 all: $(PROG) $(TESTPROG)
88 88
89 89 $(ROOTLIB):
90 90 $(INS.dir)
91 91
92 92 $(ROOTLIB)/%: %
93 93 $(INS.file)
94 94
95 95 gssd: $(GSSDOBJS) $$(MAPFILES)
96 96 $(LINK.c) $(GSSDOBJS) -o $@ $(LDLIBS)
97 97 $(POST_PROCESS)
98 98
99 99 gssdtest: $(GSSCOBJS)
100 100 $(LINK.c) $(GSSCOBJS) -o $@ $(LDLIBS)
101 101 $(POST_PROCESS)
102 102
103 103 GSSDX= $(SRC)/uts/common/gssapi/gssd.x
104 104 gssd.x: $(GSSDX)
105 105 rm -f $@
106 106 cp $(GSSDX) $@
107 107
108 108 # Rules to generate derived rpcgen files from gssd.x spec file.
109 109
110 110 # NOTE WELL: There is code in gssd that assumes gssd is NOT
111 111 # multi-threaded. Do NOT add -A to the rpcgen argument list in the
112 112 # Makefile unless you also remove this assumption.
113 113
114 114 gssd.h: gssd.x
115 115 $(RM) $@
116 116 $(RPCGEN) -M -h gssd.x > $@
117 117
118 118 gssd_clnt.c: gssd.x
119 119 $(RM) $@
120 120 $(RPCGEN) -M -l gssd.x > $@
121 121
122 122 gssd_svc.c: gssd.x
123 123 $(RM) $@
124 124 $(RPCGEN) -M -m gssd.x > $@
125 125
126 126 gssd_xdr.c: gssd.x
127 127 $(RM) $@
128 128 $(RPCGEN) -M -c gssd.x > $@
129 129
130 130 $(OBJS): gssd.h
131 131
132 132 install: all $(DIRS) $(ROOTLIBPROG) $(ROOTMANIFEST)
133 133
134 134 install_h:
135 135
136 136 clean:
137 137 $(RM) $(OBJS) $(RSRC) gssd.x
138 138
139 139 lint_gssd:
140 140 $(LINT.c) $(GSSD_LINTS)
↓ open down ↓ |
140 lines elided |
↑ open up ↑ |
141 141
142 142 lint_gssc:
143 143 $(LINT.c) $(GSSC_LINTS)
144 144
145 145 lint: lint_gssd lint_gssc
146 146
147 147 check: $(CHKMANIFEST)
148 148
149 149 include ../../Makefile.targ
150 150
151 -# EXPORT DELETE START
152 -# Special targets to clean up the source tree for export distribution
153 -# The WS target modifies the SCCS files as well, so a working workspace
154 -# can be shipped.
155 -# Warning: These targets change the source tree, the first only at the
156 -# plain source level, but the second changes the guts!
157 -EXPORT_SRC:
158 - $(RM) Makefile+ gssd_clnt_stubs.c+ gssd_proc.c+ gssdtest.c+
159 - sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
160 - < Makefile > Makefile+
161 - $(MV) Makefile+ Makefile
162 - sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
163 - < gssd_clnt_stubs.c > gssd_clnt_stubs.c+
164 - $(MV) gssd_clnt_stubs.c+ gssd_clnt_stubs.c
165 - sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
166 - < gssd_proc.c > gssd_proc.c+
167 - $(MV) gssd_proc.c+ gssd_proc.c
168 - sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
169 - < gssdtest.c > gssdtest.c+
170 - $(MV) gssdtest.c+ gssdtest.c
171 - $(CHMOD) 444 Makefile gssd_clnt_stubs.c gssd_proc.c gssdtest.c
172 -
173 -# EXPORT DELETE END
174 -
175 151 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
176 152 $(RM) $@
177 153 $(CAT) $(POFILES) > $@
178 154
179 155 generic.po: FRC
180 156 $(RM) messages.po
181 157 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
182 158 $(SED) "/^domain/d" messages.po > $@
183 159 $(RM) messages.po
184 160
185 161 FRC:
186 162
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX