--- /dev/null
+# $Header$
+#
+# 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
--- /dev/null
+# $Header$
+
+# Copyright 1992 by the Massachusetts Institute of Technology.
+#
+# For copying and distribution information,
+# please see the file <mit-copyright.h>.
+#
+# Imakefile for moira dcm.
+
+SRCS= startdcm.c dcm.c utils.c
+CODE=$(SRCS)
+OBJS=dcm.o utils.o
+GDSSLIB=../gdss/rgdss.o /mit/gdss/`machtype`/libgdss.a
+
+program(dcm, $(OBJS),,../server/libmrglue.a ../update/moira_update.o $(GDSSLIB) $(CLIBS) $(SQL_LIB), ${PROGDIR})
+program(startdcm, startdcm.o,,,${PROGDIR})
--- /dev/null
+# $Header$
+
+# Copyright 1992 by the Massachusetts Institute of Technology.
+#
+# For copying and distribution information,
+# please see the file <mit-copyright.h>.
+#
+# Imakefile for moira reg_svr.
+
+SRCS= startreg.c reg_svr.c requests.c
+CODE=$(SRCS)
+OBJS=requests.o reg_svr.o
+GDSSLIB=../gdss/rgdss.o /mit/gdss/`machtype`/libgdss.a
+
+program(reg_svr, $(OBJS),,../server/libmrglue.a -lkadm $(GDSSLIB) $(CLIBS) $(SQL_LIB), ${PROGDIR})
+program(startreg, startreg.o,,,${PROGDIR})
--- /dev/null
+# $Header$
+#
+# Copyright 1990 by the Massachusetts Institute of Technology.
+#
+# For copying and distribution information,
+# please see the file <mit-copyright.h>.
+#
+# Imakefile for server directory.
+#
+
+#ifdef INGRES
+XSRC= mr_sbrk.c meinitlst.c
+XOBJ= mr_sbrk.o meinitlst.o
+#else
+XSRC=
+XOBJ=
+#endif
+
+DEFINES=-DGDSS
+
+SRCS = startmoira.c mr_main.c mr_sauth.c mr_scall.c \
+ mr_srvdata.c mr_shutdown.c mr_util.c qrtn.c \
+ qsupport.c qsubs.c queries2.c mr_smalloc.c \
+ increment.c cache.c mr_glue.c $(XSRC)
+CODE= startmoira.c mr_main.c mr_sauth.c mr_scall.c \
+ mr_srvdata.c mr_shutdown.c mr_util.c qrtn.dc \
+ qsupport.dc qsubs.c queries2.c mr_smalloc.c \
+ increment.dc cache.dc mr_glue.dc \
+ Imakefile mr_server.h query.h $(XSRC)
+SRVOBJ=mr_main.o mr_sauth.o mr_scall.o mr_srvdata.o mr_shutdown.o \
+ mr_util.o qrtn.o queries2.o qsupport.o qsubs.o \
+ mr_smalloc.o increment.o cache.o $(XOBJ)
+GLUOBJS=mr_glue.o qrtn.o queries2.o qsupport.o qsubs.o \
+ ../lib/mr_et.o mr_srvdata.o mr_smalloc.o \
+ ../lib/krb_et.o mr_util.o increment.o cache.o $(XOBJ)
+sqlrule()
+
+program(moirad, ${SRVOBJ},${MR_LIBDEP} ${GDB_LIBDEP},\
+ -L/usr/athena/lib .././lib/libmoira.a -lzephyr \
+ .././gdb/libmrgdb.a -lcom_err \
+ ../gdss/rgdss.o /mit/gdss/`machtype`/libgdss.a -lkrb -ldes -lhesiod \
+ ${SQL_LIB}, ${PROGDIR})
+program(startmoira, startmoira.o,,, ${PROGDIR})
+library_obj_rule()
+install_library_target(mrglue,$(GLUOBJS),$(SRCS),)
+
+sqlfile(cache)
+sqlfile(increment)
+sqlfile(qrtn)
+sqlfile(qsupport)
+sqlfile(mr_glue)
--- /dev/null
+/* $Header$
+ *
+ * Used by the SQL query routines of the Moira server.
+ */
+
+#define MR_CDUMMY_LEN 256
+#define MR_STMTBUF_LEN 1024
+
+/* Requires having already done EXEC SQL INCLUDE sqlda */
+typedef IISQLDA_TYPE(MR_SQLDA,MR_SQLDA_T,QMAXARGS);
+
+extern MR_SQLDA_T *SQLDA;
+extern int mr_sig_length;
+extern char stmt_buf[];
+
+extern void ingerr();
+
+/* eof:qtrn.h */