Add new SetTokenEx pioctl
[openafs.git] / src / auth / Makefile.in
index dd718b4..c1dea37 100644 (file)
@@ -14,9 +14,9 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
 
 OBJS= cellconfig.o ktc.o userok.o writeconfig.o authcon.o \
-    acfg_errors.o ktc_errors.o
+    acfg_errors.o ktc_errors.o token.xdr.o token.o
 KOBJS= cellconfig.o ktc.krb.o userok.o writeconfig.o authcon.o \
-    acfg_errors.o ktc_errors.o
+    acfg_errors.o ktc_errors.o token.xdr.o token.o
 
 LIBS=libauth.a \
       ${TOP_LIBDIR}/librxkad.a ${TOP_LIBDIR}/libdes.a \
@@ -32,7 +32,13 @@ all: ${TOP_LIBDIR}/libauth.a ${TOP_LIBDIR}/libauth.krb.a depinstall
 depinstall: ${TOP_INCDIR}/afs/keys.h \
        ${TOP_INCDIR}/afs/cellconfig.h \
        ${TOP_INCDIR}/afs/auth.h \
-       ${TOP_INCDIR}/afs/ktc.h
+       ${TOP_INCDIR}/afs/ktc.h \
+       ${TOP_INCDIR}/afs/token.h \
+       token.h \
+       token.xdr.c
+
+${TOP_INCDIR}/afs/token.h: token.h
+       ${INSTALL_DATA} $? $@
 
 generated: acfg_errors.c cellconfig.h ktc_errors.c auth.h
 
@@ -90,10 +96,18 @@ acfg_errors.c cellconfig.h: acfg_errors.et cellconfig.p.h
 
 ktc_errors.o: ktc_errors.c
 
+ktc.o: token.h
+
 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
 
+token.xdr.c: token.xg
+       $(RXGEN) -A -x -c -o $@ ${srcdir}/token.xg
+
+token.h : token.xg
+       $(RXGEN) -A -x -h -o $@ ${srcdir}/token.xg
+
 #
 # Install targets
 #
@@ -124,7 +138,8 @@ test:
        cd test; $(MAKE)
 
 clean:
-       $(RM) -f *.o *.a copyauth setkey auth.h cellconfig.h acfg_errors.c ktc_errors.c core \
-       AFS_component_version_number.c
+       $(RM) -f *.o *.a copyauth setkey auth.h cellconfig.h acfg_errors.c \
+               ktc_errors.c token.h token.xdr.c core \
+               AFS_component_version_number.c
 
 include ../config/Makefile.version