shlibafssetpag-20051015
[openafs.git] / src / libafsauthent / Makefile.in
index 32e6a8b..f8eb58b 100644 (file)
@@ -7,17 +7,11 @@
 
 # This is a pthread safe library containing ubikclient, auth, kauth.
 
-DESTDIR=@DESTDIR@
-SRCDIR=@SRCDIR@
-TOP_SRCDIR=@TOP_SRCDIR@
-SYS_NAME=@AFS_SYSNAME@
-
-SHELL = /bin/sh
-
-include ../config/Makefile.${SYS_NAME}
+srcdir=@srcdir@
+include @TOP_OBJDIR@/src/config/Makefile.config
 
 CC=${MT_CC}
-CFLAGS = ${OPTMZ} ${DBG} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${MT_CFLAGS} 
+CFLAGS=${COMMON_CFLAGS} ${MT_CFLAGS} -I../auth -I../kauth -I../ptserver -I../sys
 CCRULE = ${CC} ${CFLAGS} -c $?
 
 AUDIT= ../audit
@@ -54,6 +48,7 @@ KAUTHOBJS = \
        read_passwd.o
 
 UBIKOBJS = \
+       uinit.o \
        ubikclient.o \
        uerrors.o \
        ubik_int.cs.o \
@@ -63,8 +58,9 @@ UTILOBJS = \
        pthread_glock.o \
        get_krbrlm.o \
        dirpath.o \
-       fileutil.o \
-       casestrcpy.o
+       serverLog.o \
+       snprintf.o \
+       fileutil.o
 
 RXKADOBJS = \
        rxkad_errs.o
@@ -74,7 +70,9 @@ SYSOBJS = \
        rmtsys.xdr.o \
        rmtsys.cs.o \
        afssyscalls.o \
-       rmtsysnet.o
+       rmtsysnet.o \
+       glue.o \
+       setpag.o
 
 PTSERVEROBJS = \
        ptclient.o \
@@ -94,105 +92,113 @@ LIBOBJS = \
        ${PTSERVEROBJS} \
        ${SYSOBJS}
 
-system install: ${DESTDIR}lib/libafsauthent.a
+all: ${TOP_LIBDIR}/libafsauthent.a
 
-${DESTDIR}lib/libafsauthent.a: libafsauthent.a
-       ${INSTALL} libafsauthent.a ${DESTDIR}lib/libafsauthent.a
+install: ${DESTDIR}${libdir}/libafsauthent.a
+
+${DEST}/lib/libafsauthent.a: libafsauthent.a
+       ${INSTALL} $? $@
 
 libafsauthent.a: ${LIBOBJS}
-       rm -f libafsauthent.a
-       ${AR} -r libafsauthent.a ${LIBOBJS}
-       ${RANLIB} libafsauthent.a
+       $(RM) -f $@
+       $(AR) crv $@ ${LIBOBJS}
+       $(RANLIB) $@
 
 audit.o: ${AUDIT}/audit.c
-       ${CCRULE};
+       ${CCRULE}
 
 cellconfig.o: ${AUTH}/cellconfig.c
-       ${CCRULE};
+       ${CCRULE}
 
 ktc.o: ${AUTH}/ktc.c
-       ${CCRULE};
+       ${CCRULE}
 
 userok.o: ${AUTH}/userok.c
-       ${CCRULE};
+       ${CCRULE}
 
 writeconfig.o: ${AUTH}/writeconfig.c
-       ${CCRULE};
+       ${CCRULE}
 
 authcon.o: ${AUTH}/authcon.c
-       ${CCRULE};
+       ${CCRULE}
 
 ktc_errors.o: ${AUTH}/ktc_errors.c
-       ${CCRULE};
+       ${CCRULE}
 
 acfg_errors.o: ${AUTH}/acfg_errors.c
-       ${CCRULE};
+       ${CCRULE}
 
 kauth.xdr.o: ${KAUTH}/kauth.xdr.c
-       ${CCRULE};
+       ${CCRULE}
 
 kauth.cs.o: ${KAUTH}/kauth.cs.c
-       ${CCRULE};
+       ${CCRULE}
 
 kaaux.o: ${KAUTH}/kaaux.c
-       ${CCRULE};
+       ${CCRULE}
 
 client.o: ${KAUTH}/client.c
-       ${CCRULE};
+       ${CCRULE}
 
 authclient.o: ${KAUTH}/authclient.c
