Update warning inhibition
[openafs.git] / src / libafsauthent / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
4 # This software has been released under the terms of the IBM Public
5 # License.  For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 # This is a pthread safe library containing ubikclient, auth, kauth.
9
10 srcdir=@srcdir@
11 include @TOP_OBJDIR@/src/config/Makefile.config
12 INSTALL = @INSTALL@
13 INSTALL_DATA = @INSTALL_DATA@
14 INSTALL_PROGRAM = @INSTALL_PROGRAM@
15 INSTALL_SCRIPT = @INSTALL_SCRIPT@
16
17 CC=${MT_CC}
18 CFLAGS=${COMMON_CFLAGS} ${MT_CFLAGS} -I../auth -I../kauth -I../ptserver -I../sys
19 CCRULE = ${CC} ${CFLAGS} -c $?
20
21 AUDIT= ../audit
22 AUTH = ../auth
23 KAUTH = ../kauth
24 UBIK = ../ubik
25 UTIL = ../util
26 RXKAD = ../rxkad
27 PTSERVER = ../ptserver
28 SYS = ../sys
29
30 AUDITOBJS = audit.o audit-file.o audit-sysvmq.o
31
32 AUTHOBJS = \
33         cellconfig.o \
34         ktc.o \
35         userok.o \
36         writeconfig.o \
37         authcon.o \
38         ktc_errors.o \
39         acfg_errors.o
40
41 KAUTHOBJS = \
42         kauth.xdr.o \
43         kauth.cs.o \
44         kaaux.o \
45         client.o \
46         authclient.o \
47         token.o \
48         kautils.o \
49         kalocalcell.o \
50         kaerrors.o \
51         user.o \
52         read_passwd.o
53
54 UBIKOBJS = \
55         uinit.o \
56         ubikclient.o \
57         uerrors.o \
58         ubik_int.cs.o \
59         ubik_int.xdr.o
60
61 UTILOBJS = \
62         pthread_glock.o \
63         get_krbrlm.o \
64         dirpath.o \
65         serverLog.o \
66         snprintf.o \
67         strlcat.o \
68         strlcpy.o \
69         fileutil.o
70
71 RXKADOBJS = \
72         rxkad_errs.o
73
74 SYSOBJS = \
75         rmtsysc.o \
76         rmtsys.xdr.o \
77         rmtsys.cs.o \
78         afssyscalls.o \
79         rmtsysnet.o \
80         glue.o \
81         setpag.o \
82         pioctl.o
83
84 PTSERVEROBJS = \
85         ptclient.o \
86         ptint.cs.o \
87         ptint.xdr.o \
88         ptuser.o \
89         display.o \
90         pterror.o
91
92 LIBOBJS = \
93         ${AUDITOBJS} \
94         ${AUTHOBJS} \
95         ${KAUTHOBJS} \
96         ${UBIKOBJS} \
97         ${UTILOBJS} \
98         ${RXKADOBJS} \
99         ${PTSERVEROBJS} \
100         ${SYSOBJS}
101
102 all: ${TOP_LIBDIR}/libafsauthent.a
103
104 ${TOP_LIBDIR}/libafsauthent.a: libafsauthent.a
105         ${INSTALL_DATA} $? $@
106
107 libafsauthent.a: ${LIBOBJS}
108         $(RM) -f $@
109         $(AR) crv $@ ${LIBOBJS}
110         $(RANLIB) $@
111
112 audit.o: ${AUDIT}/audit.c
113         ${CCRULE}
114
115 audit-file.o: ${AUDIT}/audit-file.c
116         ${CCRULE}
117
118 audit-sysvmq.o: ${AUDIT}/audit-sysvmq.c
119         ${CCRULE}
120
121 cellconfig.o: ${AUTH}/cellconfig.c
122         ${CCRULE}
123
124 ktc.o: ${AUTH}/ktc.c
125         ${CCRULE}
126
127 userok.o: ${AUTH}/userok.c
128         ${CCRULE}
129
130 writeconfig.o: ${AUTH}/writeconfig.c
131         ${CCRULE}
132
133 authcon.o: ${AUTH}/authcon.c
134         ${CCRULE}
135
136 ktc_errors.o: ${AUTH}/ktc_errors.c
137         ${CCRULE}
138
139 acfg_errors.o: ${AUTH}/acfg_errors.c
140         ${CCRULE}
141
142 kauth.xdr.o: ${KAUTH}/kauth.xdr.c
143         ${CCRULE}
144
145 kauth.cs.o: ${KAUTH}/kauth.cs.c
146         ${CCRULE}
147
148 kaaux.o: ${KAUTH}/kaaux.c
149         ${CCRULE}
150
151 client.o: ${KAUTH}/client.c
152         ${CCRULE}
153
154 authclient.o: ${KAUTH}/authclient.c
155         ${CCRULE}
156
157 token.o: ${KAUTH}/token.c
158         ${CCRULE}
159
160 kautils.o: ${KAUTH}/kautils.c
161         ${CCRULE}
162
163 kalocalcell.o: ${KAUTH}/kalocalcell.c
164         ${CCRULE}
165
166 kaerrors.o: ${KAUTH}/kaerrors.c
167         ${CCRULE}
168
169 user.o: ${KAUTH}/user.c
170         ${CCRULE}
171
172 read_passwd.o: ${KAUTH}/read_passwd.c
173         ${CCRULE}
174
175 ubikclient.o: ${UBIK}/ubikclient.c
176         ${CCRULE}
177
178 uinit.o: ${UBIK}/uinit.c
179         ${CCRULE}
180
181 uerrors.o: ${UBIK}/uerrors.c
182         ${CCRULE}
183
184 ubik_int.cs.o: ${UBIK}/ubik_int.cs.c
185         ${CCRULE}
186
187 ubik_int.xdr.o: ${UBIK}/ubik_int.xdr.c
188         ${CCRULE}
189
190 get_krbrlm.o: ${UTIL}/get_krbrlm.c
191         ${CCRULE}
192
193 dirpath.o: ${UTIL}/dirpath.c
194         ${CCRULE}
195
196 serverLog.o: ${UTIL}/serverLog.c
197         ${CCRULE}
198
199 snprintf.o: ${UTIL}/snprintf.c
200         ${CCRULE}
201
202 strlcat.o: ${UTIL}/strlcat.c
203         ${CCRULE}
204
205 strlcpy.o: ${UTIL}/strlcpy.c
206         ${CCRULE}
207
208 fileutil.o: ${UTIL}/fileutil.c
209         ${CCRULE}
210
211 pthread_glock.o: ${UTIL}/pthread_glock.c
212         ${CCRULE}
213
214 rxkad_errs.o: ${RXKAD}/rxkad_errs.c
215         ${CCRULE}
216
217 ptclient.o: ${PTSERVER}/ptclient.c
218         ${CCRULE}
219
220 # The special treatment of this file for hp_ux110 is because of a bug
221 # in version A.11.01.00 of the HP C compiler.  This bug appears to be
222 # fixed in version A.11.01.02 of the HP C compiler, however this version
223 # of the compiler is not installed on all of our build machines.
224 # The symptom of the problem is an error when linking the pthread fileserver:
225 # /usr/ccs/bin/ld: TP override with DATA_ONE_SYM fixup for non thread local
226 # storage symbol pr_Initialize in file DEST/lib/libafsauthent.a(ptuser.o)
227 ptuser.o: ${PTSERVER}/ptuser.c
228         set -x; \
229         case ${SYS_NAME} in \
230         hp_ux11*) \
231                 set X `echo ${CCRULE} | sed s/-g//`; shift; \
232                 "$$@" \
233                 ;; \
234         *) \
235                 ${CCRULE} \
236                 ;; \
237         esac
238
239 display.o: ${PTSERVER}/display.c
240         ${CCRULE}
241
242 ptint.cs.o: ${PTSERVER}/ptint.cs.c
243         ${CCRULE}
244
245 ptint.xdr.o: ${PTSERVER}/ptint.xdr.c
246         ${CCRULE}
247
248 pterror.o: ${PTSERVER}/pterror.c
249         ${CCRULE}
250
251 rmtsysc.o: ${SYS}/rmtsysc.c
252         ${CCRULE}
253
254 rmtsys.xdr.o: ${SYS}/rmtsys.xdr.c
255         ${CCRULE}
256
257 rmtsys.cs.o: ${SYS}/rmtsys.cs.c
258         ${CCRULE}
259
260 afssyscalls.o: ${SYS}/afssyscalls.c
261         ${CCRULE}
262
263 rmtsysnet.o: ${SYS}/rmtsysnet.c
264         ${CCRULE}
265
266 glue.o: ${SYS}/glue.c
267         ${CCRULE}
268
269 setpag.o: ${SYS}/setpag.c
270         ${CCRULE}
271
272 pioctl.o: ${SYS}/pioctl.c
273         ${CCRULE}
274
275 clean:
276         $(RM) -f *.o *.a libafsauthent*
277
278 install: libafsauthent.a
279         ${INSTALL} -d ${DESTDIR}${libdir}
280         ${INSTALL_DATA} libafsauthent.a ${DESTDIR}${libdir}/libafsauthent.a
281
282 dest: libafsauthent.a
283         ${INSTALL} -d ${DEST}/lib
284         ${INSTALL_DATA} libafsauthent.a ${DEST}/lib/libafsauthent.a