7 # Makefile for 'update' directory.
13 CFLAGS= -g ${INCS} ${DEFS}
18 SOBJS= dispatch.o initialize_server.o \
19 quit.o xfer_001.o misc.o inst_001.o sync.o auth_001.o \
20 exec_001.o get_file.o xfer_002.o exec_002.o
23 COBJS= client.o ticket.o send_file.o checksum.o hostname.o
26 COMOBJS= log_error.o hostname.o smsu_int.o log.o checksum.o
28 SSRCS= dispatch.c initialize_server.c \
29 quit.c xfer_001.c misc.c inst_001.c sync.c auth_001.c \
30 exec_001.c get_file.c xfer_002.c exec_002.c
32 CSRCS= client.c ticket.c send_file.c checksum.c hostname.c
34 COMSRCS= log_error.c hostname.c log.c checksum.c
36 LIBS= -L../lib -lgdb -lkrb -ldes -lcom_err
38 all: sms_update.o # server test smskey
40 sms_update.o: ${COBJS}
41 ld -r -o sms_update.o ${COBJS}
47 -rm -f ${COBJS} ${SOBJS} ${COMOBJS} client.o
48 -rm -f server sms_update.o test test.o smsu_int.h smskey
49 -rm -f core a.out *~ \#*
52 # This is probably wrong..
53 install server ../bin/update_server
54 install test ../bin/update_test
55 install smskey ../bin/smskey
58 lint ${LINTFLAGS} ${SSRCS} ${COMSRCS}
59 lint ${LINTFLAGS} ${CSRCS} ${COMSRCS}
60 lint ${LINTFLAGS} smskey.c
62 server: ${SOBJS} ${COMOBJS}
64 ${CC} ${CFLAGS} -o server ${SOBJS} ${COMOBJS} ${LIBS}
67 ${CC} ${CFLAGS} -o smskey smskey.c -ldes
69 # sms_update.o: ${COBJS} ${COMOBJS}
70 # ld ${LDFLAGS} -r -o sms_update.o ${COBJS} ${COMOBJS}
71 # -chmod -x sms_update.o
73 smsu_int.o smsu_int.h: smsu_int.et
78 ${CC} ${CFLAGS} -c test.c
80 test: test.o sms_update.o
82 ${CC} ${CFLAGS} -o test test.o sms_update.o ${LIBS}
84 SRCS= ${SSRCS} ${CSRCS} ${COMSRCS} smskey.c
87 ${CC} -M ${CFLAGS} ${SRCS} | \
90 -e 's/\.\.\/[^ /]*\/\.\./../' \
92 awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
93 else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
94 else rec = rec " " $$2 } } \
95 END { print rec } ' > makedep
96 echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
97 echo '$$r makedep' >>eddep
100 cp Makefile Makefile.bak
101 ed - Makefile < eddep
104 # the last line in the makefile should be...
105 # DO NOT DELETE THIS LINE