]>
Commit | Line | Data |
---|---|---|
f3f86c75 | 1 | # $Source$ |
2 | # $Author$ | |
3 | # $Header$ | |
4 | # | |
5 | # (c) Copyright 1988 by the Massachusetts Institute of Technology. | |
6 | # For copying and distribution information, please see the file | |
7 | # <mit-copyright.h>. | |
8 | ||
9 | SMS_DIR = .. | |
10 | INGRES_DIR = /usr/rtingres | |
11 | UPDATE_DIR = ${SMS_DIR}/update | |
12 | ||
13 | INCDIR = -I${SMS_DIR}/include | |
14 | CFLAGS = ${INCDIR} -g | |
15 | LDFLAGS = -L${SMS_DIR}/lib -L${SMS_DIR}/server | |
16 | ||
17 | QLIBS= ${INGRES_DIR}/lib/libqlib ${INGRES_DIR}/lib/compatlib | |
18 | ||
19 | # Libraries that talk to the SMS server: | |
f8041228 | 20 | SERVER_LIBS = -lsmsglue -lsms -lgdb -lzephyr -lkrb -ldes -lcom_err $(QLIBS) |
f3f86c75 | 21 | |
22 | DCM_SRCS = dcm.c utils.c | |
23 | DCM_OBJS = dcm.o utils.o ../update/sms_update.o | |
24 | ||
25 | ||
26 | all: dcm startdcm | |
27 | ||
28 | dcm: ${DCM_OBJS} | |
29 | rm -f $@ | |
30 | ${CC} ${LDFLAGS} -o $@ ${DCM_OBJS} ${SERVER_LIBS} | |
31 | ||
32 | startdcm: startdcm.o | |
33 | ${CC} ${LDFLAGS} -o startdcm startdcm.o | |
34 | ||
35 | clean: | |
36 | rm -f *.o core *~ | |
f195841f | 37 | rm -f dcm startdcm .saber |
f3f86c75 | 38 | |
f195841f | 39 | install: dcm startdcm |
f3f86c75 | 40 | install dcm ${SMS_DIR}/bin/dcm |
751db5cf | 41 | install startdcm ${SMS_DIR}/bin/startdcm |
f3f86c75 | 42 | |
43 | lint: | |
44 | lint ${INCDIR} ${DCM_SRCS} | grep -v "possible pointer alignment" | |
45 | ||
f3f86c75 | 46 | |
47 | .saber: Makefile | |
48 | rm -rf $@ | |
49 | echo "setopt(\"load_options\", \"${CFLAGS} ${LDFLAGS}\");" >$@ | |
50 | echo "#define DCM_SRCS \"${DCM_SRCS} ${SMS_UPDATE}\"" >>$@ | |
51 | echo "#define FOO_SRCS \"${FOO_SRCS}\"" >>$@ | |
52 | echo "#define GLUE_LIBS \"${GLUE_LIBS}\"" >>$@ | |
53 | echo "#define SERVER_LIBS \"${SERVER_LIBS}\"" >>$@ | |
54 | echo "suppress(285); " >>$@ | |
55 | ||
89df527c | 56 | depend: |
57 | mkdep ${CFLAGS} ${DCM_SRCS} | |
58 | ||
59 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
60 | ||
61 | dcm.o: dcm.c /usr/include/stdio.h ../include/update.h /usr/include/sys/file.h | |
62 | dcm.o: /usr/include/sys/time.h /usr/include/sys/time.h | |
63 | dcm.o: /usr/include/sys/wait.h /usr/include/signal.h /usr/include/ctype.h | |
64 | dcm.o: ../include/sms.h /usr/include/sms_et.h ../include/sms_app.h | |
65 | dcm.o: ../include/mit-copyright.h ../include/dcm.h | |
66 | utils.o: utils.c ../include/mit-copyright.h /usr/include/stdio.h | |
67 | utils.o: /usr/include/strings.h /usr/include/varargs.h | |
68 | utils.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
69 | utils.o: /usr/include/sys/time.h /usr/include/sys/file.h | |
70 | utils.o: /usr/include/zephyr/zephyr.h /usr/include/zephyr/mit-copyright.h | |
71 | utils.o: /usr/include/zephyr/zephyr_err.h /usr/include/zephyr/zephyr_conf.h | |
72 | utils.o: /usr/include/errno.h /usr/include/netinet/in.h ../include/krb.h | |
73 | utils.o: ../include/des.h ../include/sms.h /usr/include/sms_et.h | |
74 | utils.o: ../include/sms_app.h ../include/dcm.h |