]> andersk Git - moira.git/blob - util/imake.includes/config.Imakefile
added the new imembers index
[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 /usr/ucblib/libucb.a -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=INGRES -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         ss
109         com_err
110  */
111 #define USELOCALLIBS
112
113 /*
114  * Define HESIOD if you have hesiod installed on your system and want
115  * to use it for the Moira clients to find the Moira server.
116  */
117 #define HESIOD
118
119 /*
120  * Define ZEPHYR if you have zephyr installed on your system and want
121  * to use it to report Moira server errors.  Also define the library
122  * to link against.
123  */
124 #define ZEPHYR
125 LZEPHYR=-lzephyr
126
127 /*
128  * Define GDSS if you use the Generic Data Signature Service to 
129  * stamp user records to guarentee their authenticity.  Also define
130  * location of library and includes.
131  */
132 #define GDSS
133 #if !defined(sgi)
134 LIBGDSS= /mit/gdss/`machtype`/libgdss.a
135 #else
136 LIBGDSS= /mit/gdss/lib/libgdss.a
137 #endif
138 GDSSINC= -I/mit/gdss/include
139
140 /*
141  * Define your DBMS here.  Currently, the code will work with either
142  * INGRES or INFORMIX.
143  */
144 #define INGRES
145
146 /*
147  * Define NEED_STRCASECMP if you don't have strcasecmp() in your libc.
148  * (likely for older 4.3 systems and pre-4.3 systems)
149  */
150 /* #define NEED_STRCASECMP */
151
152 /*
153  * Define USELINT if you want to build lint libraries while building
154  * Moira.
155  */
156 #if !defined(NeXT) && !defined(_AIX) && !defined(SOLARIS) && !defined(sgi)
157 #define USELINT
158 #endif
159
160 /*
161  * LINTLIBFLAG should be the flag used to tell lint to create a lint
162  * library.  On most BSD systems, this is -C
163  */
164 #if defined(ultrix) || defined(_AIX)
165 LINTLIBFLAG=-o
166 #else
167 LINTLIBFLAG=-C
168 #endif
169
170 MR_LIB=$(BUILDTOP)/lib/libmoira.a
171 MR_LIBDEP=$(MR_LIB)
172 MR_LINTLIB=$(BUILDTOP)/lib/llib-lmoira.ln
173 GDB_LIB=$(BUILDTOP)/gdb/libmrgdb.a
174 GDB_LIBDEP=$(GDB_LIB)
175 GDB_LINTLIB=$(BUILDTOP)/gdb/llib-lmrgdb.ln
176
177
178 /*
179  * The name of a command which compiles error tables.
180  */
181 #ifdef USELOCALLIBS
182 COMPILE_ET= compile_et
183 #else
184 COMPILE_ET= $(BUILDTOP)/util/et/compile_et
185 #endif
186 /*
187  * Loader argument to get the com_err library
188  */
189 #ifdef USELOCALLIBS
190 COM_ERR = -lcom_err
191 #else
192 COM_ERR = $(BUILDTOP)/util/et/libcom_err.a
193 #endif
194 /*
195  * Dependency name for COM_ERR, if any
196  */
197 #ifndef USELOCALLIBS
198 COM_ERR_DEP = $(COM_ERR)
199 #endif
200 /*
201  * The name of a command which compiles command tables.
202  */
203 #ifdef USELOCALLIBS
204 MAKE_COMMANDS= mk_cmds
205 #else
206 MAKE_COMMANDS= $(BUILDTOP)/util/ss/mk_cmds
207 #endif
208 /*
209  * Loader argument to get the ss library
210  */
211 #ifdef USELOCALLIBS
212 SS_LIB = -lss
213 #else
214 SS_LIB = $(BUILDTOP)/util/ss/libss.a
215 #endif
216 /*
217  * Dependency name for SS_LIB, if any
218  */
219 #ifndef USELOCALLIBS
220 SS_LIBDEP = $(SS_LIB)
221 #endif
222
223 LLIB = -L/usr/athena/lib
224
225 /* libraries most Moira programs use */
226 #ifdef HESIOD
227 CLIBS= $(MR_LIB) $(GDB_LIB) $(LLIB) $(LZEPHYR) $(COM_ERR) -lkrb -ldes -lhesiod
228 #else
229 CLIBS= $(MR_LIB) $(GDB_LIB) $(LLIB) $(LZEPHYR) $(COM_ERR) -lkrb -ldes
230 #endif
231
232 /* libraries SQL programs need */
233 #ifdef INGRES
234 SQL_LIB= /usr/ingres/lib/libingres.a -lm
235 #endif
236 #ifdef INFORMIX
237 SQL_LIB= /usr/informix/lib/libsql.a
238 #endif
239 #ifdef ORACLE
240 SQL_LIB= /usr/oracle/lib/#########
241 #endif
242
243
244 /* Define NEED_STRCASECMP if your C library doesn't have the BSD-style
245  * case insensitive string compare strcasecmp().
246  */
247 #ifdef _AIX
248 #define NEED_STRCASECMP
249 #endif
250
251 /* HAS_VSPRINTF should be defined if this function is in your C library */
252 #if defined(_AIX) || defined(sun) || defined(_AUX_SOURCE) || defined(sgi)
253 #define HAS_VSPRINTF
254 #else
255 #undef HAS_VSPRINTF
256 #endif
257
258 /*
259  * Define DEBUG_LIBS if you want to create versions of the libraries
260  * that have useful debugging information (the default rules will strip
261  * out extra symbols, including debugging symbols, from the symbol
262  * table.)  NOTE:  This only works if you do NOT turn on PROFILED_LIBS
263  * below.
264  * NOTE:  this doesn't turn on the debugging flag for your compiler; do
265  * that with the DBG make variable, below.
266  */
267 /* #define DEBUG_LIBS */
268
269 /*
270  * Define PROFILED_LIBS if you want to create profiled versions of the
271  * libraries used in Kerberos
272  */
273 #define PROFILED_LIBS
274
275 /*
276  * Define PROF_FLAG to be the flag to be passed to your C compiler to
277  * turn on profiling.
278  */
279 #ifdef vax
280 #define PROF_FLAG -pg
281 #else
282 #define PROF_FLAG -p
283 #endif 
284
285 /*
286  * The name of a command which builds an object library.
287  */
288 ARCHIVE= ar cru
289 /*
290  * The name of another program needed to post-process the archive.
291  */
292 #if defined(SOLARIS) || defined(sgi)
293 RANLIB= /bin/true
294 #else
295 RANLIB= ranlib
296 #endif
297
298
299 /* 
300  * Install commands:  installs a file into the destination tree.
301  * These commands are called with two arguments: the source and the
302  * destination of the install.
303  */
304 /* install a file */
305 INSTALLFILE= install -c -m 444
306 /* install a library */ 
307 INSTALLLIB= install -c -m 444
308 /* install a program */
309 INSTALLPROG= install -c -m 555 
310 /* invoke raw install program */
311 INSTALLRAW= install
312
313 LD=ld                   /* The name of the target's linker */
314
315 AS=as                   /* The name of the target's assembler */
316
317 LINT=lint               /* The name of `lint' */
318
319 #ifdef SOLARIS
320 CC=gcc -traditional
321 #else
322 #ifdef _AIX
323 #ifdef i386
324 CC=cc -q -D_BSD -DBSD_INCLUDES
325 #else /* i386 */
326 CC=cc -D_BSD -D_BSD_INCLUDES    /* Use BSD style header files & be quiet */
327 #endif /* i386 */
328 #else /* _AIX */
329 CC=cc                   /* The name of the C compiler for the target */
330 #endif /* _AIX */
331 #endif /* SOLARIS */
332
333 CCRO=$(CC) -R           /* Compile with initialized data read-only 
334                            & shared (if possible) */
335
336 HCC=$(CC)               /* The name of the C compiler on _this_
337                          * machine
338                          */
339
340 CPP=$(CC) -E            /* A command which invokes the C preprocessor */
341
342 #ifndef _AIX            /* RS6K optomizer is buggy, we don't know if it wall affect moira */
343 DBG=-O                  /* Debug or optimize? */
344 #endif /* _AIX */
345
346 HCFLAGS=$(CFLAGS)
347
348 TAGGER=etags            /* Program to index source files */
349
350 SHELL=/bin/sh           /* shell to use from make */
351 MAKE=make               /* name of make program */
352 RM=rm -f                /* delete one or more files/directories/links */
353 MV=mv                   /* rename/move a file */
354 CP=cp                   /* copy a file */
355 LN=ln -s                /* create a link */
356 LPR=lpr -p              /* print a file or files */
357 CHMOD=chmod             /* change mode of a file */
358 AWK=awk                 /* used to filter embeded SQL files */
This page took 0.064224 seconds and 5 git commands to generate.