]> andersk Git - moira.git/blame - update/Makefile
added sms_untar
[moira.git] / update / Makefile
CommitLineData
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
13CC= cc
14INCS= -I../include
15DEFS=
16CFLAGS= -g ${INCS} ${DEFS}
17LINTFLAGS= ${INCS}
18LDFLAGS= -x
19
20# server object files
6933d1a5 21SOBJS= 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 25COBJS= client.o ticket.o send_file.o checksum.o hostname.o
de56407f 26
6933d1a5 27SSRCS= 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 30CSRCS= client.c ticket.c send_file.c checksum.c hostname.c
de56407f 31
6933d1a5 32LIBS= -L../lib -lsms -lgdb -lkrb -ldes -lcom_err
de56407f 33
47323920 34all: sms_update.o update_server sms_untar
de56407f 35
6933d1a5 36update_server: ${SOBJS}
37 cc ${CFLAGS} -o update_server ${SOBJS} ${LIBS}
6643f7ba 38
39sms_update.o: ${COBJS}
40 ld -r -o sms_update.o ${COBJS}
41
47323920 42sms_untar: sms_untar.c
43 cc -o sms_untar sms_untar.c
44
de56407f 45
46clean:
6933d1a5 47 -rm -f ${COBJS} ${SOBJS}
48 -rm -f update_server sms_update.o
47323920 49 -rm -f sms_untar
de56407f 50 -rm -f core a.out *~ \#*
51
98de09c0 52install: update_server
53 install -s update_server ${DESTDIR}/usr/etc/update_server
47323920 54 install -s sms_untar ${DESTDIR}/etc/sms_untar
7eef31e6 55
de56407f 56lint:
6933d1a5 57 lint ${LINTFLAGS} ${SSRCS}
58 lint ${LINTFLAGS} ${CSRCS}
de56407f 59
de56407f 60
d7bd457d 61smskey: smskey.c
62 ${CC} ${CFLAGS} -o smskey smskey.c -ldes
63
6933d1a5 64SRCS= ${SSRCS} ${CSRCS}
65depend:
de56407f 66 -rm -f eddep makedep
67 ${CC} -M ${CFLAGS} ${SRCS} | \
68 sed -e 's; ./; ;' \
69 -e ':loop' \
70 -e 's/\.\.\/[^ /]*\/\.\./../' \
71 -e 't loop' | \
72 awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
73 else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
74 else rec = rec " " $$2 } } \
75 END { print rec } ' > makedep
76 echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
77 echo '$$r makedep' >>eddep
78 echo 'w' >>eddep
79 -rm -f Makefile.bak
80 cp Makefile Makefile.bak
81 ed - Makefile < eddep
82 rm -f eddep makedep
6933d1a5 83
de56407f 84# the last line in the makefile should be...
85# DO NOT DELETE THIS LINE
6933d1a5 86
98de09c0 87update_server.o: update_server.c ../include/mit-copyright.h
88update_server.o: /usr/include/stdio.h ../include/gdb.h /usr/include/sys/types.h
89update_server.o: /usr/include/sys/time.h /usr/include/time.h
90update_server.o: /usr/include/errno.h /usr/include/strings.h ../include/sms.h
91update_server.o: ../include/sms_et.h /usr/include/sys/file.h
92update_server.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
93update_server.o: /usr/include/sys/ttydev.h update.h kludge.h
94auth_001.o: auth_001.c ../include/mit-copyright.h /usr/include/stdio.h
95auth_001.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h
96auth_001.o: /usr/include/sys/time.h /usr/include/time.h kludge.h
97auth_001.o: /usr/include/krb.h ../include/mit-copyright.h /usr/include/des.h
6933d1a5 98auth_001.o: ../include/mit-copyright.h /usr/include/des_conf.h
99auth_001.o: ../include/mit-copyright.h /usr/include/netinet/in.h
100auth_001.o: /usr/include/errno.h
98de09c0 101inst_001.o: inst_001.c ../include/mit-copyright.h /usr/include/stdio.h
102inst_001.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
6933d1a5 103inst_001.o: /usr/include/time.h kludge.h
98de09c0 104xfer_002.o: xfer_002.c ../include/mit-copyright.h /usr/include/stdio.h
105xfer_002.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
6933d1a5 106xfer_002.o: /usr/include/time.h /usr/include/ctype.h /usr/include/sys/param.h
107xfer_002.o: /usr/include/machine/machparam.h /usr/include/signal.h
108xfer_002.o: /usr/include/sys/types.h /usr/include/sys/file.h
109xfer_002.o: /usr/include/strings.h ../include/sms.h ../include/sms_et.h
110xfer_002.o: kludge.h
98de09c0 111exec_002.o: exec_002.c ../include/mit-copyright.h /usr/include/stdio.h
112exec_002.o: /usr/include/sys/wait.h /usr/include/signal.h ../include/gdb.h
113exec_002.o: /usr/include/sys/types.h /usr/include/sys/time.h
114exec_002.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h update.h
115exec_002.o: kludge.h
116hostname.o: hostname.c ../include/mit-copyright.h /usr/include/stdio.h
117hostname.o: /usr/include/sys/types.h /usr/include/netinet/in.h
118hostname.o: /usr/include/netdb.h /usr/include/ctype.h /usr/include/strings.h
119log.o: log.c ../include/mit-copyright.h /usr/include/stdio.h
120log.o: ../include/com_err.h ../include/mit-sipb-copyright.h
121log.o: /usr/include/varargs.h update.h /usr/include/krb.h
122log.o: ../include/mit-copyright.h /usr/include/des.h ../include/mit-copyright.h
123log.o: /usr/include/des_conf.h ../include/mit-copyright.h
124get_file.o: get_file.c ../include/mit-copyright.h /usr/include/stdio.h
125get_file.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
6933d1a5 126get_file.o: /usr/include/time.h /usr/include/ctype.h /usr/include/sys/param.h
127get_file.o: /usr/include/machine/machparam.h /usr/include/signal.h
128get_file.o: /usr/include/sys/types.h /usr/include/sys/file.h ../include/sms.h
129get_file.o: ../include/sms_et.h update.h kludge.h
98de09c0 130checksum.o: checksum.c ../include/mit-copyright.h /usr/include/stdio.h
131checksum.o: /usr/include/sys/file.h
132client.o: client.c ../include/mit-copyright.h /usr/include/stdio.h
133client.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h
134client.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/param.h
135client.o: /usr/include/machine/machparam.h /usr/include/signal.h
136client.o: /usr/include/sys/types.h /usr/include/sys/wait.h ../include/update.h
137client.o: /usr/include/errno.h ../include/dcm.h ../include/sms.h
138client.o: ../include/sms_et.h /usr/include/krb.h ../include/mit-copyright.h
139client.o: /usr/include/des.h ../include/mit-copyright.h /usr/include/des_conf.h
6933d1a5 140client.o: ../include/mit-copyright.h
98de09c0 141ticket.o: ticket.c ../include/mit-copyright.h /usr/include/stdio.h
142ticket.o: /usr/include/krb.h ../include/mit-copyright.h /usr/include/des.h
6933d1a5 143ticket.o: ../include/mit-copyright.h /usr/include/des_conf.h
144ticket.o: ../include/mit-copyright.h /usr/include/sys/types.h
145ticket.o: /usr/include/sys/stat.h /usr/include/strings.h ../include/update.h
146ticket.o: ../include/com_err.h ../include/mit-sipb-copyright.h
98de09c0 147send_file.o: send_file.c ../include/mit-copyright.h /usr/include/stdio.h
148send_file.o: ../include/com_err.h ../include/mit-sipb-copyright.h
149send_file.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
6933d1a5 150send_file.o: /usr/include/time.h ../include/dcm.h ../include/sms.h
151send_file.o: ../include/sms_et.h /usr/include/sys/file.h
152send_file.o: /usr/include/sys/stat.h ../include/update.h
98de09c0 153checksum.o: checksum.c ../include/mit-copyright.h /usr/include/stdio.h
154checksum.o: /usr/include/sys/file.h
155hostname.o: hostname.c ../include/mit-copyright.h /usr/include/stdio.h
156hostname.o: /usr/include/sys/types.h /usr/include/netinet/in.h
157hostname.o: /usr/include/netdb.h /usr/include/ctype.h /usr/include/strings.h
This page took 0.084212 seconds and 5 git commands to generate.