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} -I../auth -I../kauth -I../ptserver -I../sys
19 CCRULE = ${CC} ${CFLAGS} -c $?
27 PTSERVER = ../ptserver
30 AUDITOBJS = audit.o audit-file.o audit-sysvmq.o
102 all: ${TOP_LIBDIR}/libafsauthent.a
104 ${TOP_LIBDIR}/libafsauthent.a: libafsauthent.a
105 ${INSTALL_DATA} $? $@
107 libafsauthent.a: ${LIBOBJS}
109 $(AR) crv $@ ${LIBOBJS}
112 audit.o: ${AUDIT}/audit.c
115 audit-file.o: ${AUDIT}/audit-file.c
118 audit-sysvmq.o: ${AUDIT}/audit-sysvmq.c
121 cellconfig.o: ${AUTH}/cellconfig.c
127 userok.o: ${AUTH}/userok.c
130 writeconfig.o: ${AUTH}/writeconfig.c
133 authcon.o: ${AUTH}/authcon.c
136 ktc_errors.o: ${AUTH}/ktc_errors.c
139 acfg_errors.o: ${AUTH}/acfg_errors.c
142 kauth.xdr.o: ${KAUTH}/kauth.xdr.c
145 kauth.cs.o: ${KAUTH}/kauth.cs.c
148 kaaux.o: ${KAUTH}/kaaux.c
151 client.o: ${KAUTH}/client.c
154 authclient.o: ${KAUTH}/authclient.c
157 token.o: ${KAUTH}/token.c
160 kautils.o: ${KAUTH}/kautils.c
163 kalocalcell.o: ${KAUTH}/kalocalcell.c
166 kaerrors.o: ${KAUTH}/kaerrors.c
169 user.o: ${KAUTH}/user.c
172 read_passwd.o: ${KAUTH}/read_passwd.c
175 ubikclient.o: ${UBIK}/ubikclient.c
178 uinit.o: ${UBIK}/uinit.c
181 uerrors.o: ${UBIK}/uerrors.c
184 ubik_int.cs.o: ${UBIK}/ubik_int.cs.c
187 ubik_int.xdr.o: ${UBIK}/ubik_int.xdr.c
190 get_krbrlm.o: ${UTIL}/get_krbrlm.c
193 dirpath.o: ${UTIL}/dirpath.c
196 serverLog.o: ${UTIL}/serverLog.c
199 snprintf.o: ${UTIL}/snprintf.c
202 strlcat.o: ${UTIL}/strlcat.c
205 strlcpy.o: ${UTIL}/strlcpy.c
208 fileutil.o: ${UTIL}/fileutil.c
211 pthread_glock.o: ${UTIL}/pthread_glock.c
214 rxkad_errs.o: ${RXKAD}/rxkad_errs.c
217 ptclient.o: ${PTSERVER}/ptclient.c
220 # The special treatment of this file for hp_ux110 is because of a bug
221 # in version A.11.01.00 of the HP C compiler. This bug appears to be
222 # fixed in version A.11.01.02 of the HP C compiler, however this version
223 # of the compiler is not installed on all of our build machines.
224 # The symptom of the problem is an error when linking the pthread fileserver:
225 # /usr/ccs/bin/ld: TP override with DATA_ONE_SYM fixup for non thread local
226 # storage symbol pr_Initialize in file DEST/lib/libafsauthent.a(ptuser.o)
227 ptuser.o: ${PTSERVER}/ptuser.c
229 case ${SYS_NAME} in \
231 set X `echo ${CCRULE} | sed s/-g//`; shift; \
239 display.o: ${PTSERVER}/display.c
242 ptint.cs.o: ${PTSERVER}/ptint.cs.c
245 ptint.xdr.o: ${PTSERVER}/ptint.xdr.c
248 pterror.o: ${PTSERVER}/pterror.c
251 rmtsysc.o: ${SYS}/rmtsysc.c
254 rmtsys.xdr.o: ${SYS}/rmtsys.xdr.c
257 rmtsys.cs.o: ${SYS}/rmtsys.cs.c
260 afssyscalls.o: ${SYS}/afssyscalls.c
263 rmtsysnet.o: ${SYS}/rmtsysnet.c
266 glue.o: ${SYS}/glue.c
269 setpag.o: ${SYS}/setpag.c
272 pioctl.o: ${SYS}/pioctl.c
276 $(RM) -f *.o *.a libafsauthent*
278 install: libafsauthent.a
279 ${INSTALL} -d ${DESTDIR}${libdir}
280 ${INSTALL_DATA} libafsauthent.a ${DESTDIR}${libdir}/libafsauthent.a
282 dest: libafsauthent.a
283 ${INSTALL} -d ${DEST}/lib
284 ${INSTALL_DATA} libafsauthent.a ${DEST}/lib/libafsauthent.a