srcdir=@srcdir@
include @TOP_OBJDIR@/src/config/Makefile.config
+include @TOP_OBJDIR@/src/config/Makefile.shared
+
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
-CC=${MT_CC}
-CFLAGS=${COMMON_CFLAGS} ${MT_CFLAGS} ${SHLIB_CFLAGS} -I../auth -I../kauth -I../ptserver -I../sys
-CCRULE = ${CC} ${CFLAGS} -c $?
+MODULE_CFLAGS=-I../auth -I../kauth -I../ptserver -I../sys
-AUDIT= ../audit
-AUTH = ../auth
-KAUTH = ../kauth
-UBIK = ../ubik
-UTIL = ../util
-RXKAD = ../rxkad
-PTSERVER = ../ptserver
-SYS = ../sys
+AUDIT= $(srcdir)/../audit
+AUTH = $(srcdir)/../auth
+KAUTH = $(srcdir)/../kauth
+UBIK = $(srcdir)/../ubik
+UTIL = $(srcdir)/../util
+RXKAD = $(srcdir)/../rxkad
+PTSERVER = $(srcdir)/../ptserver
+SYS = $(srcdir)/../sys
AUDITOBJS = audit.o audit-file.o audit-sysvmq.o
$(RANLIB) $@
audit.o: ${AUDIT}/audit.c
- ${CCRULE}
+ ${AFS_CCRULE} ${AUDIT}/audit.c
audit-file.o: ${AUDIT}/audit-file.c
- ${CCRULE}
+ ${AFS_CCRULE} ${AUDIT}/audit-file.c
audit-sysvmq.o: ${AUDIT}/audit-sysvmq.c
- ${CCRULE}
+ ${AFS_CCRULE} ${AUDIT}/audit-sysvmq.c
cellconfig.o: ${AUTH}/cellconfig.c
- ${CCRULE}
+ ${AFS_CCRULE} -I../auth ${AUTH}/cellconfig.c
ktc.o: ${AUTH}/ktc.c
- ${CCRULE}
+ ${AFS_CCRULE} -I../auth ${AUTH}/ktc.c
+
+token.o: ${AUTH}/token.c
+ ${AFS_CCRULE} -I../auth ${AUTH}/token.c
+
+token.xdr.o: ../auth/token.xdr.c
+ ${AFS_CCRULE} -I../auth ../auth/token.xdr.c
userok.o: ${AUTH}/userok.c
- ${CCRULE}
+ ${AFS_CCRULE} -I../auth ${AUTH}/userok.c
writeconfig.o: ${AUTH}/writeconfig.c
- ${CCRULE}
+ ${AFS_CCRULE} -I../auth ${AUTH}/writeconfig.c
authcon.o: ${AUTH}/authcon.c
- ${CCRULE}
-
-ktc_errors.o: ${AUTH}/ktc_errors.c
- ${CCRULE}
+ ${AFS_CCRULE} -I../auth ${AUTH}/authcon.c
-acfg_errors.o: ${AUTH}/acfg_errors.c
- ${CCRULE}
+ktc_errors.o: ../auth/ktc_errors.c
+ ${AFS_CCRULE} ../auth/ktc_errors.c
-token.xdr.o: ${AUTH}/token.xdr.c
- ${CCRULE}
+acfg_errors.o: ../auth/acfg_errors.c
+ ${AFS_CCRULE} ../auth/acfg_errors.c
-token.o :${AUTH}/token.c
- ${CCRULE}
+kauth.xdr.o: ../kauth/kauth.xdr.c
+ ${AFS_CCRULE} ../kauth/kauth.xdr.c
-kauth.xdr.o: ${KAUTH}/kauth.xdr.c
- ${CCRULE}
-
-kauth.cs.o: ${KAUTH}/kauth.cs.c
- ${CCRULE}
+kauth.cs.o: ../kauth/kauth.cs.c
+ ${AFS_CCRULE} ../kauth/kauth.cs.c
kaaux.o: ${KAUTH}/kaaux.c
- ${CCRULE}
+ ${AFS_CCRULE} -I../kauth ${KAUTH}/kaaux.c
client.o: ${KAUTH}/client.c
- ${CCRULE}
+ ${AFS_CCRULE} -I../kauth ${KAUTH}/client.c
authclient.o: ${KAUTH}/authclient.c
- ${CCRULE}
+ ${AFS_CCRULE} -I../kauth ${KAUTH}/authclient.c
katoken.o: ${KAUTH}/katoken.c
- ${CCRULE}
+ ${AFS_CCRULE} -I../kauth ${KAUTH}/katoken.c
kautils.o: ${KAUTH}/kautils.c
- ${CCRULE}
+ ${AFS_CCRULE} -I../kauth ${KAUTH}/kautils.c
kalocalcell.o: ${KAUTH}/kalocalcell.c
- ${CCRULE}
+ ${AFS_CCRULE} -I ../kauth ${KAUTH}/kalocalcell.c
-kaerrors.o: ${KAUTH}/kaerrors.c
- ${CCRULE}
+kaerrors.o: ../kauth/kaerrors.c
+ ${AFS_CCRULE} ../kauth/kaerrors.c
user.o: ${KAUTH}/user.c
- ${CCRULE}
+ ${AFS_CCRULE} -I ../kauth ${KAUTH}/user.c
read_passwd.o: ${KAUTH}/read_passwd.c
- ${CCRULE}
+ ${AFS_CCRULE} ${KAUTH}/read_passwd.c
ubikclient.o: ${UBIK}/ubikclient.c
- ${CCRULE}
+ ${AFS_CCRULE} ${UBIK}/ubikclient.c
uinit.o: ${UBIK}/uinit.c
- ${CCRULE}
+ ${AFS_CCRULE} ${UBIK}/uinit.c
+
+uerrors.o: ../ubik/uerrors.c
+ ${AFS_CCRULE} ../ubik/uerrors.c
-uerrors.o: ${UBIK}/uerrors.c
- ${CCRULE}
+ubik_int.cs.o: ../ubik/ubik_int.cs.c
+ ${AFS_CCRULE} ../ubik/ubik_int.cs.c
-ubik_int.cs.o: ${UBIK}/ubik_int.cs.c
- ${CCRULE}
+ubik_int.xdr.o: ../ubik/ubik_int.xdr.c
+ ${AFS_CCRULE} ../ubik/ubik_int.xdr.c
-ubik_int.xdr.o: ${UBIK}/ubik_int.xdr.c
- ${CCRULE}
get_krbrlm.o: ${UTIL}/get_krbrlm.c
- ${CCRULE}
+ ${AFS_CCRULE} ${UTIL}/get_krbrlm.c
dirpath.o: ${UTIL}/dirpath.c
- ${CCRULE}
+ ${AFS_CCRULE} ${UTIL}/dirpath.c
serverLog.o: ${UTIL}/serverLog.c
- ${CCRULE}
+ ${AFS_CCRULE} ${UTIL}/serverLog.c
snprintf.o: ${UTIL}/snprintf.c
- ${CCRULE}
+ ${AFS_CCRULE} ${UTIL}/snprintf.c
strlcat.o: ${UTIL}/strlcat.c
- ${CCRULE}
+ ${AFS_CCRULE} ${UTIL}/strlcat.c
strlcpy.o: ${UTIL}/strlcpy.c
- ${CCRULE}
+ ${AFS_CCRULE} ${UTIL}/strlcpy.c
fileutil.o: ${UTIL}/fileutil.c
- ${CCRULE}
+ ${AFS_CCRULE} ${UTIL}/fileutil.c
pthread_glock.o: ${UTIL}/pthread_glock.c
- ${CCRULE}
+ ${AFS_CCRULE} ${UTIL}/pthread_glock.c
-rxkad_errs.o: ${RXKAD}/rxkad_errs.c
- ${CCRULE}
+rxkad_errs.o: ../rxkad/rxkad_errs.c
+ ${AFS_CCRULE} ../rxkad/rxkad_errs.c
ptclient.o: ${PTSERVER}/ptclient.c
- ${CCRULE}
-
-# The special treatment of this file for hp_ux110 is because of a bug
-# in version A.11.01.00 of the HP C compiler. This bug appears to be
-# fixed in version A.11.01.02 of the HP C compiler, however this version
-# of the compiler is not installed on all of our build machines.
-# The symptom of the problem is an error when linking the pthread fileserver:
-# /usr/ccs/bin/ld: TP override with DATA_ONE_SYM fixup for non thread local
-# storage symbol pr_Initialize in file DEST/lib/libafsauthent.a(ptuser.o)
+ ${AFS_CCRULE} -I../ptserver ${PTSERVER}/ptclient.c
+
ptuser.o: ${PTSERVER}/ptuser.c
- set -x; \
- case ${SYS_NAME} in \
- hp_ux11*) \
- set X `echo ${CCRULE} | sed s/-g//`; shift; \
- "$$@" \
- ;; \
- *) \
- ${CCRULE} \
- ;; \
- esac
+ ${AFS_CCRULE} -I../ptserver ${PTSERVER}/ptuser.c
display.o: ${PTSERVER}/display.c
- ${CCRULE}
+ ${AFS_CCRULE} -I../ptserver ${PTSERVER}/display.c
-ptint.cs.o: ${PTSERVER}/ptint.cs.c
- ${CCRULE}
+ptint.cs.o: ../ptserver/ptint.cs.c
+ ${AFS_CCRULE} ../ptserver/ptint.cs.c
-ptint.xdr.o: ${PTSERVER}/ptint.xdr.c
- ${CCRULE}
+ptint.xdr.o: ../ptserver/ptint.xdr.c
+ ${AFS_CCRULE} ../ptserver/ptint.xdr.c
-pterror.o: ${PTSERVER}/pterror.c
- ${CCRULE}
+pterror.o: ../ptserver/pterror.c
+ ${AFS_CCRULE} ../ptserver/pterror.c
rmtsysc.o: ${SYS}/rmtsysc.c
- ${CCRULE}
+ ${AFS_CCRULE} -I../sys ${SYS}/rmtsysc.c
-rmtsys.xdr.o: ${SYS}/rmtsys.xdr.c
- ${CCRULE}
+rmtsys.xdr.o: ../sys/rmtsys.xdr.c
+ ${AFS_CCRULE} ../sys/rmtsys.xdr.c
-rmtsys.cs.o: ${SYS}/rmtsys.cs.c
- ${CCRULE}
+rmtsys.cs.o: ../sys/rmtsys.cs.c
+ ${AFS_CCRULE} ../sys/rmtsys.cs.c
afssyscalls.o: ${SYS}/afssyscalls.c
- ${CCRULE}
+ ${AFS_CCRULE} ${SYS}/afssyscalls.c
rmtsysnet.o: ${SYS}/rmtsysnet.c
- ${CCRULE}
+ ${AFS_CCRULE} -I../sys ${SYS}/rmtsysnet.c
glue.o: ${SYS}/glue.c
- ${CCRULE}
+ ${AFS_CCRULE} ${SYS}/glue.c
setpag.o: ${SYS}/setpag.c
- ${CCRULE}
+ ${AFS_CCRULE} ${SYS}/setpag.c
pioctl.o: ${SYS}/pioctl.c
- ${CCRULE}
+ ${AFS_CCRULE} ${SYS}/pioctl.c
clean:
$(RM) -f *.o *.a libafsauthent.a* libafsauthent.sl* libafsauthent.so* \