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