X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/9f662e18249e2bf7631f04626b09b8deebe5bd91..refs/tags/MOIRA4_INITIAL:/util/imake.includes/config.Imakefile diff --git a/util/imake.includes/config.Imakefile b/util/imake.includes/config.Imakefile index 65831c65..bf4e7b90 100644 --- a/util/imake.includes/config.Imakefile +++ b/util/imake.includes/config.Imakefile @@ -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 */ @@ -48,7 +52,7 @@ OSLIBS= -lresolv #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 @@ -126,14 +129,21 @@ LZEPHYR=-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) && !defined(SOLARIS) +#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 @@ -339,6 +327,7 @@ 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 */