]> andersk Git - moira.git/blob - util/imake.includes/config.Imakefile
78fd7f72450af0dead376fe03edd9579b140bc12
[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 -DUSE_CRYPT_H
21 #endif
22
23 #if defined(SOLARIS)
24 OSDEFS= -DPOSIX -DSOLARIS
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 #if !defined(linux) && !defined(__NetBSD__)
113 #define GDSS
114 #ifdef sgi
115 LIBGDSS= /mit/gdss/lib/libgdss.a
116 #else
117 #ifdef SOLARIS
118 LIBGDSS= /mit/gdss/`machtype`/libgdss.a -lbsd
119 #else
120 LIBGDSS= /mit/gdss/`machtype`/libgdss.a
121 #endif
122 #endif
123 GDSSINC= -DGDSS -I/mit/gdss/include
124 #endif /* GDSS */
125
126 /*
127  * Define your DBMS here.  Currently only ORACLE is supported.
128  */
129 #define ORACLE
130
131 /*
132  * Define NEED_STRCASECMP if you don't have strcasecmp() in your libc.
133  * (likely for older 4.3 systems and pre-4.3 systems)
134  */
135 /* #define NEED_STRCASECMP */
136
137 MR_LIB=$(BUILDTOP)/lib/libmoira.a
138 MR_LIBDEP=$(MR_LIB)
139 GDB_LIB=$(BUILDTOP)/gdb/libmrgdb.a
140 GDB_LIBDEP=$(GDB_LIB)
141
142
143 /*
144  * The name of a command which compiles error tables.
145  */
146 #ifdef USELOCALLIBS
147 COMPILE_ET= compile_et
148 #else
149 COMPILE_ET= $(BUILDTOP)/util/et/compile_et
150 #endif
151 /*
152  * Loader argument to get the com_err library
153  */
154 #ifdef USELOCALLIBS
155 COM_ERR = -lcom_err
156 #else
157 COM_ERR = $(BUILDTOP)/util/et/libcom_err.a
158 #endif
159 /*
160  * Dependency name for COM_ERR, if any
161  */
162 #ifndef USELOCALLIBS
163 COM_ERR_DEP = $(COM_ERR)
164 COM_ERR_INC = -I$(BUILDTOP)/util/et/
165 #endif
166
167 LLIB = -L/usr/athena/lib
168
169 /* libraries most Moira programs use */
170 #ifdef HESIOD
171 CLIBS= $(MR_LIB) $(GDB_LIB) $(LLIB) $(LZEPHYR) $(COM_ERR) -lkrb -ldes -lhesiod
172 #else
173 CLIBS= $(MR_LIB) $(GDB_LIB) $(LLIB) $(LZEPHYR) $(COM_ERR) -lkrb -ldes
174 #endif
175
176 /* libraries SQL programs need */
177 #ifdef ORACLE
178 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
179 #endif
180
181 /* optional readline support for mrtest */
182 READLINE_INCLUDES= -I/mit/gnu/include/readline -DUSE_READLINE
183 READLINE_LIBS= -L/mit/gnu/lib -lreadline -ltermcap
184
185 /* Define NEED_STRCASECMP if your C library doesn't have the BSD-style
186  * case insensitive string compare strcasecmp().
187  */
188 #ifdef _AIX
189 #define NEED_STRCASECMP
190 #endif
191
192 /* HAS_VSPRINTF should be defined if this function is in your C library */
193 #if !defined(ultrix) && (!defined(sun) || defined(SOLARIS))
194 #define HAS_VSPRINTF
195 #endif
196
197 /* Curses library */
198 #ifdef SOLARIS
199 CURSES= -L/usr/css/lib -lcurses -ltermcap
200 #elif linux
201 CURSES= -lncurses -ltermcap
202 OSINCLUDES= -I/usr/include/ncurses
203 #elif _AIX
204 CURSES= -lcurses
205 #else
206 CURSES= -lcurses -ltermcap
207 #endif
208
209 /* X and motif (for mmoira client) */
210 #ifdef SOLARIS
211 XDIR= /usr/openwin
212 #else
213 XDIR= /usr/X11
214 #endif
215
216 #if !(defined(linux) || defined(__NetBSD__))
217 MOTIFINC= /mit/motif/include
218 MOTIFLIB= /mit/motif/`machtype`lib
219 #endif
220
221 /* where crypt is, if not libc */
222 #ifdef __NetBSD__
223 CRYPT= -lcrypt
224 #endif
225
226 /*
227  * The name of a command which builds an object library.
228  */
229 ARCHIVE= ar cru
230
231 /*
232  * The name of another program needed to post-process the archive.
233  */
234 #if defined(SOLARIS) || defined(sgi)
235 RANLIB= /bin/true
236 #else
237 RANLIB= ranlib
238 #endif
239
240
241 /* 
242  * Install commands:  installs a file into the destination tree.
243  * These commands are called with two arguments: the source and the
244  * destination of the install.
245  */
246 /* install a file */
247 INSTALLFILE= install -c -m 444
248 /* install a library */ 
249 INSTALLLIB= install -c -m 444
250 /* install a program */
251 INSTALLPROG= install -c -m 555 
252 /* invoke raw install program */
253 INSTALLRAW= install
254
255 LD=ld                   /* The name of the target's linker */
256
257 #ifdef SOLARIS
258 CC=gcc -traditional
259 #else
260 #ifdef _AIX
261 #ifdef i386
262 CC=cc -q -D_BSD -DBSD_INCLUDES
263 #else /* i386 */
264 CC=cc -D_BSD -D_BSD_INCLUDES    /* Use BSD style header files & be quiet */
265 #endif /* i386 */
266 #else /* _AIX */
267 CC=cc                   /* The name of the C compiler for the target */
268 #endif /* _AIX */
269 #endif /* SOLARIS */
270
271 CPP=$(CC) -E            /* A command which invokes the C preprocessor */
272
273 #ifndef _AIX            /* RS6K optomizer is buggy, we don't know if it wall affect moira */
274 DBG=-O                  /* Debug or optimize? */
275 #endif /* _AIX */
276
277 SHELL=/bin/sh           /* shell to use from make */
278 MAKE=make               /* name of make program */
279 RM=rm -f                /* delete one or more files/directories/links */
280 MV=mv                   /* rename/move a file */
281 CP=cp                   /* copy a file */
282 LN=ln -s                /* create a link */
283 LPR=lpr -p              /* print a file or files */
284 CHMOD=chmod             /* change mode of a file */
285 AWK=awk                 /* used to filter embeded SQL files */
This page took 0.091858 seconds and 3 git commands to generate.