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
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}
$(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
ubik.o: ${PTSERVER}/ubik.c ${INCLS}
$(AFS_CCRULE) $(PTSERVER)/ubik.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} $? $@
echo '#define ERROR_TABLE_BASE_pr ERROR_TABLE_BASE_PT' >> $@