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
96 all: ${TOP_LIBDIR}/libafsauthent.a
98 ${TOP_LIBDIR}/libafsauthent.a: libafsauthent.a
101 libafsauthent.a: ${LIBOBJS}
103 $(AR) crv $@ ${LIBOBJS}
106 audit.o: ${AUDIT}/audit.c
109 cellconfig.o: ${AUTH}/cellconfig.c
115 userok.o: ${AUTH}/userok.c
118 writeconfig.o: ${AUTH}/writeconfig.c
121 authcon.o: ${AUTH}/authcon.c
124 ktc_errors.o: ${AUTH}/ktc_errors.c
127 acfg_errors.o: ${AUTH}/acfg_errors.c
130 kauth.xdr.o: ${KAUTH}/kauth.xdr.c
133 kauth.cs.o: ${KAUTH}/kauth.cs.c
136 kaaux.o: ${KAUTH}/kaaux.c
139 client.o: ${KAUTH}/client.c
142 authclient.o: ${KAUTH}/authclient.c
145 token.o: ${KAUTH}/token.c
148 kautils.o: ${KAUTH}/kautils.c
151 kalocalcell.o: ${KAUTH}/kalocalcell.c
154 kaerrors.o: ${KAUTH}/kaerrors.c
157 user.o: ${KAUTH}/user.c
160 read_passwd.o: ${KAUTH}/read_passwd.c
163 ubikclient.o: ${UBIK}/ubikclient.c
166 uinit.o: ${UBIK}/uinit.c
169 uerrors.o: ${UBIK}/uerrors.c
172 ubik_int.cs.o: ${UBIK}/ubik_int.cs.c
175 ubik_int.xdr.o: ${UBIK}/ubik_int.xdr.c
178 get_krbrlm.o: ${UTIL}/get_krbrlm.c
181 dirpath.o: ${UTIL}/dirpath.c
184 serverLog.o: ${UTIL}/serverLog.c
187 snprintf.o: ${UTIL}/snprintf.c
190 fileutil.o: ${UTIL}/fileutil.c
193 pthread_glock.o: ${UTIL}/pthread_glock.c
196 rxkad_errs.o: ${RXKAD}/rxkad_errs.c
199 ptclient.o: ${PTSERVER}/ptclient.c
202 # The special treatment of this file for hp_ux110 is because of a bug
203 # in version A.11.01.00 of the HP C compiler. This bug appears to be
204 # fixed in version A.11.01.02 of the HP C compiler, however this version
205 # of the compiler is not installed on all of our build machines.
206 # The symptom of the problem is an error when linking the pthread fileserver:
207 # /usr/ccs/bin/ld: TP override with DATA_ONE_SYM fixup for non thread local
208 # storage symbol pr_Initialize in file DEST/lib/libafsauthent.a(ptuser.o)
209 ptuser.o: ${PTSERVER}/ptuser.c
211 case ${SYS_NAME} in \
213 set X `echo ${CCRULE} | sed s/-g//`; shift; \
221 display.o: ${PTSERVER}/display.c
224 ptint.cs.o: ${PTSERVER}/ptint.cs.c
227 ptint.xdr.o: ${PTSERVER}/ptint.xdr.c
230 pterror.o: ${PTSERVER}/pterror.c
233 rmtsysc.o: ${SYS}/rmtsysc.c
236 rmtsys.xdr.o: ${SYS}/rmtsys.xdr.c
239 rmtsys.cs.o: ${SYS}/rmtsys.cs.c
242 afssyscalls.o: ${SYS}/afssyscalls.c
245 rmtsysnet.o: ${SYS}/rmtsysnet.c
248 glue.o: ${SYS}/glue.c
251 setpag.o: ${SYS}/setpag.c
254 pioctl.o: ${SYS}/pioctl.c
258 $(RM) -f *.o *.a libafsauthent*
260 install: libafsauthent.a
261 ${INSTALL} -d ${DESTDIR}${libdir}
262 ${INSTALL_DATA} libafsauthent.a ${DESTDIR}${libdir}/libafsauthent.a
264 dest: libafsauthent.a
265 ${INSTALL} -d ${DEST}/lib
266 ${INSTALL_DATA} libafsauthent.a ${DEST}/lib/libafsauthent.a