# $Header: /afs/athena.mit.edu/astaff/project/moiradev/src/db/RCS/Imakefile,v 1.2 93/10/21 15:05:54 mar Exp $
#
# Copyright 1990 by the Massachusetts Institute of Technology.
#
# For copying and distribution information,
# please see the file <mit-copyright.h>.
#
# Imakefile for db directory.
#

SRCS=	newmoira.c
SRCDIR=${SRCTOP}/db
CODE= newmoira.dc Imakefile db2tbls.awk schema optimizations
OBJS=	newmoira.o tables.o
INCLUDE= -I$(BUILDTOP)/include
sqlrule()

program(newmoira, ${OBJS},${MR_LIBDEP} ${GDB_LIBDEP}, ../server/queries2.o ${CLIBS} ${SQL_LIB}, ${PROGDIR})
sqlfile(newmoira)

tables.c: schema db2tbls.awk
	awk -f db2tbls.awk < schema > tables.c
clean::
	$(RM) tables.c

depend:: ${CODE}
