Cross Reference: /illumos-gate/usr/src/cmd/gss/gssd/Makefile
Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
TESTPROG = gssdtest
OUTPUT_OPTION = -I.
PROG= gssd
MANIFEST= gss.xml
GSSD_BASEOBJS = gssd.o gssd_proc.o gssd_generic.o gssd_getuid.o
GSSC_BASEOBJS = gssdtest.o gssd_release_name_and_type.o gssd_clnt_stubs.o \
gssd_handle.o
GD_OBJS = gssd_svc.o
GC_OBJS = gssd_clnt.o
G_OBJS = gssd_xdr.o
GSSDOBJS = $(GSSD_BASEOBJS) $(GD_OBJS) $(G_OBJS)
GSSCOBJS = $(GSSC_BASEOBJS) $(GC_OBJS) $(G_OBJS)
GSSD_LINTS = $(GSSD_BASEOBJS:.o=.c)
GSSC_LINTS = $(GSSC_BASEOBJS:.o=.c)
ROBJS = $(GD_OBJS) $(GC_OBJS) $(G_OBJS)
OBJS = $(GSSD_BASEOBJS) $(GD_OBJS) $(GSSC_BASEOBJS) $(GC_OBJS) $(G_OBJS)
SRCS = $(OBJS:.o=.c)
RSRC = $(ROBJS:.o=.c)
RSRC += gssd.h
CLOBBERFILES += $(TESTPROG)
include ../../Makefile.cmd
ROOTMANIFESTDIR= $(ROOTSVCNETWORKRPC)
TEXT_DOMAIN = SUNW_OST_NETRPC
POFILE = $(PROG).po
POFILES = generic.po
#
# Override $ROOTLIB
#
ROOTLIB= $(ROOT)/usr/lib/gss
DIRS= $(ROOTLIB)
CPPFLAGS += -I$(SRC)/uts/common/gssapi/include
COPTFLAG += $(XESS) #-I$(KINCDIR)
LDLIBS += -lgss -lnsl
gssd := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
gssd := LDFLAGS += $(MAPFILES:%=-M%)
$(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50
.KEEP_STATE:
all: $(PROG) $(TESTPROG)
$(ROOTLIB):
$(INS.dir)
$(ROOTLIB)/%: %
$(INS.file)
gssd: $(GSSDOBJS) $$(MAPFILES)
$(LINK.c) $(GSSDOBJS) -o $@ $(LDLIBS)
$(POST_PROCESS)
gssdtest: $(GSSCOBJS)
$(LINK.c) $(GSSCOBJS) -o $@ $(LDLIBS)
$(POST_PROCESS)
GSSDX= $(SRC)/uts/common/gssapi/gssd.x
gssd.x: $(GSSDX)
rm -f $@
cp $(GSSDX) $@
# Rules to generate derived rpcgen files from gssd.x spec file.
# NOTE WELL: There is code in gssd that assumes gssd is NOT
# multi-threaded. Do NOT add -A to the rpcgen argument list in the
# Makefile unless you also remove this assumption.
gssd.h: gssd.x
$(RM) $@
$(RPCGEN) -M -h gssd.x > $@
gssd_clnt.c: gssd.x
$(RM) $@
$(RPCGEN) -M -l gssd.x > $@
gssd_svc.c: gssd.x
$(RM) $@
$(RPCGEN) -M -m gssd.x > $@
gssd_xdr.c: gssd.x
$(RM) $@
$(RPCGEN) -M -c gssd.x > $@
$(OBJS): gssd.h
install: all $(DIRS) $(ROOTLIBPROG) $(ROOTMANIFEST)
install_h:
clean:
$(RM) $(OBJS) $(RSRC) gssd.x
lint_gssd:
$(LINT.c) $(GSSD_LINTS)
lint_gssc:
$(LINT.c) $(GSSC_LINTS)
lint: lint_gssd lint_gssc
check: $(CHKMANIFEST)
include ../../Makefile.targ
# EXPORT DELETE START
# Special targets to clean up the source tree for export distribution
# The WS target modifies the SCCS files as well, so a working workspace
# can be shipped.
# Warning: These targets change the source tree, the first only at the
# plain source level, but the second changes the guts!
EXPORT_SRC:
$(RM) Makefile+ gssd_clnt_stubs.c+ gssd_proc.c+ gssdtest.c+
sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
< Makefile > Makefile+
$(MV) Makefile+ Makefile
sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
< gssd_clnt_stubs.c > gssd_clnt_stubs.c+
$(MV) gssd_clnt_stubs.c+ gssd_clnt_stubs.c
sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
< gssd_proc.c > gssd_proc.c+
$(MV) gssd_proc.c+ gssd_proc.c
sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
< gssdtest.c > gssdtest.c+
$(MV) gssdtest.c+ gssdtest.c
$(CHMOD) 444 Makefile gssd_clnt_stubs.c gssd_proc.c gssdtest.c
# EXPORT DELETE END
$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
$(RM) $@
$(CAT) $(POFILES) > $@
generic.po: FRC
$(RM) messages.po
$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
$(SED) "/^domain/d" messages.po > $@
$(RM) messages.po
FRC: