X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/28eb32f520e4c1e67b9417a06a022b3b5ec47585..4e82e7cac76280026adbe913d5cedb7e54cfb41d:/db/Makefile diff --git a/db/Makefile b/db/Makefile index 84f35f35..2a3c1670 100644 --- a/db/Makefile +++ b/db/Makefile @@ -6,7 +6,10 @@ INGLIB=/usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib -OBJS=newsms.o tables.o ../server/queries.o ../server/queries2.o +# SRCS=newmoira.c tables.c imembers.c class.c tables_sql.c +# OBJS=newmoira.o tables.o tables_sql.o ../server/queries2.o +SRCS=newmoira.c tables_sql.c imembers.c class.c +OBJS=newmoira.o tables_sql.o ../server/queries2.o CFLAGS= -I../include -O .SUFFIXES: .qc @@ -14,31 +17,46 @@ CFLAGS= -I../include -O rm -f $*.c /usr/rtingres/bin/eqc -p $* -all: newsms class convert +all: newmoira class imembers -newsms: ${OBJS} - cc -o newsms ${OBJS} ${INGLIB} +imembers: imembers.o + cc -o imembers imembers.o ../lib/libmoira.a ${INGLIB} +imembers.c: imembers.qc -newsms.c: newsms.qc +newmoira: ${OBJS} + cc -o newmoira ${OBJS} ${INGLIB} + +newmoira.c: newmoira.qc tables.c: newdb db2tbls.awk awk -f db2tbls.awk < newdb > tables.c +tables_sql.c: newdb.sql db2tbls_sql.awk + awk -f db2tbls_sql.awk < newdb.sql > tables_sql.c + class: class.o - cc -o class class.o ../lib/libsms.a ${INGLIB} + cc -o class class.o ../lib/libmoira.a ${INGLIB} class.c: class.qc -convert: conv.o data.o match.o - cc -o convert conv.o data.o match.o ../lib/libsms.a ${INGLIB} - -conv.c: conv.qc -data.c: data.qc -match.c: match.qc - clean: - rm -f *.o newsms.c tables.c newsms extractdb extract.c class class.c - rm -f convert conv.c match.c data.c - -install: newsms - install newsms ../bin + rm -f *.o newmoira.c tables.c newmoira extractdb extract.c class class.c + rm -f imembers.c imembers + rm -f tables_sql.c + +install: newmoira + install -c newmoira ../bin + +depend: ${SRCS} + mkdep ${CFLAGS} ${SRCS} + +# DO NOT DELETE THIS LINE -- mkdep uses it. + +newmoira.o: newmoira.c ../include/mit-copyright.h /usr/include/stdio.h +newmoira.o: ../server/query.h +tables.o: tables.c +tables_sql.o: tables_sql.c +imembers.o: imembers.c /usr/include/stdio.h ../include/moira.h +imembers.o: ../include/mr_et.h +class.o: class.c ../include/mit-copyright.h ../include/moira.h +class.o: ../include/mr_et.h