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 TOP_INCDIR=@TOP_INCDIR@
12 TOP_LIBDIR=@TOP_LIBDIR@
13 TOP_OBJDIR=@TOP_OBJDIR@
17 exec_prefix=@exec_prefix@
20 libexecdir=@libexecdir@
22 includedir=@includedir@
24 afssrvbindir=@afssrvbindir@
25 afssrvsbindir=@afssrvsbindir@
26 afssrvlibexecdir=@afssrvlibexecdir@
27 COMPILE_ET=${TOP_OBJDIR}/src/comerr/compile_et
28 RXGEN=${TOP_OBJDIR}/src/rxgen/rxgen
29 TOP_SRCDIR=@TOP_SRCDIR@
30 SYS_NAME=@AFS_SYSNAME@
34 include ../config/Makefile.${SYS_NAME}
37 CFLAGS=-I. -I${srcdir} ${OPTMZ} ${DBG} -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} ${MT_CFLAGS} \
38 -I../auth -I../kauth -I../ptserver -I../sys
39 CCRULE = ${CC} ${CFLAGS} -c $?
47 PTSERVER = ../ptserver
115 all: ${TOP_LIBDIR}/libafsauthent.a
117 install: ${DESTDIR}${libdir}/libafsauthent.a
119 ${DEST}/lib/libafsauthent.a: libafsauthent.a
122 libafsauthent.a: ${LIBOBJS}
124 $(AR) crv $@ ${LIBOBJS}
127 audit.o: ${AUDIT}/audit.c
130 cellconfig.o: ${AUTH}/cellconfig.c
136 userok.o: ${AUTH}/userok.c
139 writeconfig.o: ${AUTH}/writeconfig.c
142 authcon.o: ${AUTH}/authcon.c
145 ktc_errors.o: ${AUTH}/ktc_errors.c
148 acfg_errors.o: ${AUTH}/acfg_errors.c
151 kauth.xdr.o: ${KAUTH}/kauth.xdr.c
154 kauth.cs.o: ${KAUTH}/kauth.cs.c
157 kaaux.o: ${KAUTH}/kaaux.c
160 client.o: ${KAUTH}/client.c
163 authclient.o: ${KAUTH}/authclient.c
166 token.o: ${KAUTH}/token.c
169 kautils.o: ${KAUTH}/kautils.c
172 kalocalcell.o: ${KAUTH}/kalocalcell.c
175 kaerrors.o: ${KAUTH}/kaerrors.c
178 user.o: ${KAUTH}/user.c
181 read_passwd.o: ${KAUTH}/read_passwd.c
184 ubikclient.o: ${UBIK}/ubikclient.c
187 uerrors.o: ${UBIK}/uerrors.c
190 ubik_int.cs.o: ${UBIK}/ubik_int.cs.c
193 ubik_int.xdr.o: ${UBIK}/ubik_int.xdr.c
196 get_krbrlm.o: ${UTIL}/get_krbrlm.c
199 dirpath.o: ${UTIL}/dirpath.c
202 fileutil.o: ${UTIL}/fileutil.c
205 casestrcpy.o: ${UTIL}/casestrcpy.c
208 pthread_glock.o: ${UTIL}/pthread_glock.c
211 rxkad_errs.o: ${RXKAD}/rxkad_errs.c
214 ptclient.o: ${PTSERVER}/ptclient.c
217 # The special treatment of this file for hp_ux110 is because of a bug
218 # in version A.11.01.00 of the HP C compiler. This bug appears to be
219 # fixed in version A.11.01.02 of the HP C compiler, however this version
220 # of the compiler is not installed on all of our build machines.
221 # The symptom of the problem is an error when linking the pthread fileserver:
222 # /usr/ccs/bin/ld: TP override with DATA_ONE_SYM fixup for non thread local
223 # storage symbol pr_Initialize in file DEST/lib/libafsauthent.a(ptuser.o)
224 ptuser.o: ${PTSERVER}/ptuser.c
226 case ${SYS_NAME} in \
228 set X `echo ${CCRULE} | sed s/-g//`; shift; \
236 display.o: ${PTSERVER}/display.c
239 ptint.cs.o: ${PTSERVER}/ptint.cs.c
242 ptint.xdr.o: ${PTSERVER}/ptint.xdr.c
245 pterror.o: ${PTSERVER}/pterror.c
248 rmtsysc.o: ${SYS}/rmtsysc.c
251 rmtsys.xdr.o: ${SYS}/rmtsys.xdr.c
254 rmtsys.cs.o: ${SYS}/rmtsys.cs.c
257 afssyscalls.o: ${SYS}/afssyscalls.c
260 rmtsysnet.o: ${SYS}/rmtsysnet.c
264 $(RM) -f *.o *.a libafsauthent*
266 ${DESTDIR}${libdir}/libafsauthent.a: libafsauthent.a
269 ${TOP_LIBDIR}/libafsauthent.a: libafsauthent.a
272 dest: ${DEST}/lib/libafsauthent.a