-       ${CCRULE};
+       ${CCRULE}
 
 token.o: ${KAUTH}/token.c
-       ${CCRULE};
+       ${CCRULE}
 
 kautils.o: ${KAUTH}/kautils.c
-       ${CCRULE};
+       ${CCRULE}
 
 kalocalcell.o: ${KAUTH}/kalocalcell.c
-       ${CCRULE};
+       ${CCRULE}
 
 kaerrors.o: ${KAUTH}/kaerrors.c
-       ${CCRULE};
+       ${CCRULE}
 
 user.o: ${KAUTH}/user.c
-       ${CCRULE};
+       ${CCRULE}
 
 read_passwd.o: ${KAUTH}/read_passwd.c
-       ${CCRULE};
+       ${CCRULE}
 
 ubikclient.o: ${UBIK}/ubikclient.c
-       ${CCRULE};
+       ${CCRULE}
+
+uinit.o: ${UBIK}/uinit.c
+       ${CCRULE}
 
 uerrors.o: ${UBIK}/uerrors.c
-       ${CCRULE};
+       ${CCRULE}
 
 ubik_int.cs.o: ${UBIK}/ubik_int.cs.c
-       ${CCRULE};
+       ${CCRULE}
 
 ubik_int.xdr.o: ${UBIK}/ubik_int.xdr.c
-       ${CCRULE};
+       ${CCRULE}
 
 get_krbrlm.o: ${UTIL}/get_krbrlm.c
-       ${CCRULE};
+       ${CCRULE}
 
 dirpath.o: ${UTIL}/dirpath.c
-       ${CCRULE};
+       ${CCRULE}
 
-fileutil.o: ${UTIL}/fileutil.c
-       ${CCRULE};
+serverLog.o: ${UTIL}/serverLog.c
+       ${CCRULE}
 
-casestrcpy.o: ${UTIL}/casestrcpy.c
+snprintf.o: ${UTIL}/snprintf.c
+       ${CCRULE}
+
+fileutil.o: ${UTIL}/fileutil.c
        ${CCRULE}
 
 pthread_glock.o: ${UTIL}/pthread_glock.c
-       ${CCRULE};
+       ${CCRULE}
 
 rxkad_errs.o: ${RXKAD}/rxkad_errs.c
-       ${CCRULE};
+       ${CCRULE}
 
 ptclient.o: ${PTSERVER}/ptclient.c
-       ${CCRULE};
+       ${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
@@ -214,31 +220,46 @@ ptuser.o: ${PTSERVER}/ptuser.c
        esac
 
 display.o: ${PTSERVER}/display.c
-       ${CCRULE};
+       ${CCRULE}
 
 ptint.cs.o: ${PTSERVER}/ptint.cs.c
-       ${CCRULE};
+       ${CCRULE}
 
 ptint.xdr.o: ${PTSERVER}/ptint.xdr.c
-       ${CCRULE};
+       ${CCRULE}
 
 pterror.o: ${PTSERVER}/pterror.c
-       ${CCRULE};
+       ${CCRULE}
 
 rmtsysc.o: ${SYS}/rmtsysc.c
-       ${CCRULE};
+       ${CCRULE}
 
 rmtsys.xdr.o: ${SYS}/rmtsys.xdr.c
-       ${CCRULE};
+       ${CCRULE}
 
 rmtsys.cs.o: ${SYS}/rmtsys.cs.c
-       ${CCRULE};
+       ${CCRULE}
 
 afssyscalls.o: ${SYS}/afssyscalls.c
-       ${CCRULE};
+       ${CCRULE}
 
 rmtsysnet.o: ${SYS}/rmtsysnet.c
-       ${CCRULE};
+       ${CCRULE}
+
+glue.o: ${SYS}/glue.c
+       ${CCRULE}
+
+setpag.o: ${SYS}/setpag.c
+       ${CCRULE}
 
 clean:
-       rm -f *.o libafsauthent*
+       $(RM) -f *.o *.a libafsauthent*
+
+${DESTDIR}${libdir}/libafsauthent.a: libafsauthent.a
+       ${INSTALL} $? $@
+
+${TOP_LIBDIR}/libafsauthent.a: libafsauthent.a
+       ${INSTALL} $? $@
+
+dest: ${DEST}/lib/libafsauthent.a
+