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