7 * Configuration options.
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>)
36 GLOBAL_CDEFS= -DBSD42 -DATHENA_COMPAT -DATHENA -DKERBEROS -DVFS \
37 $(NOENCFLAG) $(DBMFLAG) $(SHMFLAG)
39 /* SRCTOP is the root of the Kerberos source tree */
40 SRCTOP=/mit/kerberos/src
42 /* DESTDIR is the root of the tree to install into.
43 * If null, install into the running system.
45 * DESTDIR='/' is guaranteed to cause trouble for systems which don't
46 * like double slashes in pathnames.
48 * All the installed programs and files are put into ${DESTDIR}/wherever, e.g.
49 * kinit would get installed into ${DESTDIR}${PROGDIR}/kuser
55 * These directories should be subdirectories of DESTDIR;
56 * they show up as absolute pathnames here.
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.
68 LIBDIR= /usr/athena/lib
70 LINTLIBDIR = /usr/lib/lint
79 * Set ORGANIZATION to be the desired organization string printed
80 * by the 'kinit' program. It may have spaces.
82 ORGANIZATION=MIT Project Athena
85 * Define NOENCRYPTION if you do not have the DES library.
87 /* #define NOENCRYPTION */
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.
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)
99 /* #define NEED_SETENV */
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)
105 /* #define NEED_STRCASECMP */
108 * Define NEED_GETOPT if you don't have getopt() in your libc.
110 /* #define NEED_GETOPT */
113 * Define TKT_SHMEM if you want to use shared memory for the session
114 * keys in your ticket caches.
116 /* #define TKT_SHMEM */
119 * LINTLIBFLAG should be the flag used to tell lint to create a lint
120 * library. On most BSD systems, this is -C
124 KRB_LIB=$(BUILDTOP)/lib/krb/libkrb.a
125 KRB_LIBDEP=$(KRB_LIB)
126 KRB_LINTLIB=$(BUILDTOP)/lib/krb/llib-lkrb.ln
127 KADM_LIB=$(BUILDTOP)/lib/kadm/libkadm.a
128 KADM_LIBDEP=$(KADM_LIB)
129 ACL_LIB=$(BUILDTOP)/lib/acl/libacl.a
130 ACL_LIBDEP=$(ACL_LIB)
133 NOENCFLAG=-DNOENCRYPTION
137 #else /* Do encryption */
139 DES_LIB=$(BUILDTOP)/lib/des/libdes.a
140 DES_LIBDEP=$(DES_LIB)
141 DES_LINTLIB=$(BUILDTOP)/lib/des/llib-ldes.ln
142 #endif /* NOENCRYPTION */
146 KDB_LIB=$(BUILDTOP)/lib/kdb/libkdb.a
147 KDB_LIBDEP=$(KDB_LIB)
150 KDB_LIB=$(BUILDTOP)/lib/kdb/libkdb.a -ldbm
151 KDB_LIBDEP=$(BUILDTOP)/lib/kdb/libkdb.a
160 * The name of a command which compiles error tables.
162 COMPILE_ET= $(BUILDTOP)/util/et/compile_et
164 * Loader argument to get the com_err library
166 COM_ERR = $(BUILDTOP)/util/et/libcom_err.a
168 * Dependency name for COM_ERR, if any
170 COM_ERR_DEP = $(COM_ERR)
172 * The name of a command which compiles command tables.
174 MAKE_COMMANDS= $(BUILDTOP)/util/ss/make_commands
176 * Loader argument to get the ss library
178 SS_LIB = $(BUILDTOP)/util/ss/libss.a
180 * Dependency name for SS_LIB, if any
182 SS_LIBDEP = $(SS_LIB)
185 * Define OLD_COMPAT if you want to be able to link old binaries with
186 * the new library names
189 /* #define OLD_COMPAT */
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
197 * NOTE: this doesn't turn on the debugging flag for your compiler; do
198 * that with the DBG make variable, below.
200 /* #define DEBUG_LIBS */
203 * Define PROFILED_LIBS if you want to create profiled versions of the
204 * libraries used in Kerberos
206 #define PROFILED_LIBS
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
216 * The name of a command which builds an object library.
220 * The name of another program needed to post-process the archive.
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.
232 INSTALLFILE= install -c -m 444
233 /* install a library */
234 INSTALLLIB= install -c -m 444
235 /* install a program */
236 INSTALLPROG= install -c -m 555
237 /* invoke raw install program */
239 /* install a program which should run as root */
240 INSTALLSUID= install -c -m 4555 -o root
242 LD=ld /* The name of the target's linker */
244 AS=as /* The name of the target's assembler */
246 LINT=lint /* The name of `lint' */
248 CC=cc /* The name of the C compiler for the target */
250 CCRO=cc -R /* Compile with initialized data read-only
251 & shared (if possible) */
253 HCC=$(CC) /* The name of the C compiler on _this_
257 CPP=$(CC) -E /* A command which invokes the C preprocessor */
259 DBG=-O /* Debug or optimize? */
263 TAGGER=etags /* Program to index source files */
265 MAKE=make /* name of make program */
266 RM=rm -f /* delete one or more files/directories/links */
267 MV=mv /* rename/move a file */
268 CP=cp /* copy a file */
269 LN=ln -s /* create a link */
270 LPR=lpr -p /* print a file or files */
271 CHMOD=chmod /* change mode of a file */
274 /* XXX default's uid on Athena (for tftp) */