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
*/
#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 */
/* Define USELOCALLIBS if you already have built and installed in
* your environment the following libraries and associated tools:
- ss
com_err
*/
#define USELOCALLIBS
* to link against.
*/
#define ZEPHYR
-LZEHPYR=-lzephyr
+LZEPHYR=-lzephyr
/*
* Define GDSS if you use the Generic Data Signature Service to
* 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.
* 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
#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
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
#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
/*
* The name of another program needed to post-process the archive.
*/
-#ifdef SOLARIS
+#if defined(SOLARIS) || defined(sgi)
RANLIB= /bin/true
#else
RANLIB= ranlib
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 */