1 | # Copyright 1989 by the Massachusetts Institute of Technology. |
---|
2 | # |
---|
3 | # For copying and distribution information, |
---|
4 | # please see the file <mit-copyright.h>. |
---|
5 | # |
---|
6 | # Makefile for creating a Kerberos configuration |
---|
7 | # |
---|
8 | # This Makefile creates the directories needed to hold Kerberos |
---|
9 | # object files and executables. It also installs the Imakefiles. |
---|
10 | # This also copies in the Imake and make depend program and Imake macros. |
---|
11 | # By default, the Imakefiles are copied into the configuration |
---|
12 | # and made writeable. If a link is preferred, change LN to "ln". |
---|
13 | # |
---|
14 | # The default distination for the configuration is the current |
---|
15 | # directory; defaults for destination and source directories may be |
---|
16 | # specified, e.g.: |
---|
17 | # |
---|
18 | # make -f makeconfig SRCDIR=/u2/lockers/kerberos DESTDIR=myconfig |
---|
19 | |
---|
20 | DESTDIR = . |
---|
21 | SRCDIR = /mit/kerberos/src |
---|
22 | |
---|
23 | LN = cp |
---|
24 | SYMLINK = ln -s |
---|
25 | |
---|
26 | SUBDIR = include lib lib/krb lib/kdb lib/kadm lib/des lib/knet \ |
---|
27 | lib/acl admin appl appl/bsd appl/knetd appl/sample \ |
---|
28 | appl/tftp appl/erlogin kuser kadmin man server slave \ |
---|
29 | util |
---|
30 | |
---|
31 | # Empty directories which also need to be built. |
---|
32 | MTDIR = lib/krb/profiled lib/kdb/profiled lib/kadm/profiled \ |
---|
33 | lib/des/profiled lib/knet/profiled lib/acl/profiled |
---|
34 | |
---|
35 | all: |
---|
36 | rm -f ${DESTDIR}/Makefile |
---|
37 | ${LN} ${SRCDIR}/Makefile ${DESTDIR}/Makefile |
---|
38 | rm -f ${DESTDIR}/Imakefile |
---|
39 | ${SYMLINK} ${SRCDIR}/Imakefile ${DESTDIR}/Imakefile |
---|
40 | chmod +w ${DESTDIR}/Makefile |
---|
41 | -for i in ${SUBDIR}; do \ |
---|
42 | mkdir ${DESTDIR}/$$i; \ |
---|
43 | rm -f ${DESTDIR}/$$i/Imakefile; \ |
---|
44 | ${SYMLINK} ${SRCDIR}/$$i/Imakefile ${DESTDIR}/$$i/Imakefile; \ |
---|
45 | done |
---|
46 | -for i in ${MTDIR}; do mkdir ${DESTDIR}/$$i; done |
---|
47 | for i in imake makedepend imake.includes et ss; do \ |
---|
48 | make ${MFLAGS} -f ${SRCDIR}/util/$$i/Makefile SRCDIR=${SRCDIR} DESTDIR=${DESTDIR} config; \ |
---|
49 | done |
---|