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