]> andersk Git - moira.git/blame - util/imake.includes/config.Imakefile
don't hardcode directory
[moira.git] / util / imake.includes / config.Imakefile
CommitLineData
d97b9d80 1/**/# $Source$
2/**/# $Author$
3/**/# $Id$
4/**/#
5
6/*
7 * Configuration options.
8 */
9
10/* GLOBAL_CDEFS are passed to every C compile statement */
11/* Here are some of the common definitions which you might add to GLOBAL_CDEFS:
12 * BSD42 - needed for compiling on BSD-type systems (selects
13 * hostname retrieval method)
14 * ATHENA_COMPAT - compatibility with currently-running Athena software
15 * (old-style .klogin files, reserved ports for r* commands,
16 * KOPT_DO_OLDSTYLE for krb_sendauth, ancient 'srvtab'
17 * files with "Athena" instead of "ATHENA.MIT.EDU"
18 * ATHENA - Athena-local modifications to r-commands (rlogin, rsh, rcp)
19 * KERBEROS - should ALWAYS be turned on
20 * VFS - Virtual File System (for most Sun NFS machines)
21 * SYSLOG42 - if defined, use 4.2BSD-style syslog routines
22 * POSIX - if defined, conform to POSIX library calls and data structures.
23 * ULTRIX022 - if you are running on pre-3.0 Ultrix.
24 * SunOS=xx - if you are running SunOS. Set xx to 10 times the release
25 * number (e.g. SunOS 3.5 => -DSunOS=35, SunOS 4.0 => -DSunOS=40)
26 * NO_GETUSERSHELL - if your system doesn't have getusershell() in libc
27 * (type 'nm /lib/libc.a | grep getusershell', if something
28 * shows up, you should NOT turn this flag on)
29 * NOTTYENT - if your system doesn't have ttyent.h (4.3-style /etc/ttys)
30 * NO_WINSIZE - if your system doesn't have struct winsize, but
31 * has struct ttysize (e.g. older Suns) (check <sys/ioctl.h>)
32 * NO_UIDGID_T - if your system does not have uid_t's and gid_t's
33 * (check <sys/types.h>)
34 */
35
36GLOBAL_CDEFS= -DBSD42 -DATHENA_COMPAT -DATHENA -DKERBEROS -DVFS \
37 $(NOENCFLAG) $(DBMFLAG) $(SHMFLAG)
38
39/* SRCTOP is the root of the Kerberos source tree */
40SRCTOP=/mit/kerberos/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
52DESTDIR=
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 */
64USRDIR= /usr
65SVRDIR= /usr/etc
66DAEMDIR= /usr/etc
67PROGDIR=/usr/athena
68LIBDIR= /usr/athena/lib
69USRLIB= /usr/lib
70LINTLIBDIR = /usr/lib/lint
71BINDIR= /usr/bin
72UCBDIR= /usr/ucb
73INCLDIR= /usr/include
74MANDIR= /usr/man
75ETCDIR= /etc
76SLASHBINDIR= /bin
77
78/*
79 * Set ORGANIZATION to be the desired organization string printed
80 * by the 'kinit' program. It may have spaces.
81 */
82ORGANIZATION=MIT Project Athena
83
84/*
85 * Define NOENCRYPTION if you do not have the DES library.
86 */
87/* #define NOENCRYPTION */
88
89/*
90 * Define NDBM if you are using the 4.3 ndbm library (which is part of
91 * libc). If not defined, 4.2 dbm will be assumed.
92 */
93#define NDBM
94
95/*
96 * Define NEED_SETENV if you don't have setenv() in your libc.
97 * (likely for older 4.3 systems and pre-4.3 systems)
98 */
99/* #define NEED_SETENV */
100
101/*
102 * Define NEED_STRCASECMP if you don't have strcasecmp() in your libc.
103 * (likely for older 4.3 systems and pre-4.3 systems)
104 */
105/* #define NEED_STRCASECMP */
106
107/*
108 * Define NEED_GETOPT if you don't have getopt() in your libc.
109 */
110/* #define NEED_GETOPT */
111
112/*
113 * Define TKT_SHMEM if you want to use shared memory for the session
114 * keys in your ticket caches.
115 */
116/* #define TKT_SHMEM */
117
118/*
119 * LINTLIBFLAG should be the flag used to tell lint to create a lint
120 * library. On most BSD systems, this is -C
121 */
122LINTLIBFLAG=-C
123
124KRB_LIB=$(BUILDTOP)/lib/krb/libkrb.a
125KRB_LIBDEP=$(KRB_LIB)
126KRB_LINTLIB=$(BUILDTOP)/lib/krb/llib-lkrb.ln
127KADM_LIB=$(BUILDTOP)/lib/kadm/libkadm.a
128KADM_LIBDEP=$(KADM_LIB)
129ACL_LIB=$(BUILDTOP)/lib/acl/libacl.a
130ACL_LIBDEP=$(ACL_LIB)
131
132#ifdef NOENCRYPTION
133NOENCFLAG=-DNOENCRYPTION
134DES_LIBDEP=
135DES_LIB=
136DES_LINTLIB=
137#else /* Do encryption */
138NOENCFLAG=
139DES_LIB=$(BUILDTOP)/lib/des/libdes.a
140DES_LIBDEP=$(DES_LIB)
141DES_LINTLIB=$(BUILDTOP)/lib/des/llib-ldes.ln
142#endif /* NOENCRYPTION */
143
144#ifdef NDBM
145DBMFLAG=-DNDBM
146KDB_LIB=$(BUILDTOP)/lib/kdb/libkdb.a
147KDB_LIBDEP=$(KDB_LIB)
148#else
149DBMFLAG=
150KDB_LIB=$(BUILDTOP)/lib/kdb/libkdb.a -ldbm
151KDB_LIBDEP=$(BUILDTOP)/lib/kdb/libkdb.a
152#endif
153
154#ifdef TKT_SHMEM
155SHMFLAG=-DTKT_SHMEM
156#else
157SHMFLAG=
158#endif
159/*
160 * The name of a command which compiles error tables.
161 */
162COMPILE_ET= $(BUILDTOP)/util/et/compile_et
163/*
164 * Loader argument to get the com_err library
165 */
166COM_ERR = $(BUILDTOP)/util/et/libcom_err.a
167/*
168 * Dependency name for COM_ERR, if any
169 */
170COM_ERR_DEP = $(COM_ERR)
171/*
172 * The name of a command which compiles command tables.
173 */
174MAKE_COMMANDS= $(BUILDTOP)/util/ss/make_commands
175/*
176 * Loader argument to get the ss library
177 */
178SS_LIB = $(BUILDTOP)/util/ss/libss.a
179/*
180 * Dependency name for SS_LIB, if any
181 */
182SS_LIBDEP = $(SS_LIB)
183
184/*
185 * Define OLD_COMPAT if you want to be able to link old binaries with
186 * the new library names
187 */
188
189/* #define OLD_COMPAT */
190
191/*
192 * Define DEBUG_LIBS if you want to create versions of the libraries
193 * that have useful debugging information (the default rules will strip
194 * out extra symbols, including debugging symbols, from the symbol
195 * table.) NOTE: This only works if you do NOT turn on PROFILED_LIBS
196 * below.
197 * NOTE: this doesn't turn on the debugging flag for your compiler; do
198 * that with the DBG make variable, below.
199 */
200/* #define DEBUG_LIBS */
201
202/*
203 * Define PROFILED_LIBS if you want to create profiled versions of the
204 * libraries used in Kerberos
205 */
206#define PROFILED_LIBS
207
208/*
209 * Define PROF_FLAG to be the flag to be passed to your C compiler to
210 * turn on profiling. For 4.3BSD on a VAX, this should probably be -pg.
211 * For most other systems, it should probably be -p
212 */
213#define PROF_FLAG -p
214
215/*
216 * The name of a command which builds an object library.
217 */
218ARCHIVE= ar cru
219/*
220 * The name of another program needed to post-process the archive.
221 */
222RANLIB= ranlib
223
224
225
226/*
227 * Install commands: installs a file into the destination tree.
228 * These commands are called with two arguments: the source and the
229 * destination of the install.
230 */
231/* install a file */
232INSTALLFILE= install -c -m 444
233/* install a library */
234INSTALLLIB= install -c -m 444
235/* install a program */
236INSTALLPROG= install -c -m 555
237/* invoke raw install program */
238INSTALLRAW= install
239/* install a program which should run as root */
240INSTALLSUID= install -c -m 4555 -o root
241
242LD=ld /* The name of the target's linker */
243
244AS=as /* The name of the target's assembler */
245
246LINT=lint /* The name of `lint' */
247
248CC=cc /* The name of the C compiler for the target */
249
250CCRO=cc -R /* Compile with initialized data read-only
251 & shared (if possible) */
252
253HCC=$(CC) /* The name of the C compiler on _this_
254 * machine
255 */
256
257CPP=$(CC) -E /* A command which invokes the C preprocessor */
258
259DBG=-O /* Debug or optimize? */
260
261HCFLAGS=$(CFLAGS)
262
263TAGGER=etags /* Program to index source files */
264
265MAKE=make /* name of make program */
266RM=rm -f /* delete one or more files/directories/links */
267MV=mv /* rename/move a file */
268CP=cp /* copy a file */
269LN=ln -s /* create a link */
270LPR=lpr -p /* print a file or files */
271CHMOD=chmod /* change mode of a file */
272
273/* turds */
274/* XXX default's uid on Athena (for tftp) */
275DEF_UID = 113
276
277#ifdef vax /*XXX*/
278#if 0
279#define VAXASM
280#endif
281#define BIG
282#endif
This page took 0.088072 seconds and 5 git commands to generate.