]> andersk Git - moira.git/commitdiff
Initial revision
authormar <mar>
Wed, 30 Dec 1992 16:31:18 +0000 (16:31 +0000)
committermar <mar>
Wed, 30 Dec 1992 16:31:18 +0000 (16:31 +0000)
db/Imakefile [new file with mode: 0644]
dcm/Imakefile [new file with mode: 0644]
reg_svr/Imakefile [new file with mode: 0644]
server/Imakefile [new file with mode: 0644]
server/qrtn.h [new file with mode: 0644]

diff --git a/db/Imakefile b/db/Imakefile
new file mode 100644 (file)
index 0000000..fb873dd
--- /dev/null
@@ -0,0 +1,24 @@
+# $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
diff --git a/dcm/Imakefile b/dcm/Imakefile
new file mode 100644 (file)
index 0000000..aa27fe2
--- /dev/null
@@ -0,0 +1,16 @@
+# $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})
diff --git a/reg_svr/Imakefile b/reg_svr/Imakefile
new file mode 100644 (file)
index 0000000..83acd84
--- /dev/null
@@ -0,0 +1,16 @@
+# $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})
diff --git a/server/Imakefile b/server/Imakefile
new file mode 100644 (file)
index 0000000..40e2960
--- /dev/null
@@ -0,0 +1,51 @@
+# $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)
diff --git a/server/qrtn.h b/server/qrtn.h
new file mode 100644 (file)
index 0000000..8b2b4bc
--- /dev/null
@@ -0,0 +1,18 @@
+/* $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 */
This page took 0.038445 seconds and 5 git commands to generate.