1 # Copyright 2000, International Business Machines Corporation and others.
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
10 TOP_SRCDIR=@TOP_SRCDIR@
11 SYS_NAME=@AFS_SYSNAME@
15 include ../config/Makefile.${SYS_NAME}
17 KERNELDIR = ../libafs/
18 UKERNELDIR = ../libuafs/
19 COMPILE_ET = ${SRCDIR}/bin/compile_et
20 OBJS= cellconfig.o ktc.o userok.o writeconfig.o authcon.o \
21 acfg_errors.o ktc_errors.o
22 KOBJS= cellconfig.o ktc.krb.o userok.o writeconfig.o authcon.o \
23 acfg_errors.o ktc_errors.o
25 CFLAGS=-g -I${TOP_SRCDIR}/config -I${SRCDIR}/include ${XCFLAGS}
26 LIBS= libauth.a ${DESTDIR}/lib/afs/libsys.a \
27 ${DESTDIR}/lib/librxkad.a ${DESTDIR}/lib/libdes.a \
28 ${DESTDIR}/lib/librx.a ${DESTDIR}/lib/afs/libsys.a \
29 ${DESTDIR}/lib/liblwp.a ${SRCDIR}/lib/afs/util.a ${XLIBS}
30 INCLS=cellconfig.h auth.h keys.h
32 UKSRCS=${KSRCS} cellconfig.h acfg_errors.c keys.h cellconfig.c \
33 ktc.c authcon.c ktc_errors.c
37 cellconfig.o: cellconfig.c ${INCLS}
38 ktc.o: ktc.c ${INCLS} ${SRCDIR}/include/afs/vice.h
39 writeconfig.o: writeconfig.c ${INCLS}
40 authcon.o: authcon.c ${INCLS}
41 userok.o: userok.c ${INCLS}
42 cellconfig.o: cellconfig.c ${INCLS}
43 copyauth.o: copyauth.c ${INCLS} AFS_component_version_number.o
44 setkey.o: setkey.c ${INCLS} AFS_component_version_number.o
46 ktc.krb.o: ktc.c ${INCLS} ${SRCDIR}/include/afs/vice.h
47 ${CC} ${CFLAGS} -DAFS_KERBEROS_ENV -c ktc.c -o ktc.krb.o
49 libauth.a: $(OBJS) AFS_component_version_number.o
51 ar rv libauth.a $(OBJS) AFS_component_version_number.o
54 libauth.krb.a: $(KOBJS) AFS_component_version_number.o
56 ar rv libauth.krb.a $(KOBJS) AFS_component_version_number.o
57 $(RANLIB) libauth.krb.a
60 $(CC) $(CFLAGS) -o copyauth copyauth.o ${LIBS}
63 ${CC} $(CFLAGS) -o setkey setkey.o ${LIBS}
65 acfg_errors.o: acfg_errors.c
67 acfg_errors.c cellconfig.h: acfg_errors.et cellconfig.p.h
68 rm -f cellconfig.h acfg_errors.c; ${COMPILE_ET} acfg_errors -h cellconfig
70 ktc_errors.o: ktc_errors.c
72 ktc_errors.c auth.h: ktc_errors.et auth.p.h
73 rm -f auth.h ktc_errors.c; ${COMPILE_ET} ktc_errors -h auth
78 kinstall: ${KERNELDIR}/afs/auth.h
80 ${KERNELDIR}/afs/auth.h: auth.h
84 ${UKERNELDIR}/afs/auth.h \
85 ${UKERNELDIR}/afs/cellconfig.h \
86 ${UKERNELDIR}/afs/acfg_errors.c \
87 ${UKERNELDIR}/afs/keys.h \
88 ${UKERNELDIR}/afs/cellconfig.c \
89 ${UKERNELDIR}/afs/ktc.c \
90 ${UKERNELDIR}/afs/authcon.c \
91 ${UKERNELDIR}/afs/ktc_errors.c
93 ${UKERNELDIR}/afs/auth.h: auth.h
96 ${UKERNELDIR}/afs/cellconfig.h: cellconfig.h
99 ${UKERNELDIR}/afs/cellconfig.c: cellconfig.c
102 ${UKERNELDIR}/afs/acfg_errors.c: acfg_errors.c
105 ${UKERNELDIR}/afs/keys.h: keys.h
108 ${UKERNELDIR}/afs/ktc.c: ktc.c
111 ${UKERNELDIR}/afs/authcon.c: authcon.c
114 ${UKERNELDIR}/afs/ktc_errors.c: ktc_errors.c
117 install: kinstall ukinstall \
118 ${DESTDIR}/lib/afs/libauth.a \
119 ${DESTDIR}/lib/afs/libauth.krb.a \
120 ${DESTDIR}/include/afs/keys.h \
121 ${DESTDIR}/include/afs/cellconfig.h \
122 ${DESTDIR}/include/afs/auth.h \
123 ${DESTDIR}/etc/copyauth \
126 ${DESTDIR}/lib/afs/libauth.a: libauth.a
129 ${DESTDIR}/lib/afs/libauth.krb.a: libauth.krb.a
132 ${DESTDIR}/etc/copyauth: copyauth
135 ${DESTDIR}/include/afs/keys.h: keys.h
138 ${DESTDIR}/include/afs/cellconfig.h: cellconfig.h
141 ${DESTDIR}/include/afs/auth.h: auth.h
151 rm -f *.o *.a copyauth setkey auth.h cellconfig.h acfg_errors.c ktc_errors.c core\
152 AFS_component_version_number.c
154 include ../config/Makefile.version