libafsauthent: Add volser and vldb
[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 include @TOP_OBJDIR@/src/config/Makefile.pthread
13
14
15 AUDIT= $(srcdir)/../audit
16 AUTH = $(srcdir)/../auth
17 KAUTH =$(srcdir)/../kauth
18 UBIK = $(srcdir)/../ubik
19 UTIL = $(srcdir)/../util
20 RXKAD = $(srcdir)/../rxkad
21 PTSERVER = $(srcdir)/../ptserver
22 VOLSER = $(srcdir)/../volser
23 VLSERVER = $(srcdir)/../vlserver
24 SYS = $(srcdir)/../sys
25
26 AUDITOBJS = audit.o audit-file.o audit-sysvmq.o
27
28 AUTHOBJS = \
29         cellconfig.o \
30         ktc.o \
31         keys.o \
32         userok.o \
33         writeconfig.o \
34         authcon.o \
35         ktc_errors.o \
36         acfg_errors.o \
37         token.o \
38         token.xdr.o
39
40 KAUTHOBJS = \
41         kauth.xdr.o \
42         kauth.cs.o \
43         kaaux.o \
44         client.o \
45         authclient.o \
46         katoken.o \
47         kautils.o \
48         kalocalcell.o \
49         kaerrors.o \
50         user.o
51
52 UBIKOBJS = \
53         uinit.o \
54         ubikclient.o \
55         uerrors.o \
56         ubik_int.cs.o \
57         ubik_int.xdr.o
58
59 UTILOBJS = \
60         pthread_glock.o \
61         get_krbrlm.o \
62         dirpath.o \
63         serverLog.o \
64         fileutil.o
65
66 RXKADOBJS = \
67         rxkad_errs.o
68
69 SYSOBJS = \
70         rmtsysc.o \
71         rmtsys.xdr.o \
72         rmtsys.cs.o \
73         afssyscalls.o \
74         rmtsysnet.o \
75         glue.o \
76         setpag.o \
77         pioctl.o
78
79 PTSERVEROBJS = \
80         ptclient.o \
81         ptint.cs.o \
82         ptint.xdr.o \
83         ptuser.o \
84         display.o \
85         pterror.o
86
87 VOLSEROBJS = \
88         vsprocs.o \
89         vsutils.o \
90         lockprocs.o \
91         volint.xdr.o \
92         volint.cs.o \
93         volerr.o
94
95 VLDBOBJS = \
96         vldbint.xdr.o \
97         vldbint.cs.o \
98         vl_errors.o
99
100 LIBOBJS = \
101         ${AUDITOBJS} \
102         ${AUTHOBJS} \
103         ${KAUTHOBJS} \
104         ${UBIKOBJS} \
105         ${UTILOBJS} \
106         ${RXKADOBJS} \
107         ${PTSERVEROBJS} \
108         ${SYSOBJS} \
109         ${VOLSEROBJS} \
110         ${VLDBOBJS}
111
112 all: ${TOP_LIBDIR}/libafsauthent.a
113
114 ${TOP_LIBDIR}/libafsauthent.a: libafsauthent.a
115         ${INSTALL_DATA} $? $@
116
117 libafsauthent.a: ${LIBOBJS}
118         $(RM) -f $@
119         $(AR) crv $@ ${LIBOBJS}
120         $(RANLIB) $@
121
122 audit.o: ${AUDIT}/audit.c
123         ${AFS_CCRULE} ${AUDIT}/audit.c
124
125 audit-file.o: ${AUDIT}/audit-file.c
126         ${AFS_CCRULE} ${AUDIT}/audit-file.c
127
128 audit-sysvmq.o: ${AUDIT}/audit-sysvmq.c
129         ${AFS_CCRULE} ${AUDIT}/audit-sysvmq.c
130
131 cellconfig.o: ${AUTH}/cellconfig.c
132         ${AFS_CCRULE} -I../auth ${AUTH}/cellconfig.c
133
134 keys.o: ${AUTH}/keys.c
135         ${AFS_CCRULE} -I../auth ${AUTH}/keys.c
136
137 ktc.o: ${AUTH}/ktc.c
138         ${AFS_CCRULE} -I../auth ${AUTH}/ktc.c
139
140 token.o: ${AUTH}/token.c
141         ${AFS_CCRULE} -I../auth ${AUTH}/token.c
142
143 token.xdr.o: ../auth/token.xdr.c
144         ${AFS_CCRULE} -I../auth ../auth/token.xdr.c
145
146 userok.o: ${AUTH}/userok.c
147         ${AFS_CCRULE} -I../auth ${AUTH}/userok.c
148
149 writeconfig.o: ${AUTH}/writeconfig.c
150         ${AFS_CCRULE} -I../auth ${AUTH}/writeconfig.c
151
152 authcon.o: ${AUTH}/authcon.c
153         ${AFS_CCRULE} -I../auth ${AUTH}/authcon.c
154
155 ktc_errors.o: ../auth/ktc_errors.c
156         ${AFS_CCRULE} ../auth/ktc_errors.c
157
158 acfg_errors.o: ../auth/acfg_errors.c
159         ${AFS_CCRULE} ../auth/acfg_errors.c
160
161 kauth.xdr.o: ../kauth/kauth.xdr.c
162         ${AFS_CCRULE} ../kauth/kauth.xdr.c
163
164 kauth.cs.o: ../kauth/kauth.cs.c
165         ${AFS_CCRULE} ../kauth/kauth.cs.c
166
167 kaaux.o: ${KAUTH}/kaaux.c
168         ${AFS_CCRULE} -I../kauth ${KAUTH}/kaaux.c
169
170 client.o: ${KAUTH}/client.c
171         ${AFS_CCRULE} -I../kauth ${KAUTH}/client.c
172
173 authclient.o: ${KAUTH}/authclient.c
174         ${AFS_CCRULE} -I../kauth ${KAUTH}/authclient.c
175
176 katoken.o: ${KAUTH}/katoken.c
177         ${AFS_CCRULE} -I../kauth ${KAUTH}/katoken.c
178
179 kautils.o: ${KAUTH}/kautils.c
180         ${AFS_CCRULE} -I../kauth ${KAUTH}/kautils.c
181
182 kalocalcell.o: ${KAUTH}/kalocalcell.c
183         ${AFS_CCRULE} -I ../kauth ${KAUTH}/kalocalcell.c
184
185 kaerrors.o: ../kauth/kaerrors.c
186         ${AFS_CCRULE} ../kauth/kaerrors.c
187
188 user.o: ${KAUTH}/user.c
189         ${AFS_CCRULE} -I ../kauth ${KAUTH}/user.c
190
191 read_passwd.o: ${KAUTH}/read_passwd.c
192         ${AFS_CCRULE} ${KAUTH}/read_passwd.c
193
194 ubikclient.o: ${UBIK}/ubikclient.c
195         ${AFS_CCRULE} ${UBIK}/ubikclient.c
196
197 uinit.o: ${UBIK}/uinit.c
198         ${AFS_CCRULE} ${UBIK}/uinit.c
199
200 uerrors.o: ../ubik/uerrors.c
201         ${AFS_CCRULE} ../ubik/uerrors.c
202
203 ubik_int.cs.o: ../ubik/ubik_int.cs.c
204         ${AFS_CCRULE} ../ubik/ubik_int.cs.c
205
206 ubik_int.xdr.o: ../ubik/ubik_int.xdr.c
207         ${AFS_CCRULE} ../ubik/ubik_int.xdr.c
208
209
210 get_krbrlm.o: ${UTIL}/get_krbrlm.c
211         ${AFS_CCRULE} ${UTIL}/get_krbrlm.c
212
213 dirpath.o: ${UTIL}/dirpath.c
214         ${AFS_CCRULE} ${UTIL}/dirpath.c
215
216 serverLog.o: ${UTIL}/serverLog.c
217         ${AFS_CCRULE} ${UTIL}/serverLog.c
218
219 fileutil.o: ${UTIL}/fileutil.c
220         ${AFS_CCRULE} ${UTIL}/fileutil.c
221
222 pthread_glock.o: ${UTIL}/pthread_glock.c
223         ${AFS_CCRULE} ${UTIL}/pthread_glock.c
224
225 rxkad_errs.o: ../rxkad/rxkad_errs.c
226         ${AFS_CCRULE} ../rxkad/rxkad_errs.c
227
228 ptclient.o: ${PTSERVER}/ptclient.c
229         ${AFS_CCRULE} -I../ptserver ${PTSERVER}/ptclient.c
230
231 # The special treatment of this file for hp_ux110 is because of a bug
232 # in version A.11.01.00 of the HP C compiler.  This bug appears to be
233 # fixed in version A.11.01.02 of the HP C compiler, however this version
234 # of the compiler is not installed on all of our build machines.
235 # The symptom of the problem is an error when linking the pthread fileserver:
236 # /usr/ccs/bin/ld: TP override with DATA_ONE_SYM fixup for non thread local
237 # storage symbol pr_Initialize in file DEST/lib/libafsauthent.a(ptuser.o)
238 ptuser.o: ${PTSERVER}/ptuser.c
239         set -x; \
240         case ${SYS_NAME} in \
241         hp_ux11*) \
242                 set X `echo ${AFS_CCRULE} -I../ptserver ${PTSERVER}/ptuser.c | sed s/-g//`; shift; \
243                 "$$@" \
244                 ;; \
245         *) \
246                 ${AFS_CCRULE} -I../ptserver ${PTSERVER}/ptuser.c \
247                 ;; \
248         esac
249
250 display.o: ${PTSERVER}/display.c
251         ${AFS_CCRULE} -I../ptserver ${PTSERVER}/display.c
252
253 ptint.cs.o: ../ptserver/ptint.cs.c
254         ${AFS_CCRULE} ../ptserver/ptint.cs.c
255
256 ptint.xdr.o: ../ptserver/ptint.xdr.c
257         ${AFS_CCRULE} ../ptserver/ptint.xdr.c
258
259 pterror.o: ../ptserver/pterror.c
260         ${AFS_CCRULE} ../ptserver/pterror.c
261
262 rmtsysc.o: ${SYS}/rmtsysc.c
263         ${AFS_CCRULE} -I../sys ${SYS}/rmtsysc.c
264
265 rmtsys.xdr.o: ../sys/rmtsys.xdr.c
266         ${AFS_CCRULE} ../sys/rmtsys.xdr.c
267
268 rmtsys.cs.o: ../sys/rmtsys.cs.c
269         ${AFS_CCRULE} ../sys/rmtsys.cs.c
270
271 afssyscalls.o: ${SYS}/afssyscalls.c
272         ${AFS_CCRULE} ${SYS}/afssyscalls.c
273
274 rmtsysnet.o: ${SYS}/rmtsysnet.c
275         ${AFS_CCRULE} -I../sys ${SYS}/rmtsysnet.c
276
277 glue.o: ${SYS}/glue.c
278         ${AFS_CCRULE} ${SYS}/glue.c
279
280 setpag.o: ${SYS}/setpag.c
281         ${AFS_CCRULE} ${SYS}/setpag.c
282
283 pioctl.o: ${SYS}/pioctl.c
284         ${AFS_CCRULE} ${SYS}/pioctl.c
285
286 vsprocs.o: $(VOLSER)/vsprocs.c
287         $(AFS_CCRULE) -I../volser $(VOLSER)/vsprocs.c
288
289 vsutils.o: $(VOLSER)/vsutils.c
290         $(AFS_CCRULE) $(VOLSER)/vsutils.c
291
292 lockprocs.o: $(VOLSER)/lockprocs.c
293         $(AFS_CCRULE) $(VOLSER)/lockprocs.c
294
295 volint.xdr.o: ../volser/volint.xdr.c
296         $(AFS_CCRULE) ../volser/volint.xdr.c
297
298 volint.cs.o: ../volser/volint.cs.c
299         $(AFS_CCRULE) ../volser/volint.cs.c
300
301 volerr.o: $(VOLSER)/volerr.c
302         $(AFS_CCRULE) $(VOLSER)/volerr.c
303
304 vldbint.xdr.o: ../vlserver/vldbint.xdr.c
305         $(AFS_CCRULE) ../vlserver/vldbint.xdr.c
306
307 vldbint.cs.o: ../vlserver/vldbint.cs.c
308         $(AFS_CCRULE) ../vlserver/vldbint.cs.c
309
310 vl_errors.o: $(VLSERVER)/vl_errors.c
311         $(AFS_CCRULE) $(VLSERVER)/vl_errors.c
312
313 clean:
314         $(RM) -f *.o *.a libafsauthent*
315
316 install: libafsauthent.a
317         ${INSTALL} -d ${DESTDIR}${libdir}
318         ${INSTALL_DATA} libafsauthent.a ${DESTDIR}${libdir}/libafsauthent.a
319
320 dest: libafsauthent.a
321         ${INSTALL} -d ${DEST}/lib
322         ${INSTALL_DATA} libafsauthent.a ${DEST}/lib/libafsauthent.a