1 # Copyright 2000, International Business Machines Corporation and others.
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
8 # This is a pthread safe library containing ubikclient, auth, kauth.
11 include @TOP_OBJDIR@/src/config/Makefile.config
13 INSTALL_DATA = @INSTALL_DATA@
14 INSTALL_PROGRAM = @INSTALL_PROGRAM@
15 INSTALL_SCRIPT = @INSTALL_SCRIPT@
18 CFLAGS=${COMMON_CFLAGS} ${MT_CFLAGS}
19 CCRULE = ${CC} ${CFLAGS} -c $?
27 PTSERVER = ../ptserver
30 AUDITOBJS = audit.o audit-file.o audit-sysvmq.o
104 all: ${TOP_LIBDIR}/libafsauthent.a
106 ${TOP_LIBDIR}/libafsauthent.a: libafsauthent.a
107 ${INSTALL_DATA} $? $@
109 libafsauthent.a: ${LIBOBJS}
111 $(AR) crv $@ ${LIBOBJS}
114 audit.o: ${AUDIT}/audit.c
117 audit-file.o: ${AUDIT}/audit-file.c
120 audit-sysvmq.o: ${AUDIT}/audit-sysvmq.c
123 cellconfig.o: ${AUTH}/cellconfig.c
129 token.o: ${AUTH}/token.c
132 token.xdr.o: ${AUTH}/token.xdr.c
135 userok.o: ${AUTH}/userok.c
138 writeconfig.o: ${AUTH}/writeconfig.c
141 authcon.o: ${AUTH}/authcon.c
144 ktc_errors.o: ${AUTH}/ktc_errors.c
147 acfg_errors.o: ${AUTH}/acfg_errors.c
150 kauth.xdr.o: ${KAUTH}/kauth.xdr.c
153 kauth.cs.o: ${KAUTH}/kauth.cs.c
156 kaaux.o: ${KAUTH}/kaaux.c
159 client.o: ${KAUTH}/client.c
162 authclient.o: ${KAUTH}/authclient.c
165 katoken.o: ${KAUTH}/katoken.c
168 kautils.o: ${KAUTH}/kautils.c
171 kalocalcell.o: ${KAUTH}/kalocalcell.c
172 ${CCRULE} -I ../kauth
174 kaerrors.o: ${KAUTH}/kaerrors.c
177 user.o: ${KAUTH}/user.c
178 ${CCRULE} -I ../kauth
180 read_passwd.o: ${KAUTH}/read_passwd.c
183 ubikclient.o: ${UBIK}/ubikclient.c
186 uinit.o: ${UBIK}/uinit.c
189 uerrors.o: ${UBIK}/uerrors.c
192 ubik_int.cs.o: ${UBIK}/ubik_int.cs.c
195 ubik_int.xdr.o: ${UBIK}/ubik_int.xdr.c
198 get_krbrlm.o: ${UTIL}/get_krbrlm.c
201 dirpath.o: ${UTIL}/dirpath.c
204 serverLog.o: ${UTIL}/serverLog.c
207 snprintf.o: ${UTIL}/snprintf.c
210 strlcat.o: ${UTIL}/strlcat.c
213 strlcpy.o: ${UTIL}/strlcpy.c
216 fileutil.o: ${UTIL}/fileutil.c
219 pthread_glock.o: ${UTIL}/pthread_glock.c
222 rxkad_errs.o: ${RXKAD}/rxkad_errs.c
225 ptclient.o: ${PTSERVER}/ptclient.c
226 ${CCRULE} -I../ptserver
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
237 case ${SYS_NAME} in \
239 set X `echo ${CCRULE} -I../ptserver | sed s/-g//`; shift; \
243 ${CCRULE} -I../ptserver\
247 display.o: ${PTSERVER}/display.c
248 ${CCRULE} -I../ptserver
250 ptint.cs.o: ${PTSERVER}/ptint.cs.c
253 ptint.xdr.o: ${PTSERVER}/ptint.xdr.c
256 pterror.o: ${PTSERVER}/pterror.c
259 rmtsysc.o: ${SYS}/rmtsysc.c
262 rmtsys.xdr.o: ${SYS}/rmtsys.xdr.c
265 rmtsys.cs.o: ${SYS}/rmtsys.cs.c
268 afssyscalls.o: ${SYS}/afssyscalls.c
271 rmtsysnet.o: ${SYS}/rmtsysnet.c
274 glue.o: ${SYS}/glue.c
277 setpag.o: ${SYS}/setpag.c
280 pioctl.o: ${SYS}/pioctl.c
284 $(RM) -f *.o *.a libafsauthent*
286 install: libafsauthent.a
287 ${INSTALL} -d ${DESTDIR}${libdir}
288 ${INSTALL_DATA} libafsauthent.a ${DESTDIR}${libdir}/libafsauthent.a
290 dest: libafsauthent.a
291 ${INSTALL} -d ${DEST}/lib
292 ${INSTALL_DATA} libafsauthent.a ${DEST}/lib/libafsauthent.a