]> andersk Git - moira.git/blob - util/imake.includes/config.Imakefile
Fixes to build with `gcc' instead of `gcc -traditional' on suns. (Needed
[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
10 #ifdef _AIX
11 OSDEFS= -D_BSD -D_BSD_INCLUDES -DPOSIX
12 OSLIBS= -lbsd
13 #endif
14
15 #if defined(linux) || defined(__NetBSD__)
16 OSDEFS= -DPOSIX
17 #endif
18
19 #ifdef sgi
20 OSDEFS= -DPOSIX -DSYSV
21 #endif
22
23 #if defined(SOLARIS)
24 OSDEFS= -DPOSIX -DSOLARIS -DSYSV
25 OSLIBS= -lresolv -lsocket -lnsl
26 #endif
27
28 #ifdef NeXT
29 OSLIBS= -lresolv
30 #endif
31
32 #ifdef __alpha
33 OSDEFS= -DSIXTYFOUR -DPOSIX
34 #endif
35
36 GLOBAL_CDEFS= -DHESIOD -DZEPHYR -DATHENA -DDBMS=ORACLE -I/usr/athena/include $(OSDEFS)
37
38
39 /* SRCTOP is the root of the Moira source tree */
40 SRCTOP=/mit/moiradev/src
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
52 DESTDIR= 
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  */
64 USRDIR= /usr
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
71
72
73 /*
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:
89         com_err
90  */
91 #define USELOCALLIBS
92
93 /*
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.
96  */
97 #define HESIOD
98
99 /*
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.
103  */
104 #define ZEPHYR
105 LZEPHYR=-lzephyr
106
107 /*
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.
111  */
112 #define GDSS
113 #define DO_GDSS
114 LIBGDSS= $(BUILDTOP)/util/gdss/lib/libgdss.a
115 GDSSINC= -DGDSS -I$(BUILDTOP)/util/gdss/include
116
117 /*
118  * Define your DBMS here.  Currently only ORACLE is supported.
119  */
120 #define ORACLE
121
122 /*
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)
125  */
126 /* #define NEED_STRCASECMP */
127
128 MR_LIB=$(BUILDTOP)/lib/libmoira.a
129 MR_LIBDEP=$(MR_LIB)
130 GDB_LIB=$(BUILDTOP)/gdb/libmrgdb.a
131 GDB_LIBDEP=$(GDB_LIB)
132
133
134 /*
135  * The name of a command which compiles error tables.
136  */
137 #ifdef USELOCALLIBS
138 COMPILE_ET= compile_et
139 #else
140 COMPILE_ET= $(BUILDTOP)/util/et/compile_et
141 #endif
142 /*
143  * Loader argument to get the com_err library
144  */
145 #ifdef USELOCALLIBS
146 COM_ERR = -lcom_err
147 #else
148 COM_ERR = $(BUILDTOP)/util/et/libcom_err.a
149 #endif
150 /*
151  * Dependency name for COM_ERR, if any
152  */
153 #ifndef USELOCALLIBS
154 COM_ERR_DEP = $(COM_ERR)
155 COM_ERR_INC = -I$(BUILDTOP)/util/et/
156 #endif
157
158 LLIB = -L/usr/athena/lib
159
160 /* libraries most Moira programs use */
161 #ifdef HESIOD
162 CLIBS= $(MR_LIB) $(GDB_LIB) $(LLIB) $(LZEPHYR) $(COM_ERR) -lkrb -ldes -lhesiod
163 #else
164 CLIBS= $(MR_LIB) $(GDB_LIB) $(LLIB) $(LZEPHYR) $(COM_ERR) -lkrb -ldes
165 #endif
166
167 /* libraries SQL programs need */
168 #ifdef ORACLE
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
170 #endif
171
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
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 */
184 #if !defined(ultrix) && (!defined(sun) || defined(SOLARIS))
185 #define HAS_VSPRINTF
186 #endif
187
188 /* Curses library */
189 #ifdef SOLARIS
190 CURSES= -L/usr/css/lib -lcurses -ltermcap
191 #elif linux
192 CURSES= -lncurses -ltermcap
193 OSINCLUDES= -I/usr/include/ncurses
194 #elif _AIX
195 CURSES= -lcurses
196 #else
197 CURSES= -lcurses -ltermcap
198 #endif
199
200 /* X and motif (for mmoira client) */
201 #ifdef SOLARIS
202 XDIR= /usr/openwin
203 #else
204 XDIR= /usr/X11
205 #endif
206
207 #if !(defined(linux) || defined(__NetBSD__))
208 MOTIFINC= /mit/motif/include
209 MOTIFLIB= /mit/motif/`machtype`lib
210 #endif
211
212 /* where crypt is, if not libc and unistd.h */
213 #ifdef __NetBSD__
214 CRYPT= -lcrypt
215 #endif
216 #if defined(sgi) || defined(SOLARIS)
217 #define USE_CRYPT_H
218 #endif
219
220
221 /*
222  * The name of a command which builds an object library.
223  */
224 ARCHIVE= ar cru
225
226 /*
227  * The name of another program needed to post-process the archive.
228  */
229 #if defined(SOLARIS) || defined(sgi)
230 RANLIB= /bin/true
231 #else
232 RANLIB= ranlib
233 #endif
234
235
236 /* 
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.
240  */
241 /* install a file */
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 */
248 INSTALLRAW= install
249
250 LD=ld                   /* The name of the target's linker */
251
252 #ifdef SOLARIS
253 CC=gcc -traditional
254 #else
255 #ifdef _AIX
256 #ifdef i386
257 CC=cc -q -D_BSD -DBSD_INCLUDES
258 #else /* i386 */
259 CC=cc -D_BSD -D_BSD_INCLUDES    /* Use BSD style header files & be quiet */
260 #endif /* i386 */
261 #else /* _AIX */
262 CC=cc                   /* The name of the C compiler for the target */
263 #endif /* _AIX */
264 #endif /* SOLARIS */
265
266 CPP=$(CC) -E            /* A command which invokes the C preprocessor */
267
268 #ifndef _AIX            /* RS6K optomizer is buggy, we don't know if it wall affect moira */
269 DBG=-g                  /* Debug or optimize? */
270 #endif /* _AIX */
271
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 */
This page took 0.059644 seconds and 5 git commands to generate.