ptserver: Rename ubik.c as ptubik.c
[openafs.git] / src / tptserver / Makefile.in
index 4ed8ba8..5a217c6 100644 (file)
@@ -25,7 +25,6 @@ INCLS=${TOP_INCDIR}/ubik.h \
 
 LIBS_common= \
        $(top_builddir)/src/ubik/liboafs_ubik.la \
-       ${TOP_LIBDIR}/libafsauthent.a \
        $(top_builddir)/src/sys/liboafs_sys.la \
        $(top_builddir)/src/rx/liboafs_rx.la \
        $(top_builddir)/src/rxstat/liboafs_rxstat.la \
@@ -46,6 +45,9 @@ LIBS_client= \
 all: ptserver pts pt_util db_verify \
        depinstall readgroup readpwd testpt
 
+generated: \
+       pterror.h pterror.c
+
 depinstall: 
 
 # When supergroups is enabled, some parts of ptserver cast between
@@ -60,7 +62,7 @@ CFLAGS_ptprocs.o = @CFLAGS_NOSTRICT@
 ptserver.o: ${PTSERVER}/ptserver.c ${INCLS}
        $(AFS_CCRULE) $(PTSERVER)/ptserver.c
 
-ptutils.o: ${PTSERVER}/ptutils.c ${INCLS}
+ptutils.o: ${PTSERVER}/ptutils.c ${INCLS} pterror.h
        $(AFS_CCRULE) $(PTSERVER)/ptutils.c
 
 ptprocs.o: ${PTSERVER}/ptprocs.c ${INCLS}
@@ -73,13 +75,13 @@ map.o: ${PTSERVER}/map.c ${INCLS}
        $(AFS_CCRULE) $(PTSERVER)/map.c
 
 ptint.ss.c: ${PTSERVER}/ptint.xg
-       ${RXGEN} -A -x -S -o $@ ${srcdir}/${PTSERVER}/ptint.xg
+       ${RXGEN} -A -x -S -o $@ ${PTSERVER}/ptint.xg
 
 ptint.xdr.c: ${PTSERVER}/ptint.xg
-       ${RXGEN} -A -x -c -o $@ ${srcdir}/${PTSERVER}/ptint.xg
+       ${RXGEN} -A -x -c -o $@ ${PTSERVER}/ptint.xg
 
 ptint.h: ${PTSERVER}/ptint.xg
-       ${RXGEN} -A -x -h -u -o $@ ${srcdir}/${PTSERVER}/ptint.xg
+       ${RXGEN} -A -x -h -u -o $@ ${PTSERVER}/ptint.xg
 
 ptint.ss.c: ptint.h
 ptint.xdr.c: ptint.h
@@ -134,15 +136,20 @@ testpt: testpt.o $(LIBS_client)
 testpt.o: ${PTSERVER}/testpt.c ${INCLS}
        $(AFS_CCRULE) $(PTSERVER)/testpt.c
 
-pt_util: pt_util.o ptutils.o ubik.o utils.o map.o $(LIBS_client)
-       $(LT_LDRULE_static) pt_util.o ptutils.o ubik.o utils.o map.o \
+pt_util: pt_util.o ptutils.o ptubik.o utils.o map.o $(LIBS_client)
+       $(LT_LDRULE_static) pt_util.o ptutils.o ptubik.o utils.o map.o \
                $(LIBS_client) $(LIB_hcrypto) $(LIB_roken) ${MT_LIBS} ${XLIBS}
 
 pt_util.o: ${PTSERVER}/pt_util.c
        $(AFS_CCRULE) $(PTSERVER)/pt_util.c
 
-ubik.o: ${PTSERVER}/ubik.c ${INCLS}
-       $(AFS_CCRULE) $(PTSERVER)/ubik.c
+ptubik.o: ${PTSERVER}/ptubik.c ${INCLS}
+       $(AFS_CCRULE) $(PTSERVER)/ptubik.c
+
+pterror.h: pterror.c
+pterror.c: ${PTSERVER}/pterror.et
+       $(RM) -f pterror.h pterror.c
+       ${COMPILE_ET} -p ${PTSERVER} pterror
 
 prerror.h: pterror.h
        ${INSTALL} $? $@