]> andersk Git - moira.git/blame - update/Makefile
Changes by spook.
[moira.git] / update / Makefile
CommitLineData
de56407f 1#
2# $Source$
3# $Header$
4#
5
6#
7# Makefile for 'update' directory.
8#
9
10CC= cc
11INCS= -I../include
12DEFS=
13CFLAGS= -g ${INCS} ${DEFS}
14LINTFLAGS= ${INCS}
15LDFLAGS= -x
16
17# server object files
18SOBJS= 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
21
22# client object files
23COBJS= client2.o ticket.o send_file.o
24
25# common object files
26COMOBJS= log_error.o hostname.o smsu_int.o log.o checksum.o
27
28SSRCS= 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
31
32CSRCS= client.c ticket.c send_file.c client2.c
33
34COMSRCS= log_error.c hostname.c log.c checksum.c
35
36# libmisc.a includes libcom_err.a and a working malloc()
37LIBS= -L../lib -lgdb -lkrb -ldes -lcom_err
38
39all: server sms_update.o test
40
41clean:
a21b4b84 42 -rm -f ${COBJS} ${SOBJS} ${COMOBJS} client.o
de56407f 43 -rm -f server sms_update.o test test.o smsu_int.h
44 -rm -f core a.out *~ \#*
45
7eef31e6 46install:
47# This is probably wrong..
48 install server ../bin/update_server
49 install test ../bin/update_test
50
de56407f 51lint:
52 lint ${LINTFLAGS} ${SSRCS} ${COMSRCS}
53 lint ${LINTFLAGS} ${CSRCS} ${COMSRCS}
54
55server: ${SOBJS} ${COMOBJS}
56 rm -f server
57 ${CC} ${CFLAGS} -o server ${SOBJS} ${COMOBJS} ${LIBS}
58
59sms_update.o: ${COBJS} ${COMOBJS}
60 ld ${LDFLAGS} -r -o sms_update.o ${COBJS} ${COMOBJS}
61 -chmod -x sms_update.o
62
63smsu_int.o smsu_int.h: smsu_int.et
b7be5219 64 compile_et smsu_int
de56407f 65
66test.o: test.c
67 -rm -f test.o
68 ${CC} ${CFLAGS} -c test.c
69
70test: test.o sms_update.o
71 rm -f test
72 ${CC} ${CFLAGS} -o test test.o sms_update.o ${LIBS}
73
74SRCS= ${SSRCS} ${CSRCS} ${COMSRCS}
75depend: smsu_int.h
76 -rm -f eddep makedep
77 ${CC} -M ${CFLAGS} ${SRCS} | \
78 sed -e 's; ./; ;' \
79 -e ':loop' \
80 -e 's/\.\.\/[^ /]*\/\.\./../' \
81 -e 't loop' | \
82 awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
83 else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
84 else rec = rec " " $$2 } } \
85 END { print rec } ' > makedep
86 echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
87 echo '$$r makedep' >>eddep
88 echo 'w' >>eddep
89 -rm -f Makefile.bak
90 cp Makefile Makefile.bak
91 ed - Makefile < eddep
92 rm -f eddep makedep
93#
94# the last line in the makefile should be...
95# DO NOT DELETE THIS LINE
96
97dispatch.o: dispatch.c /usr/include/stdio.h ../include/gdb.h
98dispatch.o: /usr/include/sys/types.h /usr/include/sys/time.h
99dispatch.o: /usr/include/time.h /usr/include/errno.h /usr/include/strings.h
100dispatch.o: ../include/update.h sms_update_int.h smsu_int.h kludge.h
101initialize_server.o: initialize_server.c /usr/include/stdio.h ../include/gdb.h
102initialize_server.o: /usr/include/sys/types.h /usr/include/sys/time.h
103initialize_server.o: /usr/include/time.h
104quit.o: quit.c /usr/include/stdio.h ../include/gdb.h /usr/include/sys/types.h
105quit.o: /usr/include/sys/time.h /usr/include/time.h
106xfer_001.o: xfer_001.c /usr/include/stdio.h /usr/include/strings.h
107xfer_001.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
108xfer_001.o: /usr/include/time.h /usr/include/ctype.h /usr/include/sys/param.h
109xfer_001.o: /usr/include/machine/machparam.h /usr/include/signal.h
110xfer_001.o: /usr/include/sys/types.h /usr/include/sys/file.h smsu_int.h
111xfer_001.o: kludge.h
112misc.o: misc.c /usr/include/stdio.h ../include/gdb.h /usr/include/sys/types.h
113misc.o: /usr/include/sys/time.h /usr/include/time.h sms_update_int.h kludge.h
114misc.o: /usr/include/sys/param.h /usr/include/machine/machparam.h
115misc.o: /usr/include/signal.h /usr/include/sys/types.h smsu_int.h
116inst_001.o: inst_001.c /usr/include/stdio.h ../include/gdb.h
117inst_001.o: /usr/include/sys/types.h /usr/include/sys/time.h
118inst_001.o: /usr/include/time.h kludge.h sms_update_int.h
119sync.o: sync.c /usr/include/stdio.h ../include/gdb.h /usr/include/sys/types.h
120sync.o: /usr/include/sys/time.h /usr/include/time.h kludge.h smsu_int.h
121auth_001.o: auth_001.c /usr/include/stdio.h /usr/include/strings.h
122auth_001.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
123auth_001.o: /usr/include/time.h smsu_int.h kludge.h /usr/include/krb.h
124auth_001.o: /usr/include/des.h /usr/include/netinet/in.h /usr/include/errno.h
125exec_001.o: exec_001.c /usr/include/stdio.h ../include/gdb.h
126exec_001.o: /usr/include/sys/types.h /usr/include/sys/time.h
127exec_001.o: /usr/include/time.h sms_update_int.h kludge.h smsu_int.h
128get_file.o: get_file.c /usr/include/stdio.h ../include/gdb.h
129get_file.o: /usr/include/sys/types.h /usr/include/sys/time.h
130get_file.o: /usr/include/time.h /usr/include/ctype.h /usr/include/sys/param.h
131get_file.o: /usr/include/machine/machparam.h /usr/include/signal.h
132get_file.o: /usr/include/sys/types.h /usr/include/sys/file.h
133get_file.o: ../include/update.h smsu_int.h kludge.h
134xfer_002.o: xfer_002.c /usr/include/stdio.h ../include/gdb.h
135xfer_002.o: /usr/include/sys/types.h /usr/include/sys/time.h
136xfer_002.o: /usr/include/time.h /usr/include/ctype.h /usr/include/sys/param.h
137xfer_002.o: /usr/include/machine/machparam.h /usr/include/signal.h
138xfer_002.o: /usr/include/sys/types.h /usr/include/sys/file.h smsu_int.h
139xfer_002.o: kludge.h /usr/include/strings.h
140exec_002.o: exec_002.c /usr/include/stdio.h /usr/include/sys/wait.h
141exec_002.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
142exec_002.o: /usr/include/time.h ../include/update.h sms_update_int.h kludge.h
143exec_002.o: smsu_int.h
144client.o: client.c /usr/include/stdio.h ../include/gdb.h
145client.o: /usr/include/sys/types.h /usr/include/sys/time.h /usr/include/time.h
146client.o: /usr/include/sys/stat.h /usr/include/sys/file.h
147client.o: /usr/include/sys/param.h /usr/include/machine/machparam.h
148client.o: /usr/include/signal.h /usr/include/sys/types.h ../include/update.h
149client.o: /usr/include/errno.h sms_update_int.h smsu_int.h /usr/include/krb.h
150client.o: /usr/include/des.h kludge.h
151stubs.o: stubs.c ../include/update.h
152ticket.o: ticket.c /usr/include/stdio.h /usr/include/krb.h /usr/include/des.h
153ticket.o: /usr/include/sys/types.h /usr/include/sys/stat.h
154ticket.o: /usr/include/strings.h sms_update_int.h ../include/com_err.h
155ticket.o: ../include/mit-sipb-copyright.h kludge.h
156send_file.o: send_file.c /usr/include/stdio.h ../include/com_err.h
157send_file.o: ../include/mit-sipb-copyright.h ../include/gdb.h
158send_file.o: /usr/include/sys/types.h /usr/include/sys/time.h
159send_file.o: /usr/include/time.h smsu_int.h /usr/include/sys/file.h
160send_file.o: ../include/update.h sms_update_int.h kludge.h
161client2.o: client2.c /usr/include/stdio.h /usr/include/strings.h
162client2.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
163client2.o: /usr/include/time.h /usr/include/sys/stat.h /usr/include/sys/file.h
164client2.o: /usr/include/sys/param.h /usr/include/machine/machparam.h
165client2.o: /usr/include/signal.h /usr/include/sys/types.h ../include/update.h
166client2.o: /usr/include/errno.h sms_update_int.h smsu_int.h /usr/include/krb.h
167client2.o: /usr/include/des.h kludge.h
168log_error.o: log_error.c /usr/include/stdio.h /usr/include/syslog.h
169hostname.o: hostname.c /usr/include/stdio.h /usr/include/sys/types.h
170hostname.o: /usr/include/netinet/in.h /usr/include/netdb.h /usr/include/ctype.h
171hostname.o: /usr/include/strings.h
172log.o: log.c /usr/include/stdio.h ../include/com_err.h
173log.o: ../include/mit-sipb-copyright.h /usr/include/varargs.h
174log.o: ../include/update.h /usr/include/krb.h /usr/include/des.h
175checksum.o: checksum.c /usr/include/stdio.h /usr/include/sys/file.h
This page took 0.067845 seconds and 5 git commands to generate.