# Imakefile for update.
#
-SRCS= auth_001.c checksum.c client.c exec_002.c get_file.c \
- hostname.c inst_001.c log.c send_file.c ticket.c \
- update_server.c xfer_002.c xfer_003.c config.c update_test.c
+SRCS= auth_002.c checksum.c client.c config.c exec_002.c \
+ get_file.c hostname.c log.c send_file.c ticket.c \
+ update_server.c update_test.c xfer_002.c xfer_003.c
SRCDIR=${SRCTOP}/update
CODE=${SRCS} Imakefile
-SOBJS= update_server.o auth_001.o inst_001.o xfer_002.o exec_002.o \
- xfer_003.o log.o get_file.o checksum.o config.o
-COBJS= ticket.o send_file.o checksum.o
+SOBJS = auth_002.o checksum.o config.o exec_002.o get_file.o \
+ log.o update_server.o xfer_002.o xfer_003.o
+COBJS= checksum.o client.o send_file.o ticket.o
#ifdef HAS_VSPRINTF
DEFINES= -DHAS_VSPRINTF
#endif
-#ifdef SVRBUILD
-all:: update_server moira_update.o update_test
-#else
all:: update_server update_test
+#ifdef SVRBUILD
+all:: moira_update.o
#endif
#ifdef SVRBUILD
-moira_update.o: ${COBJS} client.o
- ${LD} -r -o moira_update.o ${COBJS} client.o
+moira_update.o: ${COBJS}
+ ${LD} -r -o moira_update.o ${COBJS}
#endif
program(update_server, ${SOBJS},${MR_LIBDEP} ${GDB_LIBDEP}, ${CLIBS},${ETCDIR})
-test_program(update_test, ${COBJS}, ${CLIBS})
+program(update_test, update_test.c ${COBJS}, ${MR_LIBDEP} ${GDB_LIBDEP}, ${CLIBS},${BINDIR})