]> andersk Git - moira.git/blame - dcm/Makefile
don't depend on dcm.h since it's no longer in this directory
[moira.git] / dcm / Makefile
CommitLineData
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
9SMS_DIR = ..
10INGRES_DIR = /usr/rtingres
11UPDATE_DIR = ${SMS_DIR}/update
12
13INCDIR = -I${SMS_DIR}/include
14CFLAGS = ${INCDIR} -g
15LDFLAGS = -L${SMS_DIR}/lib -L${SMS_DIR}/server
16
17QLIBS= ${INGRES_DIR}/lib/libqlib ${INGRES_DIR}/lib/compatlib
18
19# Libraries that talk to the SMS server:
20SERVER_LIBS = -lcom_err -lsmsglue -lsms -lgdb -lzephyr -lkrb -ldes $(QLIBS)
21
22DCM_SRCS = dcm.c utils.c
23DCM_OBJS = dcm.o utils.o ../update/sms_update.o
24
25
26all: dcm startdcm
27
28dcm: ${DCM_OBJS}
29 rm -f $@
30 ${CC} ${LDFLAGS} -o $@ ${DCM_OBJS} ${SERVER_LIBS}
31
32startdcm: startdcm.o
33 ${CC} ${LDFLAGS} -o startdcm startdcm.o
34
35clean:
36 rm -f *.o core *~
f195841f 37 rm -f dcm startdcm .saber
f3f86c75 38
f195841f 39install: dcm startdcm
f3f86c75 40 install dcm ${SMS_DIR}/bin/dcm
751db5cf 41 install startdcm ${SMS_DIR}/bin/startdcm
f3f86c75 42
43lint:
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
This page took 0.056347 seconds and 5 git commands to generate.