]> andersk Git - moira.git/blob - db/Makefile
Initial revision
[moira.git] / db / Makefile
1 # $Header$
2
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
8 INGLIB=/usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib
9 SRCS=newmoira.c tables.c imembers.c class.c
10 OBJS=newmoira.o tables.o ../server/queries2.o
11 CFLAGS= -I../include -O
12 .SUFFIXES: .qc
13
14 .qc.c: 
15         rm -f $*.c
16         /usr/rtingres/bin/eqc -p $*
17
18 all: newmoira class imembers
19
20 imembers: imembers.o
21         cc -o imembers imembers.o ../lib/libmoira.a ${INGLIB}
22 imembers.c: imembers.qc
23
24 newmoira: ${OBJS}
25         cc -o newmoira ${OBJS} ${INGLIB}
26
27 newmoira.c: newmoira.qc
28
29 tables.c: newdb db2tbls.awk
30         awk -f db2tbls.awk < newdb > tables.c
31
32 tables_sql.c: newdb.sql db2tbls_sql.awk
33         awk -f db2tbls_sql.awk < newdb.sql > tables_sql.c
34
35 class: class.o
36         cc -o class class.o ../lib/libmoira.a ${INGLIB}
37
38 class.c: class.qc
39
40 clean:
41         rm -f *.o newmoira.c tables.c newmoira extractdb extract.c class class.c
42         rm -f imembers.c imembers
43
44 install: newmoira
45         install -c newmoira ../bin
46
47 depend: ${SRCS}
48         mkdep ${CFLAGS} ${SRCS}
49
50 # DO NOT DELETE THIS LINE -- mkdep uses it.
51
52 newmoira.o: newmoira.c ../include/mit-copyright.h /usr/include/stdio.h
53 newmoira.o: ../server/query.h
54 tables.o: tables.c
55 imembers.o: imembers.c /usr/include/stdio.h ../include/moira.h
56 imembers.o: ../include/mr_et.h
57 class.o: class.c ../include/mit-copyright.h ../include/moira.h
58 class.o: ../include/mr_et.h
This page took 0.175889 seconds and 5 git commands to generate.