5 * Configuration options.
8 /* GLOBAL_CDEFS are passed to every C compile statement */
11 OSDEFS= -D_BSD -D_BSD_INCLUDES -DPOSIX
15 #if defined(linux) || defined(__NetBSD__)
20 OSDEFS= -DPOSIX -DSYSV
24 OSDEFS= -DPOSIX -DSOLARIS -DSYSV
25 OSLIBS= -lresolv -lsocket -lnsl
33 OSDEFS= -DSIXTYFOUR -DPOSIX
36 GLOBAL_CDEFS= -DHESIOD -DZEPHYR -DATHENA -DDBMS=ORACLE -I/usr/athena/include $(OSDEFS)
39 /* SRCTOP is the root of the Moira source tree */
40 SRCTOP=/mit/moiradev/src
42 /* DESTDIR is the root of the tree to install into.
43 * If null, install into the running system.
45 * DESTDIR='/' is guaranteed to cause trouble for systems which don't
46 * like double slashes in pathnames.
48 * All the installed programs and files are put into ${DESTDIR}/wherever, e.g.
49 * kinit would get installed into ${DESTDIR}${PROGDIR}/kuser
55 * These directories should be subdirectories of DESTDIR;
56 * they show up as absolute pathnames here.
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.
65 ETCDIR= /usr/athena/etc
66 PROGDIR=/usr/athena/bin
67 LIBDIR= /usr/athena/lib
68 LINTLIBDIR = /usr/lib/lint
69 INCLDIR= /usr/athena/include
70 MANDIR= /usr/athena/man
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
78 /* #define SVRBUILD */
80 /* Define USELOCALTOOLS if you already have built and installed in
81 * your environment the following tools:
87 /* Define USELOCALLIBS if you already have built and installed in
88 * your environment the following libraries and associated tools:
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.
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
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.
114 LIBGDSS= $(BUILDTOP)/util/gdss/lib/libgdss.a
115 GDSSINC= -DGDSS -I$(BUILDTOP)/util/gdss/include
118 * Define your DBMS here. Currently only ORACLE is supported.
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)
126 /* #define NEED_STRCASECMP */
128 MR_LIB=$(BUILDTOP)/lib/libmoira.a
130 GDB_LIB=$(BUILDTOP)/gdb/libmrgdb.a
131 GDB_LIBDEP=$(GDB_LIB)
135 * The name of a command which compiles error tables.
138 COMPILE_ET= compile_et
140 COMPILE_ET= $(BUILDTOP)/util/et/compile_et
143 * Loader argument to get the com_err library
148 COM_ERR = $(BUILDTOP)/util/et/libcom_err.a
151 * Dependency name for COM_ERR, if any
154 COM_ERR_DEP = $(COM_ERR)
155 COM_ERR_INC = -I$(BUILDTOP)/util/et/
158 LLIB = -L/usr/athena/lib
160 /* libraries most Moira programs use */
162 CLIBS= $(MR_LIB) $(GDB_LIB) $(LLIB) $(LZEPHYR) $(COM_ERR) -lkrb -ldes -lhesiod
164 CLIBS= $(MR_LIB) $(GDB_LIB) $(LLIB) $(LZEPHYR) $(COM_ERR) -lkrb -ldes
167 /* libraries SQL programs need */
169 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
172 /* optional readline support for mrtest */
173 READLINE_INCLUDES= -I/mit/gnu/include/readline -DUSE_READLINE
174 READLINE_LIBS= -L/mit/gnu/lib -lreadline -ltermcap
176 /* Define NEED_STRCASECMP if your C library doesn't have the BSD-style
177 * case insensitive string compare strcasecmp().
180 #define NEED_STRCASECMP
183 /* HAS_VSPRINTF should be defined if this function is in your C library */
184 #if !defined(ultrix) && (!defined(sun) || defined(SOLARIS))
190 CURSES= -L/usr/css/lib -lcurses -ltermcap
192 CURSES= -lncurses -ltermcap
193 OSINCLUDES= -I/usr/include/ncurses
197 CURSES= -lcurses -ltermcap
200 /* X and motif (for mmoira client) */
207 #if !(defined(linux) || defined(__NetBSD__))
208 MOTIFINC= /mit/motif/include
209 MOTIFLIB= /mit/motif/`machtype`lib
212 /* where crypt is, if not libc and unistd.h */
216 #if defined(sgi) || defined(SOLARIS)
222 * The name of a command which builds an object library.
227 * The name of another program needed to post-process the archive.
229 #if defined(SOLARIS) || defined(sgi)
237 * Install commands: installs a file into the destination tree.
238 * These commands are called with two arguments: the source and the
239 * destination of the install.
242 INSTALLFILE= install -c -m 444
243 /* install a library */
244 INSTALLLIB= install -c -m 444
245 /* install a program */
246 INSTALLPROG= install -c -m 555
247 /* invoke raw install program */
250 LD=ld /* The name of the target's linker */
257 CC=cc -q -D_BSD -DBSD_INCLUDES
259 CC=cc -D_BSD -D_BSD_INCLUDES /* Use BSD style header files & be quiet */
262 CC=cc /* The name of the C compiler for the target */
266 CPP=$(CC) -E /* A command which invokes the C preprocessor */
268 #ifndef _AIX /* RS6K optomizer is buggy, we don't know if it wall affect moira */
269 DBG=-g /* Debug or optimize? */
272 SHELL=/bin/sh /* shell to use from make */
273 MAKE=make /* name of make program */
274 RM=rm -f /* delete one or more files/directories/links */
275 MV=mv /* rename/move a file */
276 CP=cp /* copy a file */
277 LN=ln -s /* create a link */
278 LPR=lpr -p /* print a file or files */
279 CHMOD=chmod /* change mode of a file */
280 AWK=awk /* used to filter embeded SQL files */