]>
Commit | Line | Data |
---|---|---|
51e7c423 | 1 | # $Header$ |
2 | ||
264217a0 | 3 | # (c) Copyright 1988 by the Massachusetts Institute of Technology. |
4 | # For copying and distribution information, please see the file | |
5 | # <mit-copyright.h>. | |
6 | ||
7 | ||
51e7c423 | 8 | INGLIB=/usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib |
df262dd5 | 9 | # SRCS=newmoira.c tables.c imembers.c class.c tables_sql.c |
10 | # OBJS=newmoira.o tables.o tables_sql.o ../server/queries2.o | |
11 | SRCS=newmoira.c tables_sql.c imembers.c class.c | |
12 | OBJS=newmoira.o tables_sql.o ../server/queries2.o | |
264217a0 | 13 | CFLAGS= -I../include -O |
14 | .SUFFIXES: .qc | |
15 | ||
16 | .qc.c: | |
17 | rm -f $*.c | |
18 | /usr/rtingres/bin/eqc -p $* | |
19 | ||
eab653aa | 20 | all: newmoira class imembers |
f3a65d70 | 21 | |
22 | imembers: imembers.o | |
2ce085d2 | 23 | cc -o imembers imembers.o ../lib/libmoira.a ${INGLIB} |
f3a65d70 | 24 | imembers.c: imembers.qc |
51e7c423 | 25 | |
a8ffbb5d | 26 | newmoira: ${OBJS} |
27 | cc -o newmoira ${OBJS} ${INGLIB} | |
51e7c423 | 28 | |
a8ffbb5d | 29 | newmoira.c: newmoira.qc |
51e7c423 | 30 | |
31 | tables.c: newdb db2tbls.awk | |
32 | awk -f db2tbls.awk < newdb > tables.c | |
33 | ||
a40f8101 | 34 | tables_sql.c: newdb.sql db2tbls_sql.awk |
35 | awk -f db2tbls_sql.awk < newdb.sql > tables_sql.c | |
36 | ||
264217a0 | 37 | class: class.o |
2ce085d2 | 38 | cc -o class class.o ../lib/libmoira.a ${INGLIB} |
264217a0 | 39 | |
40 | class.c: class.qc | |
41 | ||
a8ffbb5d | 42 | clean: |
43 | rm -f *.o newmoira.c tables.c newmoira extractdb extract.c class class.c | |
44 | rm -f imembers.c imembers | |
4907f36f | 45 | rm -f tables_sql.c |
264217a0 | 46 | |
a8ffbb5d | 47 | install: newmoira |
a7ef7615 | 48 | install -c newmoira ../bin |
264217a0 | 49 | |
a8ffbb5d | 50 | depend: ${SRCS} |
51 | mkdep ${CFLAGS} ${SRCS} | |
52 | ||
53 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
51e7c423 | 54 | |
a8ffbb5d | 55 | newmoira.o: newmoira.c ../include/mit-copyright.h /usr/include/stdio.h |
56 | newmoira.o: ../server/query.h | |
57 | tables.o: tables.c | |
4907f36f | 58 | tables_sql.o: tables_sql.c |
2ce085d2 | 59 | imembers.o: imembers.c /usr/include/stdio.h ../include/moira.h |
60 | imembers.o: ../include/mr_et.h | |
61 | class.o: class.c ../include/mit-copyright.h ../include/moira.h | |
62 | class.o: ../include/mr_et.h |