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