]> andersk Git - moira.git/blob - update/Makefile
df489d2b59bc21092adbf19626cc3fc432d1c085
[moira.git] / update / Makefile
1 #
2 #       $Source$
3 #       $Header$
4 #
5
6 #
7 # Makefile for 'update' directory.
8 #
9 # (c) Copyright 1988 by the Massachusetts Institute of Technology.
10 # For copying and distribution information, please see the file
11 # <mit-copyright.h>.
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
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
23
24 # client object files
25 COBJS=  client.o ticket.o send_file.o checksum.o hostname.o
26
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
29
30 CSRCS=  client.c ticket.c send_file.c checksum.c hostname.c
31
32 LIBS=   -L../lib -lsms -lgdb -lkrb -ldes -lcom_err
33
34 all:    sms_update.o update_server
35
36 update_server: ${SOBJS}
37         cc ${CFLAGS} -o update_server ${SOBJS} ${LIBS}
38
39 sms_update.o: ${COBJS}
40         ld -r -o sms_update.o ${COBJS}
41
42
43 clean:  
44         -rm -f ${COBJS} ${SOBJS}
45         -rm -f update_server sms_update.o
46         -rm -f core a.out *~ \#*
47
48 install:
49         install update_server ../bin/update_server
50
51 lint:
52         lint ${LINTFLAGS} ${SSRCS}
53         lint ${LINTFLAGS} ${CSRCS}
54
55
56 smskey: smskey.c
57         ${CC} ${CFLAGS} -o smskey smskey.c -ldes
58
59 SRCS=   ${SSRCS} ${CSRCS}
60 depend:
61         -rm -f eddep makedep
62         ${CC} -M ${CFLAGS} ${SRCS} | \
63         sed -e 's; ./; ;' \
64             -e ':loop' \
65             -e 's/\.\.\/[^ /]*\/\.\./../' \
66             -e 't loop' | \
67         awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
68                 else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
69                        else rec = rec " " $$2 } } \
70               END { print rec } ' > makedep
71         echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
72         echo '$$r makedep' >>eddep
73         echo 'w' >>eddep
74         -rm -f Makefile.bak
75         cp Makefile Makefile.bak
76         ed - Makefile < eddep
77         rm -f eddep makedep
78
79 # the last line in the makefile should be...
80 # DO NOT DELETE THIS LINE
81
82 update_server.o: update_server.c /usr/include/stdio.h ../include/gdb.h
83 update_server.o: /usr/include/sys/types.h /usr/include/sys/time.h
84 update_server.o: /usr/include/time.h /usr/include/errno.h
85 update_server.o: /usr/include/strings.h ../include/sms.h ../include/sms_et.h
86 update_server.o: /usr/include/sys/file.h /usr/include/sys/ioctl.h
87 update_server.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h update.h
88 update_server.o: kludge.h
89 auth_001.o: auth_001.c /usr/include/stdio.h /usr/include/strings.h
90 auth_001.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
91 auth_001.o: /usr/include/time.h kludge.h /usr/include/krb.h
92 auth_001.o: ../include/mit-copyright.h /usr/include/des.h
93 auth_001.o: ../include/mit-copyright.h /usr/include/des_conf.h
94 auth_001.o: ../include/mit-copyright.h /usr/include/netinet/in.h
95 auth_001.o: /usr/include/errno.h
96 inst_001.o: inst_001.c /usr/include/stdio.h ../include/gdb.h
97 inst_001.o: /usr/include/sys/types.h /usr/include/sys/time.h
98 inst_001.o: /usr/include/time.h kludge.h
99 xfer_002.o: xfer_002.c /usr/include/stdio.h ../include/gdb.h
100 xfer_002.o: /usr/include/sys/types.h /usr/include/sys/time.h
101 xfer_002.o: /usr/include/time.h /usr/include/ctype.h /usr/include/sys/param.h
102 xfer_002.o: /usr/include/machine/machparam.h /usr/include/signal.h
103 xfer_002.o: /usr/include/sys/types.h /usr/include/sys/file.h
104 xfer_002.o: /usr/include/strings.h ../include/sms.h ../include/sms_et.h
105 xfer_002.o: kludge.h
106 exec_002.o: exec_002.c /usr/include/stdio.h /usr/include/sys/wait.h
107 exec_002.o: /usr/include/signal.h ../include/gdb.h /usr/include/sys/types.h
108 exec_002.o: /usr/include/sys/time.h /usr/include/time.h ../include/sms.h
109 exec_002.o: ../include/sms_et.h update.h kludge.h
110 hostname.o: hostname.c /usr/include/stdio.h /usr/include/sys/types.h
111 hostname.o: /usr/include/netinet/in.h /usr/include/netdb.h /usr/include/ctype.h
112 hostname.o: /usr/include/strings.h
113 log.o: log.c /usr/include/stdio.h ../include/com_err.h
114 log.o: ../include/mit-sipb-copyright.h /usr/include/varargs.h update.h
115 log.o: /usr/include/krb.h ../include/mit-copyright.h /usr/include/des.h
116 log.o: ../include/mit-copyright.h /usr/include/des_conf.h
117 log.o: ../include/mit-copyright.h
118 get_file.o: get_file.c /usr/include/stdio.h ../include/gdb.h
119 get_file.o: /usr/include/sys/types.h /usr/include/sys/time.h
120 get_file.o: /usr/include/time.h /usr/include/ctype.h /usr/include/sys/param.h
121 get_file.o: /usr/include/machine/machparam.h /usr/include/signal.h
122 get_file.o: /usr/include/sys/types.h /usr/include/sys/file.h ../include/sms.h
123 get_file.o: ../include/sms_et.h update.h kludge.h
124 checksum.o: checksum.c /usr/include/stdio.h /usr/include/sys/file.h
125 client.o: client.c /usr/include/stdio.h /usr/include/strings.h ../include/gdb.h
126 client.o: /usr/include/sys/types.h /usr/include/sys/time.h /usr/include/time.h
127 client.o: /usr/include/sys/param.h /usr/include/machine/machparam.h
128 client.o: /usr/include/signal.h /usr/include/sys/types.h
129 client.o: /usr/include/sys/wait.h ../include/update.h /usr/include/errno.h
130 client.o: ../include/dcm.h ../include/sms.h ../include/sms_et.h
131 client.o: /usr/include/krb.h ../include/mit-copyright.h /usr/include/des.h
132 client.o: ../include/mit-copyright.h /usr/include/des_conf.h
133 client.o: ../include/mit-copyright.h
134 ticket.o: ticket.c /usr/include/stdio.h /usr/include/krb.h
135 ticket.o: ../include/mit-copyright.h /usr/include/des.h
136 ticket.o: ../include/mit-copyright.h /usr/include/des_conf.h
137 ticket.o: ../include/mit-copyright.h /usr/include/sys/types.h
138 ticket.o: /usr/include/sys/stat.h /usr/include/strings.h ../include/update.h
139 ticket.o: ../include/com_err.h ../include/mit-sipb-copyright.h
140 send_file.o: send_file.c /usr/include/stdio.h ../include/com_err.h
141 send_file.o: ../include/mit-sipb-copyright.h ../include/gdb.h
142 send_file.o: /usr/include/sys/types.h /usr/include/sys/time.h
143 send_file.o: /usr/include/time.h ../include/dcm.h ../include/sms.h
144 send_file.o: ../include/sms_et.h /usr/include/sys/file.h
145 send_file.o: /usr/include/sys/stat.h ../include/update.h
146 checksum.o: checksum.c /usr/include/stdio.h /usr/include/sys/file.h
147 hostname.o: hostname.c /usr/include/stdio.h /usr/include/sys/types.h
148 hostname.o: /usr/include/netinet/in.h /usr/include/netdb.h /usr/include/ctype.h
149 hostname.o: /usr/include/strings.h
This page took 0.063624 seconds and 3 git commands to generate.