]>
Commit | Line | Data |
---|---|---|
d97b9d80 | 1 | /**/# $Source$ |
d97b9d80 | 2 | /**/# |
3 | ||
4 | /* | |
5 | * Configuration options. | |
6 | */ | |
7 | ||
8 | /* GLOBAL_CDEFS are passed to every C compile statement */ | |
2e24270b | 9 | |
10 | #ifdef _AIX | |
eba062ad | 11 | OSDEFS= -D_BSD -D_BSD_INCLUDES -DPOSIX |
12 | OSLIBS= -lbsd | |
2e24270b | 13 | #endif |
14 | ||
eba062ad | 15 | #if defined(linux) || defined(__NetBSD__) |
efeb47ac | 16 | OSDEFS= -DPOSIX |
17 | #endif | |
18 | ||
eba062ad | 19 | #ifdef sgi |
234fa8ee | 20 | OSDEFS= -DPOSIX -DNEED_GETUSERSHELL |
eba062ad | 21 | #endif |
22 | ||
2e24270b | 23 | #if defined(SOLARIS) |
be71418b | 24 | OSDEFS= -DPOSIX -DSOLARIS |
eba062ad | 25 | OSLIBS= -lresolv -lsocket -lnsl |
2e24270b | 26 | #endif |
27 | ||
28 | #ifdef NeXT | |
29 | OSLIBS= -lresolv | |
edd5054f | 30 | #endif |
d97b9d80 | 31 | |
eba062ad | 32 | #ifdef __alpha |
33 | OSDEFS= -DSIXTYFOUR -DPOSIX | |
34 | #endif | |
2e24270b | 35 | |
eba062ad | 36 | GLOBAL_CDEFS= -DHESIOD -DZEPHYR -DATHENA -DDBMS=ORACLE -I/usr/athena/include $(OSDEFS) |
2e24270b | 37 | |
38 | ||
39 | /* SRCTOP is the root of the Moira source tree */ | |
40 | SRCTOP=/mit/moiradev/src | |
d97b9d80 | 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 | |
2e24270b | 65 | ETCDIR= /usr/athena/etc |
66 | PROGDIR=/usr/athena/bin | |
d97b9d80 | 67 | LIBDIR= /usr/athena/lib |
d97b9d80 | 68 | LINTLIBDIR = /usr/lib/lint |
2e24270b | 69 | INCLDIR= /usr/athena/include |
70 | MANDIR= /usr/athena/man | |
71 | ||
d97b9d80 | 72 | |
73 | /* | |
2e24270b | 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: | |
2e24270b | 89 | com_err |
d97b9d80 | 90 | */ |
be71418b | 91 | /* we want the newer versions from our source tree */ |
92 | /* #define USELOCALLIBS */ | |
d97b9d80 | 93 | |
94 | /* | |
2e24270b | 95 | * Define HESIOD if you have hesiod installed on your system and want |
96 | * to use it for the Moira clients to find the Moira server. | |
d97b9d80 | 97 | */ |
2e24270b | 98 | #define HESIOD |
d97b9d80 | 99 | |
100 | /* | |
2e24270b | 101 | * Define ZEPHYR if you have zephyr installed on your system and want |
102 | * to use it to report Moira server errors. Also define the library | |
103 | * to link against. | |
d97b9d80 | 104 | */ |
2e24270b | 105 | #define ZEPHYR |
9f662e18 | 106 | LZEPHYR=-lzephyr |
d97b9d80 | 107 | |
108 | /* | |
2e24270b | 109 | * Define GDSS if you use the Generic Data Signature Service to |
110 | * stamp user records to guarentee their authenticity. Also define | |
111 | * location of library and includes. | |
d97b9d80 | 112 | */ |
2e24270b | 113 | #define GDSS |
b84717e4 | 114 | #define DO_GDSS |
82302b7a | 115 | LIBGDSS= $(BUILDTOP)/util/gdss/lib/libgdss.a |
116 | GDSSINC= -DGDSS -I$(BUILDTOP)/util/gdss/include | |
d97b9d80 | 117 | |
118 | /* | |
99826b0e | 119 | * Define your DBMS here. Currently only ORACLE is supported. |
d97b9d80 | 120 | */ |
99826b0e | 121 | #define ORACLE |
d97b9d80 | 122 | |
123 | /* | |
2e24270b | 124 | * Define NEED_STRCASECMP if you don't have strcasecmp() in your libc. |
125 | * (likely for older 4.3 systems and pre-4.3 systems) | |
d97b9d80 | 126 | */ |
2e24270b | 127 | /* #define NEED_STRCASECMP */ |
d97b9d80 | 128 | |
2e24270b | 129 | MR_LIB=$(BUILDTOP)/lib/libmoira.a |
130 | MR_LIBDEP=$(MR_LIB) | |
2e24270b | 131 | |
d97b9d80 | 132 | /* |
133 | * The name of a command which compiles error tables. | |
134 | */ | |
2e24270b | 135 | #ifdef USELOCALLIBS |
136 | COMPILE_ET= compile_et | |
137 | #else | |
d97b9d80 | 138 | COMPILE_ET= $(BUILDTOP)/util/et/compile_et |
2e24270b | 139 | #endif |
d97b9d80 | 140 | /* |
141 | * Loader argument to get the com_err library | |
142 | */ | |
2e24270b | 143 | #ifdef USELOCALLIBS |
144 | COM_ERR = -lcom_err | |
145 | #else | |
d97b9d80 | 146 | COM_ERR = $(BUILDTOP)/util/et/libcom_err.a |
2e24270b | 147 | #endif |
d97b9d80 | 148 | /* |
149 | * Dependency name for COM_ERR, if any | |
150 | */ | |
2e24270b | 151 | #ifndef USELOCALLIBS |
d97b9d80 | 152 | COM_ERR_DEP = $(COM_ERR) |
eba062ad | 153 | COM_ERR_INC = -I$(BUILDTOP)/util/et/ |
2e24270b | 154 | #endif |
d97b9d80 | 155 | |
2e24270b | 156 | LLIB = -L/usr/athena/lib |
157 | ||
158 | /* libraries most Moira programs use */ | |
159 | #ifdef HESIOD | |
85330553 | 160 | CLIBS= $(MR_LIB) $(LLIB) $(LZEPHYR) $(COM_ERR) -lkrb -ldes -lhesiod |
2e24270b | 161 | #else |
85330553 | 162 | CLIBS= $(MR_LIB) $(LLIB) $(LZEPHYR) $(COM_ERR) -lkrb -ldes |
2e24270b | 163 | #endif |
164 | ||
165 | /* libraries SQL programs need */ | |
2e24270b | 166 | #ifdef ORACLE |
99826b0e | 167 | 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 |
2e24270b | 168 | #endif |
d97b9d80 | 169 | |
eba062ad | 170 | /* optional readline support for mrtest */ |
171 | READLINE_INCLUDES= -I/mit/gnu/include/readline -DUSE_READLINE | |
172 | READLINE_LIBS= -L/mit/gnu/lib -lreadline -ltermcap | |
2e24270b | 173 | |
174 | /* Define NEED_STRCASECMP if your C library doesn't have the BSD-style | |
175 | * case insensitive string compare strcasecmp(). | |
176 | */ | |
177 | #ifdef _AIX | |
178 | #define NEED_STRCASECMP | |
179 | #endif | |
180 | ||
181 | /* HAS_VSPRINTF should be defined if this function is in your C library */ | |
eba062ad | 182 | #if !defined(ultrix) && (!defined(sun) || defined(SOLARIS)) |
2e24270b | 183 | #define HAS_VSPRINTF |
eba062ad | 184 | #endif |
185 | ||
186 | /* Curses library */ | |
187 | #ifdef SOLARIS | |
188 | CURSES= -L/usr/css/lib -lcurses -ltermcap | |
189 | #elif linux | |
190 | CURSES= -lncurses -ltermcap | |
191 | OSINCLUDES= -I/usr/include/ncurses | |
192 | #elif _AIX | |
193 | CURSES= -lcurses | |
2e24270b | 194 | #else |
eba062ad | 195 | CURSES= -lcurses -ltermcap |
2e24270b | 196 | #endif |
d97b9d80 | 197 | |
eba062ad | 198 | /* X and motif (for mmoira client) */ |
199 | #ifdef SOLARIS | |
200 | XDIR= /usr/openwin | |
201 | #else | |
202 | XDIR= /usr/X11 | |
203 | #endif | |
d97b9d80 | 204 | |
eba062ad | 205 | #if !(defined(linux) || defined(__NetBSD__)) |
206 | MOTIFINC= /mit/motif/include | |
207 | MOTIFLIB= /mit/motif/`machtype`lib | |
208 | #endif | |
d97b9d80 | 209 | |
98a7b0ee | 210 | /* where crypt is, if not libc and unistd.h */ |
eba062ad | 211 | #ifdef __NetBSD__ |
212 | CRYPT= -lcrypt | |
213 | #endif | |
98a7b0ee | 214 | #if defined(sgi) || defined(SOLARIS) |
215 | #define USE_CRYPT_H | |
216 | #endif | |
217 | ||
2e24270b | 218 | |
d97b9d80 | 219 | /* |
220 | * The name of a command which builds an object library. | |
221 | */ | |
222 | ARCHIVE= ar cru | |
eba062ad | 223 | |
d97b9d80 | 224 | /* |
225 | * The name of another program needed to post-process the archive. | |
226 | */ | |
efeb47ac | 227 | #if defined(SOLARIS) || defined(sgi) |
2e24270b | 228 | RANLIB= /bin/true |
229 | #else | |
d97b9d80 | 230 | RANLIB= ranlib |
2e24270b | 231 | #endif |
d97b9d80 | 232 | |
233 | ||
234 | /* | |
235 | * Install commands: installs a file into the destination tree. | |
236 | * These commands are called with two arguments: the source and the | |
237 | * destination of the install. | |
238 | */ | |
239 | /* install a file */ | |
240 | INSTALLFILE= install -c -m 444 | |
241 | /* install a library */ | |
242 | INSTALLLIB= install -c -m 444 | |
243 | /* install a program */ | |
244 | INSTALLPROG= install -c -m 555 | |
245 | /* invoke raw install program */ | |
246 | INSTALLRAW= install | |
d97b9d80 | 247 | |
248 | LD=ld /* The name of the target's linker */ | |
249 | ||
2e24270b | 250 | #ifdef SOLARIS |
8e023d2a | 251 | CC=gcc |
2e24270b | 252 | #else |
253 | #ifdef _AIX | |
254 | #ifdef i386 | |
255 | CC=cc -q -D_BSD -DBSD_INCLUDES | |
256 | #else /* i386 */ | |
257 | CC=cc -D_BSD -D_BSD_INCLUDES /* Use BSD style header files & be quiet */ | |
258 | #endif /* i386 */ | |
259 | #else /* _AIX */ | |
d97b9d80 | 260 | CC=cc /* The name of the C compiler for the target */ |
2e24270b | 261 | #endif /* _AIX */ |
262 | #endif /* SOLARIS */ | |
d97b9d80 | 263 | |
d97b9d80 | 264 | CPP=$(CC) -E /* A command which invokes the C preprocessor */ |
265 | ||
da6b2d4a | 266 | #ifndef _AIX /* RS6K optomizer is buggy, we don't know if it wall affect moira */ |
d1033200 | 267 | DBG=-g /* Debug or optimize? */ |
da6b2d4a | 268 | #endif /* _AIX */ |
d97b9d80 | 269 | |
efeb47ac | 270 | SHELL=/bin/sh /* shell to use from make */ |
d97b9d80 | 271 | MAKE=make /* name of make program */ |
272 | RM=rm -f /* delete one or more files/directories/links */ | |
273 | MV=mv /* rename/move a file */ | |
274 | CP=cp /* copy a file */ | |
275 | LN=ln -s /* create a link */ | |
276 | LPR=lpr -p /* print a file or files */ | |
277 | CHMOD=chmod /* change mode of a file */ | |
2e24270b | 278 | AWK=awk /* used to filter embeded SQL files */ |