Make it build outside source tree
[openafs.git] / src / shlibafsauthent / Makefile.in
1 # API version. When something changes, increment as appropriate. 
2 # Ignore at your own risk.
3 LIBAFSAUTHENTMAJOR=1
4 LIBAFSAUTHENTMINOR=1
5
6 # Copyright 2000, International Business Machines Corporation and others.
7 # All Rights Reserved.
8
9 # This software has been released under the terms of the IBM Public
10 # License.  For details, see the LICENSE file in the top-level source
11 # directory or online at http://www.openafs.org/dl/license10.html
12
13 # This is a pthread safe library containing ubikclient, auth, kauth.
14
15 srcdir=@srcdir@
16 include @TOP_OBJDIR@/src/config/Makefile.config
17 include @TOP_OBJDIR@/src/config/Makefile.shared
18
19
20 MODULE_CFLAGS=-I../auth -I../kauth -I../ptserver -I../sys
21
22 AUDIT= $(srcdir)/../audit
23 AUTH = $(srcdir)/../auth
24 KAUTH = $(srcdir)/../kauth
25 UBIK = $(srcdir)/../ubik
26 UTIL = $(srcdir)/../util
27 RXKAD = $(srcdir)/../rxkad
28 PTSERVER = $(srcdir)/../ptserver
29 VOLSER = $(srcdir)/../volser
30 VLSERVER = $(srcdir)/../vlserver
31 SYS = $(srcdir)/../sys
32
33 AUDITOBJS = audit.o audit-file.o audit-sysvmq.o
34
35 AUTHOBJS = \
36         cellconfig.o \
37         ktc.o \
38         keys.o \
39         userok.o \
40         writeconfig.o \
41         authcon.o \
42         ktc_errors.o \
43         acfg_errors.o \
44         token.xdr.o \
45         token.o \
46         realms.o
47
48 KAUTHOBJS = \
49         kauth.xdr.o \
50         kauth.cs.o \
51         kaaux.o \
52         client.o \
53         authclient.o \
54         katoken.o \
55         kautils.o \
56         kalocalcell.o \
57         kaerrors.o \
58         user.o
59
60 UBIKOBJS = \
61         uinit.o \
62         ubikclient.o \
63         uerrors.o \
64         ubik_int.cs.o \
65         ubik_int.xdr.o
66
67 UTILOBJS = \
68         pthread_glock.o \
69         dirpath.o \
70         serverLog.o \
71         fileutil.o \
72         hostparse.o \
73         uuid.o \
74         ktime.o \
75         volparse.o
76
77 RXKADOBJS = \
78         rxkad_errs.o
79
80 SYSOBJS = \
81         rmtsysc.o \
82         rmtsys.xdr.o \
83         rmtsys.cs.o \
84         afssyscalls.o \
85         rmtsysnet.o \
86         glue.o \
87         setpag.o \
88         pioctl.o
89
90 PTSERVEROBJS = \
91         ptclient.o \
92         ptint.cs.o \
93         ptint.xdr.o \
94         ptuser.o \
95         display.o \
96         pterror.o
97
98 VOLSEROBJS = \
99         vsutils.o \
100         vsprocs.o \
101         lockprocs.o \
102         volint.xdr.o \
103         volint.cs.o \
104         volerr.o
105
106 VLDBOBJS = \
107         vldbint.xdr.o \
108         vldbint.cs.o \
109         vl_errors.o
110
111 COMERROBJS = \
112         et_name.o
113
114 BOSOBJS = \
115         bosint.xdr.o \
116         bosint.cs.o \
117         boserr.o
118
119 USDOBJS = \
120         usd_file.o \
121
122 LIBOBJS = \
123         ${AUDITOBJS} \
124         ${AUTHOBJS} \
125         ${KAUTHOBJS} \
126         ${UBIKOBJS} \
127         ${UTILOBJS} \
128         ${RXKADOBJS} \
129         ${PTSERVEROBJS} \
130         ${SYSOBJS} \
131         ${VOLSEROBJS} \
132         ${VLDBOBJS} \
133         ${COMERROBJS} \
134         $(BOSOBJS) \
135         $(USDOBJS)
136
137 LIBAFSAUTHENT = libafsauthent.${SHLIB_SUFFIX}.${LIBAFSAUTHENTMAJOR}.${LIBAFSAUTHENTMINOR}
138
139 all: ${TOP_LIBDIR}/${LIBAFSAUTHENT} ${TOP_LIBDIR}/libafsauthent_pic.a
140
141 ${TOP_LIBDIR}/${LIBAFSAUTHENT}: ${LIBAFSAUTHENT}
142         ../config/shlib-install -d ${TOP_LIBDIR} \
143                 -l libafsauthent \
144                 -M ${LIBAFSAUTHENTMAJOR} -m ${LIBAFSAUTHENTMINOR}
145
146 ${TOP_LIBDIR}/libafsauthent_pic.a: libafsauthent_pic.a
147         ${INSTALL_DATA} libafsauthent_pic.a $@
148
149 install: ${LIBAFSAUTHENT} libafsauthent_pic.a
150         ../config/shlib-install -d ${DESTDIR}${libdir} \
151                 -l libafsauthent \
152                 -M ${LIBAFSAUTHENTMAJOR} -m ${LIBAFSAUTHENTMINOR}
153         ${INSTALL_DATA} libafsauthent_pic.a \
154                 ${DESTDIR}${libdir}/libafsauthent_pic.a
155
156 dest: ${LIBAFSAUTHENT} libafsauthent_pic.a
157         ../config/shlib-install -d ${DEST}/lib \
158                 -l libafsauthent \
159                 -M ${LIBAFSAUTHENTMAJOR} -m ${LIBAFSAUTHENTMINOR}
160         ${INSTALL_DATA} libafsauthent_pic.a \
161                 ${DEST}/lib/libafsauthent_pic.a
162
163 ${LIBAFSAUTHENT}: ${LIBOBJS} libafsauthent.map
164         ../config/shlib-build -d $(srcdir) -l libafsauthent \
165                 -M ${LIBAFSAUTHENTMAJOR} -m ${LIBAFSAUTHENTMINOR} -- \
166                 -L${TOP_LIBDIR} $(LDFLAGS_roken) $(LDFLAGS_hcrypto) \
167                 $(LIBOBJS) \
168                 -lafsrpc $(LIB_hcrypto) $(LIB_roken) $(LIB_crypt) $(LIB_AFSDB) \
169                 ${MT_LIBS}
170
171 libafsauthent_pic.a: ${LIBOBJS}
172         $(RM) -f $@
173         $(AR) crv $@ ${LIBOBJS}
174         $(RANLIB) $@
175
176 audit.o: ${AUDIT}/audit.c
177         ${AFS_CCRULE} ${AUDIT}/audit.c
178
179 audit-file.o: ${AUDIT}/audit-file.c
180         ${AFS_CCRULE} ${AUDIT}/audit-file.c
181
182 audit-sysvmq.o: ${AUDIT}/audit-sysvmq.c
183         ${AFS_CCRULE} ${AUDIT}/audit-sysvmq.c
184
185 cellconfig.o: ${AUTH}/cellconfig.c
186         ${AFS_CCRULE} -I../auth ${AUTH}/cellconfig.c
187
188 ktc.o: ${AUTH}/ktc.c
189         ${AFS_CCRULE} -I../auth ${AUTH}/ktc.c
190
191 keys.o: ${AUTH}/keys.c
192         ${AFS_CCRULE} -I../auth ${AUTH}/keys.c
193
194 realms.o: ${AUTH}/realms.c
195         ${AFS_CCRULE} -I../auth ${AUTH}/realms.c
196
197 token.o: ${AUTH}/token.c
198         ${AFS_CCRULE} -I../auth ${AUTH}/token.c
199
200 token.xdr.o: ../auth/token.xdr.c
201         ${AFS_CCRULE} -I../auth ../auth/token.xdr.c
202
203 userok.o: ${AUTH}/userok.c
204         ${AFS_CCRULE} -I../auth ${AUTH}/userok.c
205
206 writeconfig.o: ${AUTH}/writeconfig.c
207         ${AFS_CCRULE} -I../auth ${AUTH}/writeconfig.c
208
209 authcon.o: ${AUTH}/authcon.c
210         ${AFS_CCRULE} -I../auth ${AUTH}/authcon.c
211
212 ktc_errors.o: ../auth/ktc_errors.c
213         ${AFS_CCRULE} ../auth/ktc_errors.c
214
215 acfg_errors.o: ../auth/acfg_errors.c
216         ${AFS_CCRULE} ../auth/acfg_errors.c
217
218 kauth.xdr.o: ../kauth/kauth.xdr.c
219         ${AFS_CCRULE} ../kauth/kauth.xdr.c
220
221 kauth.cs.o: ../kauth/kauth.cs.c
222         ${AFS_CCRULE} ../kauth/kauth.cs.c
223
224 kaaux.o: ${KAUTH}/kaaux.c
225         ${AFS_CCRULE} -I../kauth ${KAUTH}/kaaux.c
226
227 client.o: ${KAUTH}/client.c
228         ${AFS_CCRULE} -I../kauth ${KAUTH}/client.c
229
230 authclient.o: ${KAUTH}/authclient.c
231         ${AFS_CCRULE} -I../kauth ${KAUTH}/authclient.c
232
233 katoken.o: ${KAUTH}/katoken.c
234         ${AFS_CCRULE} -I../kauth ${KAUTH}/katoken.c
235
236 kautils.o: ${KAUTH}/kautils.c
237         ${AFS_CCRULE} -I../kauth ${KAUTH}/kautils.c
238
239 kalocalcell.o: ${KAUTH}/kalocalcell.c
240         ${AFS_CCRULE} -I ../kauth ${KAUTH}/kalocalcell.c
241
242 kaerrors.o: ../kauth/kaerrors.c
243         ${AFS_CCRULE} ../kauth/kaerrors.c
244
245 user.o: ${KAUTH}/user.c
246         ${AFS_CCRULE} -I ../kauth ${KAUTH}/user.c
247
248 read_passwd.o: ${KAUTH}/read_passwd.c
249         ${AFS_CCRULE} ${KAUTH}/read_passwd.c
250
251 ubikclient.o: ${UBIK}/ubikclient.c
252         ${AFS_CCRULE} ${UBIK}/ubikclient.c
253
254 uinit.o: ${UBIK}/uinit.c
255         ${AFS_CCRULE} ${UBIK}/uinit.c
256
257 uerrors.o: ../ubik/uerrors.c
258         ${AFS_CCRULE} ../ubik/uerrors.c
259
260 ubik_int.cs.o: ../ubik/ubik_int.cs.c
261         ${AFS_CCRULE} ../ubik/ubik_int.cs.c
262
263 ubik_int.xdr.o: ../ubik/ubik_int.xdr.c
264         ${AFS_CCRULE} ../ubik/ubik_int.xdr.c
265
266 dirpath.o: ${UTIL}/dirpath.c
267         ${AFS_CCRULE} ${UTIL}/dirpath.c
268
269 serverLog.o: ${UTIL}/serverLog.c
270         ${AFS_CCRULE} ${UTIL}/serverLog.c
271
272 fileutil.o: ${UTIL}/fileutil.c
273         ${AFS_CCRULE} ${UTIL}/fileutil.c
274
275 hostparse.o: ${UTIL}/hostparse.c
276         ${AFS_CCRULE} ${UTIL}/hostparse.c
277
278 volparse.o: ${UTIL}/volparse.c
279         ${AFS_CCRULE} ${UTIL}/volparse.c
280
281 uuid.o: ${UTIL}/uuid.c
282         ${AFS_CCRULE} ${UTIL}/uuid.c
283
284 ktime.o: ${UTIL}/ktime.c
285         ${AFS_CCRULE} ${UTIL}/ktime.c
286
287 pthread_glock.o: ${UTIL}/pthread_glock.c
288         ${AFS_CCRULE} ${UTIL}/pthread_glock.c
289
290 rxkad_errs.o: ../rxkad/rxkad_errs.c
291         ${AFS_CCRULE} ../rxkad/rxkad_errs.c
292
293 ptclient.o: ${PTSERVER}/ptclient.c
294         ${AFS_CCRULE} -I../ptserver ${PTSERVER}/ptclient.c
295
296 ptuser.o: ${PTSERVER}/ptuser.c
297         ${AFS_CCRULE} -I../ptserver ${PTSERVER}/ptuser.c
298
299 display.o: ${PTSERVER}/display.c
300         ${AFS_CCRULE} -I../ptserver ${PTSERVER}/display.c
301
302 ptint.cs.o: ../ptserver/ptint.cs.c
303         ${AFS_CCRULE} ../ptserver/ptint.cs.c
304
305 ptint.xdr.o: ../ptserver/ptint.xdr.c
306         ${AFS_CCRULE} ../ptserver/ptint.xdr.c
307
308 pterror.o: ../ptserver/pterror.c
309         ${AFS_CCRULE} ../ptserver/pterror.c
310
311 rmtsysc.o: ${SYS}/rmtsysc.c
312         ${AFS_CCRULE} -I../sys ${SYS}/rmtsysc.c
313
314 rmtsys.xdr.o: ../sys/rmtsys.xdr.c
315         ${AFS_CCRULE} ../sys/rmtsys.xdr.c
316
317 rmtsys.cs.o: ../sys/rmtsys.cs.c
318         ${AFS_CCRULE} ../sys/rmtsys.cs.c
319
320 afssyscalls.o: ${SYS}/afssyscalls.c
321         ${AFS_CCRULE} ${SYS}/afssyscalls.c
322
323 rmtsysnet.o: ${SYS}/rmtsysnet.c
324         ${AFS_CCRULE} -I../sys ${SYS}/rmtsysnet.c
325
326 glue.o: ${SYS}/glue.c
327         ${AFS_CCRULE} ${SYS}/glue.c
328
329 setpag.o: ${SYS}/setpag.c
330         ${AFS_CCRULE} ${SYS}/setpag.c
331
332 pioctl.o: ${SYS}/pioctl.c
333         ${AFS_CCRULE} ${SYS}/pioctl.c
334
335 vsprocs.o: $(VOLSER)/vsprocs.c
336         $(AFS_CCRULE) -I../volser $(VOLSER)/vsprocs.c
337
338 vsutils.o: $(VOLSER)/vsutils.c
339         $(AFS_CCRULE) -I../volser $(VOLSER)/vsutils.c
340
341 lockprocs.o: $(VOLSER)/lockprocs.c
342         $(AFS_CCRULE) -I../volser $(VOLSER)/lockprocs.c
343
344 volint.xdr.o: ../volser/volint.xdr.c
345         $(AFS_CCRULE) ../volser/volint.xdr.c
346
347 volint.cs.o: ../volser/volint.cs.c
348         $(AFS_CCRULE) ../volser/volint.cs.c
349
350 volerr.o: ../volser/volerr.c
351         $(AFS_CCRULE) ../volser/volerr.c
352
353 vldbint.xdr.o: ../vlserver/vldbint.xdr.c
354         $(AFS_CCRULE) ../vlserver/vldbint.xdr.c
355
356 vldbint.cs.o: ../vlserver/vldbint.cs.c
357         $(AFS_CCRULE) ../vlserver/vldbint.cs.c
358 vl_errors.o: ../vlserver/vl_errors.c
359         $(AFS_CCRULE) ../vlserver/vl_errors.c
360
361 et_name.o: ${srcdir}/../comerr/et_name.c
362         ${AFS_CCRULE} ${srcdir}/../comerr/et_name.c
363
364 bosint.xdr.o: ../bozo/bosint.xdr.c
365         $(AFS_CCRULE) ../bozo/bosint.xdr.c
366
367 bosint.cs.o: ../bozo/bosint.cs.c
368         $(AFS_CCRULE) ../bozo/bosint.cs.c
369
370 boserr.o: ../bozo/boserr.c
371         $(AFS_CCRULE) ../bozo/boserr.c
372
373 usd_file.o: ${srcdir}/../usd/usd_file.c
374         $(AFS_CCRULE) ${srcdir}/../usd/usd_file.c
375 clean:
376         $(RM) -f *.o *.a libafsauthent.a* libafsauthent.sl* libafsauthent.so* \
377                 libafsauthent_pic.a libafsauthent.dylib.* \
378                 libafsauthent.exp