]> andersk Git - moira.git/blobdiff - util/imake.includes/config.Imakefile
DBMS=ORACLE
[moira.git] / util / imake.includes / config.Imakefile
index cfe027a48966182d13f4731354063d87897ab2f4..bf4e7b9083e2e7f9816d0b5959f0658d5df29ae4 100644 (file)
@@ -34,10 +34,14 @@ OSLIBS=-lbsd
 CURSES=-lcurses
 #endif
 
+#if defined(sgi)
+OSDEFS= -DPOSIX
+#endif
+
 #if defined(SOLARIS)
 OSDEFS= -DPOSIX -DSOLARIS -I/usr/openwin/include
 OSLIBS= -L/usr/ccs/lib -lcurses -ltermcap -lresolv \
-       -lsocket -lnsl -lc /usr/ucblib/libucb.a -lelf -ldl
+       -lsocket -lnsl -lc -lelf -ldl
 CURSES= 
 /* the curses and termcap libs are where they are on purpose. -vrt 4/28/93
  */
@@ -45,10 +49,10 @@ CURSES=
 
 #ifdef NeXT
 OSLIBS= -lresolv
-#else
+#endif
 
 
-GLOBAL_CDEFS= -DHESIOD -DZEPHYR -DGDSS -DATHENA -DDBMS=INGRES -I/usr/athena/include $(OSDEFS)
+GLOBAL_CDEFS= -DHESIOD -DZEPHYR -DGDSS -DATHENA -DDBMS=ORACLE -I/usr/athena/include $(OSDEFS)
 
 
 /* SRCTOP is the root of the Moira source tree */
@@ -101,7 +105,6 @@ MANDIR= /usr/athena/man
 
 /* Define USELOCALLIBS if you already have built and installed in
  * your environment the following libraries and associated tools:
-       ss
        com_err
  */
 #define USELOCALLIBS
@@ -118,7 +121,7 @@ MANDIR= /usr/athena/man
  * to link against.
  */
 #define ZEPHYR
-LZEHPYR=-lzephyr
+LZEPHYR=-lzephyr
 
 /*
  * Define GDSS if you use the Generic Data Signature Service to 
@@ -126,14 +129,21 @@ LZEHPYR=-lzephyr
  * location of library and includes.
  */
 #define GDSS
+#ifdef sgi
+LIBGDSS= /mit/gdss/lib/libgdss.a
+#else
+#ifdef SOLARIS
+LIBGDSS= /mit/gdss/`machtype`/libgdss.a -lbsd
+#else
 LIBGDSS= /mit/gdss/`machtype`/libgdss.a
+#endif
+#endif
 GDSSINC= -I/mit/gdss/include
 
 /*
- * Define your DBMS here.  Currently, the code will work with either
- * INGRES or INFORMIX.
+ * Define your DBMS here.  Currently only ORACLE is supported.
  */
-#define INGRES
+#define ORACLE
 
 /*
  * Define NEED_STRCASECMP if you don't have strcasecmp() in your libc.
@@ -145,7 +155,7 @@ GDSSINC= -I/mit/gdss/include
  * Define USELINT if you want to build lint libraries while building
  * Moira.
  */
-#if !defined(NeXT) && !defined(_AIX)
+#if !defined(NeXT) && !defined(_AIX) && !defined(SOLARIS) && !defined(sgi)
 #define USELINT
 #endif
 
@@ -189,28 +199,6 @@ COM_ERR = $(BUILDTOP)/util/et/libcom_err.a
 #ifndef USELOCALLIBS
 COM_ERR_DEP = $(COM_ERR)
 #endif
-/*
- * The name of a command which compiles command tables.
- */
-#ifdef USELOCALLIBS
-MAKE_COMMANDS= mk_cmds
-#else
-MAKE_COMMANDS= $(BUILDTOP)/util/ss/mk_cmds
-#endif
-/*
- * Loader argument to get the ss library
- */
-#ifdef USELOCALLIBS
-SS_LIB = -lss
-#else
-SS_LIB = $(BUILDTOP)/util/ss/libss.a
-#endif
-/*
- * Dependency name for SS_LIB, if any
- */
-#ifndef USELOCALLIBS
-SS_LIBDEP = $(SS_LIB)
-#endif
 
 LLIB = -L/usr/athena/lib
 
@@ -229,7 +217,7 @@ SQL_LIB= /usr/ingres/lib/libingres.a -lm
 SQL_LIB= /usr/informix/lib/libsql.a
 #endif
 #ifdef ORACLE
-SQL_LIB= /usr/oracle/lib/#########
+SQL_LIB= -L/usr/oracle/lib -lsql /usr/oracle/lib/osntab.o -lsqlnet -lora -lsqlnet -lora -lnlsrtl -lcv6 -lcore -lnlsrtl -lcv6 -lcore -lsocket -lnsl -lm -lm -ldl -laio
 #endif
 
 
@@ -241,7 +229,7 @@ SQL_LIB= /usr/oracle/lib/#########
 #endif
 
 /* HAS_VSPRINTF should be defined if this function is in your C library */
-#if defined(_AIX) || defined(sun) || defined(_AUX_SOURCE)
+#if defined(_AIX) || defined(sun) || defined(_AUX_SOURCE) || defined(sgi)
 #define HAS_VSPRINTF
 #else
 #undef HAS_VSPRINTF
@@ -281,7 +269,7 @@ ARCHIVE= ar cru
 /*
  * The name of another program needed to post-process the archive.
  */
-#ifdef SOLARIS
+#if defined(SOLARIS) || defined(sgi)
 RANLIB= /bin/true
 #else
 RANLIB= ranlib
@@ -331,12 +319,15 @@ HCC=$(CC)         /* The name of the C compiler on _this_
 
 CPP=$(CC) -E           /* A command which invokes the C preprocessor */
 
+#ifndef _AIX           /* RS6K optomizer is buggy, we don't know if it wall affect moira */
 DBG=-O                 /* Debug or optimize? */
+#endif /* _AIX */
 
 HCFLAGS=$(CFLAGS)
 
 TAGGER=etags           /* Program to index source files */
 
+SHELL=/bin/sh          /* shell to use from make */
 MAKE=make              /* name of make program */
 RM=rm -f               /* delete one or more files/directories/links */
 MV=mv                  /* rename/move a file */
This page took 0.030183 seconds and 4 git commands to generate.