]> andersk Git - moira.git/blob - util/imake.includes/config.Imakefile
DBMS=ORACLE
[moira.git] / util / imake.includes / config.Imakefile
1 /**/#   $Source$
2 /**/#
3
4 /* 
5  * Configuration options.
6  */
7
8 /* GLOBAL_CDEFS are passed to every C compile statement */
9 /* Here are some of the common definitions which you might add to GLOBAL_CDEFS:
10  *      HESIOD - use hesiod lookup Moira server name
11  *      ZEPHYR - report critical errors via Zephyr
12  *      SYSLOG42 - report critical errors via 4.2BSD-style syslog routines
13  *      ATHENA - Athena-local hacks other sites probably don't want
14  *      GDSS - use the generic data signature service to verify user info
15  *      DBMS=xxx - currently supported is INGRES, INFORMIX, ORACLE
16  *      ULTRIX022 - if you are running on pre-3.0 Ultrix.
17  *      SunOS=xx - if you are running SunOS.  Set xx to 10 times the release
18  *              number (e.g. SunOS 3.5 => -DSunOS=35, SunOS 4.0 => -DSunOS=40)
19  *      NO_GETUSERSHELL - if your system doesn't have getusershell() in libc
20  *              (type 'nm /lib/libc.a | grep getusershell', if something
21  *               shows up, you should NOT turn this flag on)
22  */
23
24 /* Curses library */
25 #ifdef SOLARIS
26 CURSES= -L/usr/css/lib -lcurses -ltermcap
27 #else
28 CURSES= -lcurses -ltermcap
29 #endif
30
31 #ifdef _AIX
32 OSDEFS=-D_BSD -D_BSD_INCLUDES -DPOSIX
33 OSLIBS=-lbsd
34 CURSES=-lcurses
35 #endif
36
37 #if defined(sgi)
38 OSDEFS= -DPOSIX
39 #endif
40
41 #if defined(SOLARIS)
42 OSDEFS= -DPOSIX -DSOLARIS -I/usr/openwin/include
43 OSLIBS= -L/usr/ccs/lib -lcurses -ltermcap -lresolv \
44         -lsocket -lnsl -lc -lelf -ldl
45 CURSES= 
46 /* the curses and termcap libs are where they are on purpose. -vrt 4/28/93
47  */
48 #endif
49
50 #ifdef NeXT
51 OSLIBS= -lresolv
52 #endif
53
54
55 GLOBAL_CDEFS= -DHESIOD -DZEPHYR -DGDSS -DATHENA -DDBMS=ORACLE -I/usr/athena/include $(OSDEFS)
56
57
58 /* SRCTOP is the root of the Moira source tree */
59 SRCTOP=/mit/moiradev/src
60
61 /* DESTDIR is the root of the tree to install into.  
62  * If null, install into the running system.
63  *
64  * DESTDIR='/' is guaranteed to cause trouble for systems which don't
65  * like double slashes in pathnames.
66  *
67  * All the installed programs and files are put into ${DESTDIR}/wherever, e.g.
68  * kinit would get installed into ${DESTDIR}${PROGDIR}/kuser
69  */
70
71 DESTDIR= 
72
73 /*
74  * These directories should be subdirectories of DESTDIR;
75  * they show up as absolute pathnames here.
76  */
77 /*
78  * Note: USRDIR should be the parent of most of these directories.
79  * If it is not, you may get errors when installing (the installation
80  * process attempts to create USRDIR, in order to assure that all the
81  * parents of these directories exist.
82  */
83 USRDIR= /usr
84 ETCDIR= /usr/athena/etc
85 PROGDIR=/usr/athena/bin
86 LIBDIR= /usr/athena/lib
87 LINTLIBDIR = /usr/lib/lint
88 INCLDIR= /usr/athena/include
89 MANDIR= /usr/athena/man
90
91
92 /*
93  * Define SVRBUILD if this machine has your DBMS installed on it so
94  * that the server programs can be built which link against the DBMS
95  * libraries.
96  */
97 /* #define SVRBUILD */
98
99 /* Define USELOCALTOOLS if you already have built and installed in
100  * your environment the following tools:
101         imake
102         makedepend
103  */
104 #define USELOCALTOOLS
105
106 /* Define USELOCALLIBS if you already have built and installed in
107  * your environment the following libraries and associated tools:
108         com_err
109  */
110 #define USELOCALLIBS
111
112 /*
113  * Define HESIOD if you have hesiod installed on your system and want
114  * to use it for the Moira clients to find the Moira server.
115  */
116 #define HESIOD
117
118 /*
119  * Define ZEPHYR if you have zephyr installed on your system and want
120  * to use it to report Moira server errors.  Also define the library
121  * to link against.
122  */
123 #define ZEPHYR
124 LZEPHYR=-lzephyr
125
126 /*
127  * Define GDSS if you use the Generic Data Signature Service to 
128  * stamp user records to guarentee their authenticity.  Also define
129  * location of library and includes.
130  */
131 #define GDSS
132 #ifdef sgi
133 LIBGDSS= /mit/gdss/lib/libgdss.a
134 #else
135 #ifdef SOLARIS
136 LIBGDSS= /mit/gdss/`machtype`/libgdss.a -lbsd
137 #else
138 LIBGDSS= /mit/gdss/`machtype`/libgdss.a
139 #endif
140 #endif
141 GDSSINC= -I/mit/gdss/include
142
143 /*
144  * Define your DBMS here.  Currently only ORACLE is supported.
145  */
146 #define ORACLE
147
148 /*
149  * Define NEED_STRCASECMP if you don't have strcasecmp() in your libc.
150  * (likely for older 4.3 systems and pre-4.3 systems)
151  */
152 /* #define NEED_STRCASECMP */
153
154 /*
155  * Define USELINT if you want to build lint libraries while building
156  * Moira.
157  */
158 #if !defined(NeXT) && !defined(_AIX) && !defined(SOLARIS) && !defined(sgi)
159 #define USELINT
160 #endif
161
162 /*
163  * LINTLIBFLAG should be the flag used to tell lint to create a lint
164  * library.  On most BSD systems, this is -C
165  */
166 #if defined(ultrix) || defined(_AIX)
167 LINTLIBFLAG=-o
168 #else
169 LINTLIBFLAG=-C
170 #endif
171
172 MR_LIB=$(BUILDTOP)/lib/libmoira.a
173 MR_LIBDEP=$(MR_LIB)
174 MR_LINTLIB=$(BUILDTOP)/lib/llib-lmoira.ln
175 GDB_LIB=$(BUILDTOP)/gdb/libmrgdb.a
176 GDB_LIBDEP=$(GDB_LIB)
177 GDB_LINTLIB=$(BUILDTOP)/gdb/llib-lmrgdb.ln
178
179
180 /*
181  * The name of a command which compiles error tables.
182  */
183 #ifdef USELOCALLIBS
184 COMPILE_ET= compile_et
185 #else
186 COMPILE_ET= $(BUILDTOP)/util/et/compile_et
187 #endif
188 /*
189  * Loader argument to get the com_err library
190  */
191 #ifdef USELOCALLIBS
192 COM_ERR = -lcom_err
193 #else
194 COM_ERR = $(BUILDTOP)/util/et/libcom_err.a
195 #endif
196 /*
197  * Dependency name for COM_ERR, if any
198  */
199 #ifndef USELOCALLIBS
200 COM_ERR_DEP = $(COM_ERR)
201 #endif
202
203 LLIB = -L/usr/athena/lib
204
205 /* libraries most Moira programs use */
206 #ifdef HESIOD
207 CLIBS= $(MR_LIB) $(GDB_LIB) $(LLIB) $(LZEPHYR) $(COM_ERR) -lkrb -ldes -lhesiod
208 #else
209 CLIBS= $(MR_LIB) $(GDB_LIB) $(LLIB) $(LZEPHYR) $(COM_ERR) -lkrb -ldes
210 #endif
211
212 /* libraries SQL programs need */
213 #ifdef INGRES
214 SQL_LIB= /usr/ingres/lib/libingres.a -lm
215 #endif
216 #ifdef INFORMIX
217 SQL_LIB= /usr/informix/lib/libsql.a
218 #endif
219 #ifdef ORACLE
220 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
221 #endif
222
223
224 /* Define NEED_STRCASECMP if your C library doesn't have the BSD-style
225  * case insensitive string compare strcasecmp().
226  */
227 #ifdef _AIX
228 #define NEED_STRCASECMP
229 #endif
230
231 /* HAS_VSPRINTF should be defined if this function is in your C library */
232 #if defined(_AIX) || defined(sun) || defined(_AUX_SOURCE) || defined(sgi)
233 #define HAS_VSPRINTF
234 #else
235 #undef HAS_VSPRINTF
236 #endif
237
238 /*
239  * Define DEBUG_LIBS if you want to create versions of the libraries
240  * that have useful debugging information (the default rules will strip
241  * out extra symbols, including debugging symbols, from the symbol
242  * table.)  NOTE:  This only works if you do NOT turn on PROFILED_LIBS
243  * below.
244  * NOTE:  this doesn't turn on the debugging flag for your compiler; do
245  * that with the DBG make variable, below.
246  */
247 /* #define DEBUG_LIBS */
248
249 /*
250  * Define PROFILED_LIBS if you want to create profiled versions of the
251  * libraries used in Kerberos
252  */
253 #define PROFILED_LIBS
254
255 /*
256  * Define PROF_FLAG to be the flag to be passed to your C compiler to
257  * turn on profiling.
258  */
259 #ifdef vax
260 #define PROF_FLAG -pg
261 #else
262 #define PROF_FLAG -p
263 #endif 
264
265 /*
266  * The name of a command which builds an object library.
267  */
268 ARCHIVE= ar cru
269 /*
270  * The name of another program needed to post-process the archive.
271  */
272 #if defined(SOLARIS) || defined(sgi)
273 RANLIB= /bin/true
274 #else
275 RANLIB= ranlib
276 #endif
277
278
279 /* 
280  * Install commands:  installs a file into the destination tree.
281  * These commands are called with two arguments: the source and the
282  * destination of the install.
283  */
284 /* install a file */
285 INSTALLFILE= install -c -m 444
286 /* install a library */ 
287 INSTALLLIB= install -c -m 444
288 /* install a program */
289 INSTALLPROG= install -c -m 555 
290 /* invoke raw install program */
291 INSTALLRAW= install
292
293 LD=ld                   /* The name of the target's linker */
294
295 AS=as                   /* The name of the target's assembler */
296
297 LINT=lint               /* The name of `lint' */
298
299 #ifdef SOLARIS
300 CC=gcc -traditional
301 #else
302 #ifdef _AIX
303 #ifdef i386
304 CC=cc -q -D_BSD -DBSD_INCLUDES
305 #else /* i386 */
306 CC=cc -D_BSD -D_BSD_INCLUDES    /* Use BSD style header files & be quiet */
307 #endif /* i386 */
308 #else /* _AIX */
309 CC=cc                   /* The name of the C compiler for the target */
310 #endif /* _AIX */
311 #endif /* SOLARIS */
312
313 CCRO=$(CC) -R           /* Compile with initialized data read-only 
314                            & shared (if possible) */
315
316 HCC=$(CC)               /* The name of the C compiler on _this_
317                          * machine
318                          */
319
320 CPP=$(CC) -E            /* A command which invokes the C preprocessor */
321
322 #ifndef _AIX            /* RS6K optomizer is buggy, we don't know if it wall affect moira */
323 DBG=-O                  /* Debug or optimize? */
324 #endif /* _AIX */
325
326 HCFLAGS=$(CFLAGS)
327
328 TAGGER=etags            /* Program to index source files */
329
330 SHELL=/bin/sh           /* shell to use from make */
331 MAKE=make               /* name of make program */
332 RM=rm -f                /* delete one or more files/directories/links */
333 MV=mv                   /* rename/move a file */
334 CP=cp                   /* copy a file */
335 LN=ln -s                /* create a link */
336 LPR=lpr -p              /* print a file or files */
337 CHMOD=chmod             /* change mode of a file */
338 AWK=awk                 /* used to filter embeded SQL files */
This page took 0.055838 seconds and 5 git commands to generate.