srcdir=@srcdir@
include @TOP_OBJDIR@/src/config/Makefile.config
-include @TOP_OBJDIR@/src/config/Makefile.libtool
include @TOP_OBJDIR@/src/config/Makefile.lwp
+include @TOP_OBJDIR@/src/config/Makefile.lwptool
BASE_objs= cellconfig.lo keys.lo userok.lo writeconfig.lo authcon.lo \
acfg_errors.lo ktc_errors.lo netrestrict.lo token.xdr.lo token.lo \
- realms.lo \
- AFS_component_version_number.lo
+ realms.lo
LT_objs= ktc.lo $(BASE_objs)
KRB_objs = ktc.krb.lo $(BASE_objs)
$(top_builddir)/src/rxkad/liboafs_rxkad.la \
$(top_builddir)/src/audit/liboafs_audit.la \
$(top_builddir)/src/util/liboafs_util.la \
- $(top_builddir)/src/sys/liboafs_sys.la
+ $(top_builddir)/src/sys/liboafs_sys.la \
+ @RXGK_LIBS@
LT_libs= $(LDFLAGS_roken) $(LIB_roken)
LIBS=libauth.a \
${TOP_LIBDIR}/librxkad.a \
+ ${TOP_LIBDIR}/libafsrfc3961.a \
${TOP_LIBDIR}/librx.a \
${TOP_LIBDIR}/libsys.a \
${TOP_LIBDIR}/liblwp.a \
INCLS=cellconfig.h auth.h keys.h internal.h token.h
-all: liboafs_auth.la ${TOP_LIBDIR}/libauth.a ${TOP_LIBDIR}/libauth.krb.a \
+all: liboafs_auth.la libauth_pic.la libpam_auth.la \
+ ${TOP_LIBDIR}/libauth.a ${TOP_LIBDIR}/libauth.krb.a \
depinstall
depinstall: ${TOP_INCDIR}/afs/keys.h \
liboafs_auth.la: liboafs_auth.la.sym $(LT_objs) $(LT_deps)
$(LT_LDLIB_shlib) $(LT_objs) $(LT_deps) $(LT_libs)
+libauth_pic.la: $(LT_objs)
+ $(LT_LDLIB_pic) $(LT_objs)
+
+libpam_auth.la: $(BASE_objs)
+ $(LT_LDLIB_pic) $(BASE_objs)
+
copyauth: copyauth.o ${LIBS}
$(AFS_LDRULE) copyauth.o ${LIBS} ${XLIBS}
setkey: setkey.o ${LIBS}
$(AFS_LDRULE) setkey.o ${LIBS} ${XLIBS}
-acfg_errors.c cellconfig.h: acfg_errors.et cellconfig.p.h
- $(RM) -f cellconfig.h acfg_errors.c
- ${COMPILE_ET} -p ${srcdir} acfg_errors -h cellconfig
+acfg_errors.c: acfg_errors.et
+ ${COMPILE_ET_C} -p ${srcdir} acfg_errors
+
+cellconfig.h: acfg_errors.et cellconfig.p.h
+ ${COMPILE_ET_H} -p ${srcdir} acfg_errors -h cellconfig
+
+authcon.lo: cellconfig.h
+cellconfig.lo: cellconfig.h
+copyauth.o: cellconfig.h
+keys.lo: cellconfig.h
+ktc.lo: cellconfig.h
+netrestrict.lo: cellconfig.h
+realms.lo: cellconfig.h
+setkey.o: cellconfig.h
+userok.lo: cellconfig.h
+writeconfig.lo: cellconfig.h
+
+ktc_errors.c: ktc_errors.et
+ ${COMPILE_ET_C} -p ${srcdir} ktc_errors
+
+auth.h: ktc_errors.et auth.p.h
+ ${COMPILE_ET_H} -p ${srcdir} ktc_errors -h auth
-ktc_errors.c auth.h: ktc_errors.et auth.p.h
- $(RM) -f auth.h ktc_errors.c
- ${COMPILE_ET} -p ${srcdir} ktc_errors -h auth
+authcon.lo: auth.h
+copyauth.o: auth.h
+ktc.lo: auth.h
+token.lo: auth.h
+userok.lo: auth.h
Ktoken.xdr.c: token.xg
$(RXGEN) -A -x -k -c -o $@ $(srcdir)/token.xg
#
# Misc. targets
#
-test:
- cd test; $(MAKE)
+.PHONY: test
+test:
+ cd test && $(MAKE)
clean:
$(LT_CLEAN)