]>
Commit | Line | Data |
---|---|---|
de56407f | 1 | # |
2 | # $Source$ | |
3 | # $Header$ | |
4 | # | |
5 | ||
6 | # | |
7 | # Makefile for 'update' directory. | |
8 | # | |
546bc43b | 9 | # (c) Copyright 1988 by the Massachusetts Institute of Technology. |
10 | # For copying and distribution information, please see the file | |
11 | # <mit-copyright.h>. | |
de56407f | 12 | |
13 | CC= cc | |
14 | INCS= -I../include | |
15 | DEFS= | |
16 | CFLAGS= -g ${INCS} ${DEFS} | |
17 | LINTFLAGS= ${INCS} | |
18 | LDFLAGS= -x | |
19 | ||
20 | # server object files | |
6933d1a5 | 21 | SOBJS= update_server.o auth_001.o inst_001.o xfer_002.o exec_002.o \ |
22 | hostname.o log.o get_file.o checksum.o | |
de56407f | 23 | |
24 | # client object files | |
6643f7ba | 25 | COBJS= client.o ticket.o send_file.o checksum.o hostname.o |
de56407f | 26 | |
6933d1a5 | 27 | SSRCS= update_server.c auth_001.c inst_001.c xfer_002.c exec_002.c \ |
28 | hostname.c log.c get_file.c checksum.c | |
de56407f | 29 | |
6643f7ba | 30 | CSRCS= client.c ticket.c send_file.c checksum.c hostname.c |
de56407f | 31 | |
2ad0a777 | 32 | LIBS= -L../lib -lmoira -lgdb -lkrb -ldes -lcom_err |
de56407f | 33 | |
2ad0a777 | 34 | all: moira_update.o update_server sms_untar |
de56407f | 35 | |
6933d1a5 | 36 | update_server: ${SOBJS} |
37 | cc ${CFLAGS} -o update_server ${SOBJS} ${LIBS} | |
6643f7ba | 38 | |
2ad0a777 | 39 | moira_update.o: ${COBJS} |
40 | ld -r -o moira_update.o ${COBJS} | |
6643f7ba | 41 | |
47323920 | 42 | sms_untar: sms_untar.c |
9d1c2330 | 43 | cc -o sms_untar ${INCS} sms_untar.c |
47323920 | 44 | |
de56407f | 45 | |
46 | clean: | |
6933d1a5 | 47 | -rm -f ${COBJS} ${SOBJS} |
2ad0a777 | 48 | -rm -f update_server moira_update.o |
47323920 | 49 | -rm -f sms_untar |
de56407f | 50 | -rm -f core a.out *~ \#* |
51 | ||
98de09c0 | 52 | install: update_server |
a7ef7615 | 53 | install -c -s update_server ${DESTDIR}/usr/etc/update_server |
54 | install -c -s sms_untar ${DESTDIR}/etc/sms_untar | |
7eef31e6 | 55 | |
de56407f | 56 | lint: |
6933d1a5 | 57 | lint ${LINTFLAGS} ${SSRCS} |
58 | lint ${LINTFLAGS} ${CSRCS} | |
de56407f | 59 | |
d7bd457d | 60 | smskey: smskey.c |
61 | ${CC} ${CFLAGS} -o smskey smskey.c -ldes | |
62 | ||
6933d1a5 | 63 | depend: |
050550ba | 64 | mkdep ${CFLAGS} ${SSRCS} ${CSRCS} |
65 | ||
66 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
6933d1a5 | 67 | |
98de09c0 | 68 | update_server.o: update_server.c ../include/mit-copyright.h |
050550ba | 69 | update_server.o: /usr/include/stdio.h ../include/gdb.h |
70 | update_server.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
71 | update_server.o: /usr/include/sys/time.h /usr/include/errno.h | |
2ad0a777 | 72 | update_server.o: /usr/include/strings.h ../include/moira.h ../include/mr_et.h |
050550ba | 73 | update_server.o: /usr/include/sys/file.h /usr/include/sys/ioctl.h |
74 | update_server.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
75 | update_server.o: ../include/update.h | |
98de09c0 | 76 | auth_001.o: auth_001.c ../include/mit-copyright.h /usr/include/stdio.h |
77 | auth_001.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h | |
050550ba | 78 | auth_001.o: /usr/include/sys/time.h /usr/include/sys/time.h ../include/krb.h |
79 | auth_001.o: ../include/des.h ../include/krb_et.h /usr/include/netinet/in.h | |
80 | auth_001.o: /usr/include/errno.h | |
98de09c0 | 81 | inst_001.o: inst_001.c ../include/mit-copyright.h /usr/include/stdio.h |
82 | inst_001.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h | |
050550ba | 83 | inst_001.o: /usr/include/sys/time.h |
98de09c0 | 84 | xfer_002.o: xfer_002.c ../include/mit-copyright.h /usr/include/stdio.h |
85 | xfer_002.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h | |
050550ba | 86 | xfer_002.o: /usr/include/sys/time.h /usr/include/ctype.h |
87 | xfer_002.o: /usr/include/sys/param.h /usr/include/machine/machparam.h | |
88 | xfer_002.o: /usr/include/sys/signal.h /usr/include/sys/file.h | |
2ad0a777 | 89 | xfer_002.o: /usr/include/strings.h ../include/moira.h ../include/mr_et.h |
98de09c0 | 90 | exec_002.o: exec_002.c ../include/mit-copyright.h /usr/include/stdio.h |
050550ba | 91 | exec_002.o: /usr/include/sys/wait.h /usr/include/sys/signal.h |
92 | exec_002.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h | |
2ad0a777 | 93 | exec_002.o: /usr/include/sys/time.h ../include/moira.h ../include/mr_et.h |
b29ec86e | 94 | exec_002.o: ../include/update.h |
98de09c0 | 95 | hostname.o: hostname.c ../include/mit-copyright.h /usr/include/stdio.h |
96 | hostname.o: /usr/include/sys/types.h /usr/include/netinet/in.h | |
97 | hostname.o: /usr/include/netdb.h /usr/include/ctype.h /usr/include/strings.h | |
98 | log.o: log.c ../include/mit-copyright.h /usr/include/stdio.h | |
b29ec86e | 99 | log.o: ../include/com_err.h /usr/include/varargs.h ../include/update.h |
050550ba | 100 | log.o: ../include/krb.h ../include/des.h |
98de09c0 | 101 | get_file.o: get_file.c ../include/mit-copyright.h /usr/include/stdio.h |
102 | get_file.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h | |
050550ba | 103 | get_file.o: /usr/include/sys/time.h /usr/include/ctype.h |
104 | get_file.o: /usr/include/sys/param.h /usr/include/machine/machparam.h | |
105 | get_file.o: /usr/include/sys/signal.h /usr/include/sys/file.h | |
2ad0a777 | 106 | get_file.o: ../include/moira.h ../include/mr_et.h ../include/update.h |
98de09c0 | 107 | checksum.o: checksum.c ../include/mit-copyright.h /usr/include/stdio.h |
108 | checksum.o: /usr/include/sys/file.h | |
109 | client.o: client.c ../include/mit-copyright.h /usr/include/stdio.h | |
110 | client.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h | |
050550ba | 111 | client.o: /usr/include/sys/time.h /usr/include/sys/time.h |
112 | client.o: /usr/include/sys/param.h /usr/include/machine/machparam.h | |
113 | client.o: /usr/include/sys/signal.h /usr/include/sys/wait.h | |
114 | client.o: /usr/include/sys/socket.h ../include/update.h /usr/include/errno.h | |
2ad0a777 | 115 | client.o: ../include/dcm.h ../include/moira.h ../include/mr_et.h |
116 | client.o: ../include/moira_site.h ../include/krb.h ../include/des.h | |
98de09c0 | 117 | ticket.o: ticket.c ../include/mit-copyright.h /usr/include/stdio.h |
050550ba | 118 | ticket.o: ../include/krb.h ../include/des.h /usr/include/sys/types.h |
6933d1a5 | 119 | ticket.o: /usr/include/sys/stat.h /usr/include/strings.h ../include/update.h |
b29ec86e | 120 | ticket.o: ../include/com_err.h ../include/krb_et.h |
98de09c0 | 121 | send_file.o: send_file.c ../include/mit-copyright.h /usr/include/stdio.h |
b29ec86e | 122 | send_file.o: ../include/com_err.h ../include/gdb.h /usr/include/sys/types.h |
050550ba | 123 | send_file.o: /usr/include/sys/time.h /usr/include/sys/time.h ../include/dcm.h |
2ad0a777 | 124 | send_file.o: ../include/moira.h ../include/mr_et.h /usr/include/sys/file.h |
6933d1a5 | 125 | send_file.o: /usr/include/sys/stat.h ../include/update.h |
98de09c0 | 126 | checksum.o: checksum.c ../include/mit-copyright.h /usr/include/stdio.h |
127 | checksum.o: /usr/include/sys/file.h | |
128 | hostname.o: hostname.c ../include/mit-copyright.h /usr/include/stdio.h | |
129 | hostname.o: /usr/include/sys/types.h /usr/include/netinet/in.h | |
130 | hostname.o: /usr/include/netdb.h /usr/include/ctype.h /usr/include/strings.h |