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
15 CFLAGS=-I. -I${srcdir} ${OPTMZ} ${DBG} -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} ${MT_CFLAGS} \
16 -I../auth -I../kauth -I../ptserver -I../sys
17 CCRULE = ${CC} ${CFLAGS} -c $?
25 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 uerrors.o: ${UBIK}/uerrors.c
168 ubik_int.cs.o: ${UBIK}/ubik_int.cs.c
171 ubik_int.xdr.o: ${UBIK}/ubik_int.xdr.c
174 get_krbrlm.o: ${UTIL}/get_krbrlm.c
177 dirpath.o: ${UTIL}/dirpath.c
180 fileutil.o: ${UTIL}/fileutil.c
183 casestrcpy.o: ${UTIL}/casestrcpy.c
186 pthread_glock.o: ${UTIL}/pthread_glock.c
189 rxkad_errs.o: ${RXKAD}/rxkad_errs.c
192 ptclient.o: ${PTSERVER}/ptclient.c
195 # The special treatment of this file for hp_ux110 is because of a bug
196 # in version A.11.01.00 of the HP C compiler. This bug appears to be
197 # fixed in version A.11.01.02 of the HP C compiler, however this version
198 # of the compiler is not installed on all of our build machines.
199 # The symptom of the problem is an error when linking the pthread fileserver:
200 # /usr/ccs/bin/ld: TP override with DATA_ONE_SYM fixup for non thread local
201 # storage symbol pr_Initialize in file DEST/lib/libafsauthent.a(ptuser.o)
202 ptuser.o: ${PTSERVER}/ptuser.c
204 case ${SYS_NAME} in \
206 set X `echo ${CCRULE} | sed s/-g//`; shift; \
214 display.o: ${PTSERVER}/display.c
217 ptint.cs.o: ${PTSERVER}/ptint.cs.c
220 ptint.xdr.o: ${PTSERVER}/ptint.xdr.c
223 pterror.o: ${PTSERVER}/pterror.c
226 rmtsysc.o: ${SYS}/rmtsysc.c
229 rmtsys.xdr.o: ${SYS}/rmtsys.xdr.c
232 rmtsys.cs.o: ${SYS}/rmtsys.cs.c
235 afssyscalls.o: ${SYS}/afssyscalls.c
238 rmtsysnet.o: ${SYS}/rmtsysnet.c
242 $(RM) -f *.o *.a libafsauthent*
244 ${DESTDIR}${libdir}/libafsauthent.a: libafsauthent.a
247 ${TOP_LIBDIR}/libafsauthent.a: libafsauthent.a
250 dest: ${DEST}/lib/libafsauthent.a