]> andersk Git - moira.git/blame_incremental - update/Makefile
added directory definitions
[moira.git] / update / Makefile
... / ...
CommitLineData
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
13CC= cc
14INCS= -I../include
15DEFS=
16CFLAGS= -g ${INCS} ${DEFS}
17LINTFLAGS= ${INCS}
18LDFLAGS= -x
19
20# server object files
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
23
24# client object files
25COBJS= client.o ticket.o send_file.o checksum.o hostname.o
26
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
29
30CSRCS= client.c ticket.c send_file.c checksum.c hostname.c
31
32LIBS= -L../lib -lsms -lgdb -lkrb -ldes -lcom_err
33
34all: sms_update.o update_server sms_untar
35
36update_server: ${SOBJS}
37 cc ${CFLAGS} -o update_server ${SOBJS} ${LIBS}
38
39sms_update.o: ${COBJS}
40 ld -r -o sms_update.o ${COBJS}
41
42sms_untar: sms_untar.c
43 cc -o sms_untar sms_untar.c
44
45
46clean:
47 -rm -f ${COBJS} ${SOBJS}
48 -rm -f update_server sms_update.o
49 -rm -f sms_untar
50 -rm -f core a.out *~ \#*
51
52install: update_server
53 install -s update_server ${DESTDIR}/usr/etc/update_server
54 install -s sms_untar ${DESTDIR}/etc/sms_untar
55
56lint:
57 lint ${LINTFLAGS} ${SSRCS}
58 lint ${LINTFLAGS} ${CSRCS}
59
60
61smskey: smskey.c
62 ${CC} ${CFLAGS} -o smskey smskey.c -ldes
63
64SRCS= ${SSRCS} ${CSRCS}
65depend:
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
83
84# the last line in the makefile should be...
85# DO NOT DELETE THIS LINE
86
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: /usr/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 ../include/update.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 ../include/krb.h
97auth_001.o: ../include/mit-copyright.h ../include/des.h
98auth_001.o: ../include/mit-copyright.h ../include/krb_et.h
99auth_001.o: /usr/include/netinet/in.h /usr/include/errno.h
100inst_001.o: inst_001.c ../include/mit-copyright.h /usr/include/stdio.h
101inst_001.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
102inst_001.o: /usr/include/time.h
103xfer_002.o: xfer_002.c ../include/mit-copyright.h /usr/include/stdio.h
104xfer_002.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
105xfer_002.o: /usr/include/time.h /usr/include/ctype.h /usr/include/sys/param.h
106xfer_002.o: /usr/include/machine/machparam.h /usr/include/signal.h
107xfer_002.o: /usr/include/sys/types.h /usr/include/sys/file.h
108xfer_002.o: /usr/include/strings.h ../include/sms.h /usr/include/sms_et.h
109exec_002.o: exec_002.c ../include/mit-copyright.h /usr/include/stdio.h
110exec_002.o: /usr/include/sys/wait.h /usr/include/signal.h ../include/gdb.h
111exec_002.o: /usr/include/sys/types.h /usr/include/sys/time.h
112exec_002.o: /usr/include/time.h ../include/sms.h /usr/include/sms_et.h
113exec_002.o: ../include/update.h
114hostname.o: hostname.c ../include/mit-copyright.h /usr/include/stdio.h
115hostname.o: /usr/include/sys/types.h /usr/include/netinet/in.h
116hostname.o: /usr/include/netdb.h /usr/include/ctype.h /usr/include/strings.h
117log.o: log.c ../include/mit-copyright.h /usr/include/stdio.h
118log.o: ../include/com_err.h /usr/include/varargs.h ../include/update.h
119log.o: ../include/krb.h ../include/mit-copyright.h ../include/des.h
120log.o: ../include/mit-copyright.h
121get_file.o: get_file.c ../include/mit-copyright.h /usr/include/stdio.h
122get_file.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
123get_file.o: /usr/include/time.h /usr/include/ctype.h /usr/include/sys/param.h
124get_file.o: /usr/include/machine/machparam.h /usr/include/signal.h
125get_file.o: /usr/include/sys/types.h /usr/include/sys/file.h ../include/sms.h
126get_file.o: /usr/include/sms_et.h ../include/update.h
127checksum.o: checksum.c ../include/mit-copyright.h /usr/include/stdio.h
128checksum.o: /usr/include/sys/file.h
129client.o: client.c ../include/mit-copyright.h /usr/include/stdio.h
130client.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h
131client.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/param.h
132client.o: /usr/include/machine/machparam.h /usr/include/signal.h
133client.o: /usr/include/sys/types.h /usr/include/sys/wait.h ../include/update.h
134client.o: /usr/include/errno.h ../include/dcm.h ../include/sms.h
135client.o: /usr/include/sms_et.h ../include/krb.h ../include/mit-copyright.h
136client.o: ../include/des.h ../include/mit-copyright.h
137ticket.o: ticket.c ../include/mit-copyright.h /usr/include/stdio.h
138ticket.o: ../include/krb.h ../include/mit-copyright.h ../include/des.h
139ticket.o: ../include/mit-copyright.h /usr/include/sys/types.h
140ticket.o: /usr/include/sys/stat.h /usr/include/strings.h ../include/update.h
141ticket.o: ../include/com_err.h ../include/krb_et.h
142send_file.o: send_file.c ../include/mit-copyright.h /usr/include/stdio.h
143send_file.o: ../include/com_err.h ../include/gdb.h /usr/include/sys/types.h
144send_file.o: /usr/include/sys/time.h /usr/include/time.h ../include/dcm.h
145send_file.o: ../include/sms.h /usr/include/sms_et.h /usr/include/sys/file.h
146send_file.o: /usr/include/sys/stat.h ../include/update.h
147checksum.o: checksum.c ../include/mit-copyright.h /usr/include/stdio.h
148checksum.o: /usr/include/sys/file.h
149hostname.o: hostname.c ../include/mit-copyright.h /usr/include/stdio.h
150hostname.o: /usr/include/sys/types.h /usr/include/netinet/in.h
151hostname.o: /usr/include/netdb.h /usr/include/ctype.h /usr/include/strings.h
This page took 0.041061 seconds and 5 git commands to generate.