]> andersk Git - moira.git/blame - util/imake.includes/config.Imakefile
changes for GDSS import
[moira.git] / util / imake.includes / config.Imakefile
CommitLineData
d97b9d80 1/**/# $Source$
d97b9d80 2/**/#
3
4/*
5 * Configuration options.
6 */
7
8/* GLOBAL_CDEFS are passed to every C compile statement */
2e24270b 9
10#ifdef _AIX
eba062ad 11OSDEFS= -D_BSD -D_BSD_INCLUDES -DPOSIX
12OSLIBS= -lbsd
2e24270b 13#endif
14
eba062ad 15#if defined(linux) || defined(__NetBSD__)
efeb47ac 16OSDEFS= -DPOSIX
17#endif
18
eba062ad 19#ifdef sgi
82302b7a 20OSDEFS= -DPOSIX -DUSE_CRYPT_H -DSYSV
eba062ad 21#endif
22
2e24270b 23#if defined(SOLARIS)
82302b7a 24OSDEFS= -DPOSIX -DSOLARIS -DSYSV
eba062ad 25OSLIBS= -lresolv -lsocket -lnsl
2e24270b 26#endif
27
28#ifdef NeXT
29OSLIBS= -lresolv
edd5054f 30#endif
d97b9d80 31
eba062ad 32#ifdef __alpha
33OSDEFS= -DSIXTYFOUR -DPOSIX
34#endif
2e24270b 35
eba062ad 36GLOBAL_CDEFS= -DHESIOD -DZEPHYR -DATHENA -DDBMS=ORACLE -I/usr/athena/include $(OSDEFS)
2e24270b 37
38
39/* SRCTOP is the root of the Moira source tree */
40SRCTOP=/mit/moiradev/src
d97b9d80 41
42/* DESTDIR is the root of the tree to install into.
43 * If null, install into the running system.
44 *
45 * DESTDIR='/' is guaranteed to cause trouble for systems which don't
46 * like double slashes in pathnames.
47 *
48 * All the installed programs and files are put into ${DESTDIR}/wherever, e.g.
49 * kinit would get installed into ${DESTDIR}${PROGDIR}/kuser
50 */
51
52DESTDIR=
53
54/*
55 * These directories should be subdirectories of DESTDIR;
56 * they show up as absolute pathnames here.
57 */
58/*
59 * Note: USRDIR should be the parent of most of these directories.
60 * If it is not, you may get errors when installing (the installation
61 * process attempts to create USRDIR, in order to assure that all the
62 * parents of these directories exist.
63 */
64USRDIR= /usr
2e24270b 65ETCDIR= /usr/athena/etc
66PROGDIR=/usr/athena/bin
d97b9d80 67LIBDIR= /usr/athena/lib
d97b9d80 68LINTLIBDIR = /usr/lib/lint
2e24270b 69INCLDIR= /usr/athena/include
70MANDIR= /usr/athena/man
71
d97b9d80 72
73/*
2e24270b 74 * Define SVRBUILD if this machine has your DBMS installed on it so
75 * that the server programs can be built which link against the DBMS
76 * libraries.
77 */
78/* #define SVRBUILD */
79
80/* Define USELOCALTOOLS if you already have built and installed in
81 * your environment the following tools:
82 imake
83 makedepend
84 */
85#define USELOCALTOOLS
86
87/* Define USELOCALLIBS if you already have built and installed in
88 * your environment the following libraries and associated tools:
2e24270b 89 com_err
d97b9d80 90 */
2e24270b 91#define USELOCALLIBS
d97b9d80 92
93/*
2e24270b 94 * Define HESIOD if you have hesiod installed on your system and want
95 * to use it for the Moira clients to find the Moira server.
d97b9d80 96 */
2e24270b 97#define HESIOD
d97b9d80 98
99/*
2e24270b 100 * Define ZEPHYR if you have zephyr installed on your system and want
101 * to use it to report Moira server errors. Also define the library
102 * to link against.
d97b9d80 103 */
2e24270b 104#define ZEPHYR
9f662e18 105LZEPHYR=-lzephyr
d97b9d80 106
107/*
2e24270b 108 * Define GDSS if you use the Generic Data Signature Service to
109 * stamp user records to guarentee their authenticity. Also define
110 * location of library and includes.
d97b9d80 111 */
2e24270b 112#define GDSS
b84717e4 113#define DO_GDSS
82302b7a 114LIBGDSS= $(BUILDTOP)/util/gdss/lib/libgdss.a
115GDSSINC= -DGDSS -I$(BUILDTOP)/util/gdss/include
d97b9d80 116
117/*
99826b0e 118 * Define your DBMS here. Currently only ORACLE is supported.
d97b9d80 119 */
99826b0e 120#define ORACLE
d97b9d80 121
122/*
2e24270b 123 * Define NEED_STRCASECMP if you don't have strcasecmp() in your libc.
124 * (likely for older 4.3 systems and pre-4.3 systems)
d97b9d80 125 */
2e24270b 126/* #define NEED_STRCASECMP */
d97b9d80 127
2e24270b 128MR_LIB=$(BUILDTOP)/lib/libmoira.a
129MR_LIBDEP=$(MR_LIB)
2e24270b 130GDB_LIB=$(BUILDTOP)/gdb/libmrgdb.a
131GDB_LIBDEP=$(GDB_LIB)
2e24270b 132
133
d97b9d80 134/*
135 * The name of a command which compiles error tables.
136 */
2e24270b 137#ifdef USELOCALLIBS
138COMPILE_ET= compile_et
139#else
d97b9d80 140COMPILE_ET= $(BUILDTOP)/util/et/compile_et
2e24270b 141#endif
d97b9d80 142/*
143 * Loader argument to get the com_err library
144 */
2e24270b 145#ifdef USELOCALLIBS
146COM_ERR = -lcom_err
147#else
d97b9d80 148COM_ERR = $(BUILDTOP)/util/et/libcom_err.a
2e24270b 149#endif
d97b9d80 150/*
151 * Dependency name for COM_ERR, if any
152 */
2e24270b 153#ifndef USELOCALLIBS
d97b9d80 154COM_ERR_DEP = $(COM_ERR)
eba062ad 155COM_ERR_INC = -I$(BUILDTOP)/util/et/
2e24270b 156#endif
d97b9d80 157
2e24270b 158LLIB = -L/usr/athena/lib
159
160/* libraries most Moira programs use */
161#ifdef HESIOD
162CLIBS= $(MR_LIB) $(GDB_LIB) $(LLIB) $(LZEPHYR) $(COM_ERR) -lkrb -ldes -lhesiod
163#else
164CLIBS= $(MR_LIB) $(GDB_LIB) $(LLIB) $(LZEPHYR) $(COM_ERR) -lkrb -ldes
165#endif
166
167/* libraries SQL programs need */
2e24270b 168#ifdef ORACLE
99826b0e 169SQL_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
2e24270b 170#endif
d97b9d80 171
eba062ad 172/* optional readline support for mrtest */
173READLINE_INCLUDES= -I/mit/gnu/include/readline -DUSE_READLINE
174READLINE_LIBS= -L/mit/gnu/lib -lreadline -ltermcap
2e24270b 175
176/* Define NEED_STRCASECMP if your C library doesn't have the BSD-style
177 * case insensitive string compare strcasecmp().
178 */
179#ifdef _AIX
180#define NEED_STRCASECMP
181#endif
182
183/* HAS_VSPRINTF should be defined if this function is in your C library */
eba062ad 184#if !defined(ultrix) && (!defined(sun) || defined(SOLARIS))
2e24270b 185#define HAS_VSPRINTF
eba062ad 186#endif
187
188/* Curses library */
189#ifdef SOLARIS
190CURSES= -L/usr/css/lib -lcurses -ltermcap
191#elif linux
192CURSES= -lncurses -ltermcap
193OSINCLUDES= -I/usr/include/ncurses
194#elif _AIX
195CURSES= -lcurses
2e24270b 196#else
eba062ad 197CURSES= -lcurses -ltermcap
2e24270b 198#endif
d97b9d80 199
eba062ad 200/* X and motif (for mmoira client) */
201#ifdef SOLARIS
202XDIR= /usr/openwin
203#else
204XDIR= /usr/X11
205#endif
d97b9d80 206
eba062ad 207#if !(defined(linux) || defined(__NetBSD__))
208MOTIFINC= /mit/motif/include
209MOTIFLIB= /mit/motif/`machtype`lib
210#endif
d97b9d80 211
eba062ad 212/* where crypt is, if not libc */
213#ifdef __NetBSD__
214CRYPT= -lcrypt
215#endif
2e24270b 216
d97b9d80 217/*
218 * The name of a command which builds an object library.
219 */
220ARCHIVE= ar cru
eba062ad 221
d97b9d80 222/*
223 * The name of another program needed to post-process the archive.
224 */
efeb47ac 225#if defined(SOLARIS) || defined(sgi)
2e24270b 226RANLIB= /bin/true
227#else
d97b9d80 228RANLIB= ranlib
2e24270b 229#endif
d97b9d80 230
231
232/*
233 * Install commands: installs a file into the destination tree.
234 * These commands are called with two arguments: the source and the
235 * destination of the install.
236 */
237/* install a file */
238INSTALLFILE= install -c -m 444
239/* install a library */
240INSTALLLIB= install -c -m 444
241/* install a program */
242INSTALLPROG= install -c -m 555
243/* invoke raw install program */
244INSTALLRAW= install
d97b9d80 245
246LD=ld /* The name of the target's linker */
247
2e24270b 248#ifdef SOLARIS
249CC=gcc -traditional
250#else
251#ifdef _AIX
252#ifdef i386
253CC=cc -q -D_BSD -DBSD_INCLUDES
254#else /* i386 */
255CC=cc -D_BSD -D_BSD_INCLUDES /* Use BSD style header files & be quiet */
256#endif /* i386 */
257#else /* _AIX */
d97b9d80 258CC=cc /* The name of the C compiler for the target */
2e24270b 259#endif /* _AIX */
260#endif /* SOLARIS */
d97b9d80 261
d97b9d80 262CPP=$(CC) -E /* A command which invokes the C preprocessor */
263
da6b2d4a 264#ifndef _AIX /* RS6K optomizer is buggy, we don't know if it wall affect moira */
d1033200 265DBG=-g /* Debug or optimize? */
da6b2d4a 266#endif /* _AIX */
d97b9d80 267
efeb47ac 268SHELL=/bin/sh /* shell to use from make */
d97b9d80 269MAKE=make /* name of make program */
270RM=rm -f /* delete one or more files/directories/links */
271MV=mv /* rename/move a file */
272CP=cp /* copy a file */
273LN=ln -s /* create a link */
274LPR=lpr -p /* print a file or files */
275CHMOD=chmod /* change mode of a file */
2e24270b 276AWK=awk /* used to filter embeded SQL files */
This page took 0.215989 seconds and 5 git commands to generate.