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
14 CFLAGS=${COMMON_CFLAGS} ${MT_CFLAGS} -I../auth -I../kauth -I../ptserver -I../sys
15 CCRULE = ${CC} ${CFLAGS} -c $?
23 PTSERVER = ../ptserver
93 all: ${TOP_LIBDIR}/libafsauthent.a
95 install: ${DESTDIR}${libdir}/libafsauthent.a
97 ${DEST}/lib/libafsauthent.a: libafsauthent.a
100 libafsauthent.a: ${LIBOBJS}
102 $(AR) crv $@ ${LIBOBJS}
105 audit.o: ${AUDIT}/audit.c
108 cellconfig.o: ${AUTH}/cellconfig.c
114 userok.o: ${AUTH}/userok.c
117 writeconfig.o: ${AUTH}/writeconfig.c
120 authcon.o: ${AUTH}/authcon.c
123 ktc_errors.o: ${AUTH}/ktc_errors.c
126 acfg_errors.o: ${AUTH}/acfg_errors.c
129 kauth.xdr.o: ${KAUTH}/kauth.xdr.c
132 kauth.cs.o: ${KAUTH}/kauth.cs.c
135 kaaux.o: ${KAUTH}/kaaux.c
138 client.o: ${KAUTH}/client.c
141 authclient.o: ${KAUTH}/authclient.c
144 token.o: ${KAUTH}/token.c
147 kautils.o: ${KAUTH}/kautils.c
150 kalocalcell.o: ${KAUTH}/kalocalcell.c
153 kaerrors.o: ${KAUTH}/kaerrors.c
156 user.o: ${KAUTH}/user.c
159 read_passwd.o: ${KAUTH}/read_passwd.c
162 ubikclient.o: ${UBIK}/ubikclient.c
165 uinit.o: ${UBIK}/uinit.c
168 uerrors.o: ${UBIK}/uerrors.c
171 ubik_int.cs.o: ${UBIK}/ubik_int.cs.c
174 ubik_int.xdr.o: ${UBIK}/ubik_int.xdr.c
177 get_krbrlm.o: ${UTIL}/get_krbrlm.c
180 dirpath.o: ${UTIL}/dirpath.c
183 serverLog.o: ${UTIL}/serverLog.c
186 snprintf.o: ${UTIL}/snprintf.c
189 fileutil.o: ${UTIL}/fileutil.c
192 pthread_glock.o: ${UTIL}/pthread_glock.c
195 rxkad_errs.o: ${RXKAD}/rxkad_errs.c
198 ptclient.o: ${PTSERVER}/ptclient.c
201 # The special treatment of this file for hp_ux110 is because of a bug
202 # in version A.11.01.00 of the HP C compiler. This bug appears to be
203 # fixed in version A.11.01.02 of the HP C compiler, however this version
204 # of the compiler is not installed on all of our build machines.
205 # The symptom of the problem is an error when linking the pthread fileserver:
206 # /usr/ccs/bin/ld: TP override with DATA_ONE_SYM fixup for non thread local
207 # storage symbol pr_Initialize in file DEST/lib/libafsauthent.a(ptuser.o)
208 ptuser.o: ${PTSERVER}/ptuser.c
210 case ${SYS_NAME} in \
212 set X `echo ${CCRULE} | sed s/-g//`; shift; \
220 display.o: ${PTSERVER}/display.c
223 ptint.cs.o: ${PTSERVER}/ptint.cs.c
226 ptint.xdr.o: ${PTSERVER}/ptint.xdr.c
229 pterror.o: ${PTSERVER}/pterror.c
232 rmtsysc.o: ${SYS}/rmtsysc.c
235 rmtsys.xdr.o: ${SYS}/rmtsys.xdr.c
238 rmtsys.cs.o: ${SYS}/rmtsys.cs.c
241 afssyscalls.o: ${SYS}/afssyscalls.c
244 rmtsysnet.o: ${SYS}/rmtsysnet.c
248 $(RM) -f *.o *.a libafsauthent*
250 ${DESTDIR}${libdir}/libafsauthent.a: libafsauthent.a
253 ${TOP_LIBDIR}/libafsauthent.a: libafsauthent.a
256 dest: ${DEST}/lib/libafsauthent.a