convert-all-makefiles-to-makefile-ins-20010802
[openafs.git] / src / auth / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
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
7
8 DESTDIR=@DESTDIR@
9 SRCDIR=@SRCDIR@
10 TOP_SRCDIR=@TOP_SRCDIR@
11 SYS_NAME=@AFS_SYSNAME@
12
13 SHELL = /bin/sh
14
15
16 include ../config/Makefile.${SYS_NAME}
17
18 KERNELDIR = ../libafs/
19 UKERNELDIR = ../libuafs/
20 COMPILE_ET = ${SRCDIR}bin/compile_et
21 OBJS= cellconfig.o ktc.o userok.o writeconfig.o authcon.o \
22     acfg_errors.o ktc_errors.o # comktc.o comvice.o comauth.o 
23 KOBJS= cellconfig.o ktc.krb.o userok.o writeconfig.o authcon.o \
24     acfg_errors.o ktc_errors.o # comktc.o comvice.o comauth.o 
25
26 CFLAGS=-g -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS} 
27 LDIRS= 
28 LIBS= libauth.a ${DESTDIR}lib/afs/libsys.a \
29       ${DESTDIR}lib/librxkad.a ${DESTDIR}lib/libdes.a \
30       ${DESTDIR}lib/librx.a ${DESTDIR}lib/afs/libsys.a \
31       ${DESTDIR}lib/liblwp.a ${SRCDIR}lib/afs/util.a ${XLIBS}
32 INCLS=cellconfig.h auth.h keys.h # comauth.h
33 KSRCS=auth.h
34 UKSRCS=${KSRCS} cellconfig.h acfg_errors.c keys.h cellconfig.c \
35        ktc.c authcon.c ktc_errors.c
36
37 include ../config/Makefile.version
38
39 system install noversion: install.noversion
40
41 all: libauth.a libauth.krb.a setkey
42
43 cellconfig.o: cellconfig.c ${INCLS}
44 #comktc.o: comktc.c ${INCLS} ${SRCDIR}include/afs/vice.h
45 #comvice.o: comvice.c ${INCLS}
46 ktc.o: ktc.c ${INCLS} ${SRCDIR}include/afs/vice.h
47 writeconfig.o: writeconfig.c ${INCLS}
48 authcon.o: authcon.c ${INCLS}
49 userok.o: userok.c ${INCLS}
50 cellconfig.o: cellconfig.c ${INCLS}
51 copyauth.o: copyauth.c ${INCLS} AFS_component_version_number.o
52 setkey.o: setkey.c ${INCLS} AFS_component_version_number.o
53 #comauth.o: comauth.c ${INCLS} ${SRCDIR}include/afs/vice.h
54
55 ktc.krb.o: ktc.c ${INCLS} ${SRCDIR}include/afs/vice.h
56         ${CC} ${CFLAGS} -DAFS_KERBEROS_ENV -c ktc.c -o ktc.krb.o
57
58 libauth.a: $(OBJS) AFS_component_version_number.o
59         -rm -f libauth.a
60         ar rv libauth.a $(OBJS) AFS_component_version_number.o
61         $(RANLIB) libauth.a
62
63 libauth.krb.a: $(KOBJS) AFS_component_version_number.o
64         -rm -f libauth.krb.a
65         ar rv libauth.krb.a $(KOBJS) AFS_component_version_number.o
66         $(RANLIB) libauth.krb.a
67
68 copyauth: copyauth.o
69         $(CC) $(CFLAGS) $(LDIRS) -o copyauth copyauth.o ${LIBS}
70
71 setkey: setkey.o
72         ${CC} $(CFLAGS) $(LDIRS) -o setkey setkey.o ${LIBS}
73
74 acfg_errors.o: acfg_errors.c
75
76 acfg_errors.c cellconfig.h: acfg_errors.et cellconfig.p.h
77         rm -f cellconfig.h acfg_errors.c; ${COMPILE_ET} acfg_errors -h cellconfig
78
79 ktc_errors.o: ktc_errors.c
80
81 ktc_errors.c auth.h: ktc_errors.et auth.p.h
82         rm -f auth.h ktc_errors.c; ${COMPILE_ET} ktc_errors -h auth
83
84 test: 
85         cd test; $(MAKE)
86
87 kinstall: ${KSRCS}
88         ${INSTALL} ${KSRCS} ${KERNELDIR}afs
89
90 ukinstall webinstall: ${UKSRCS}
91         ${INSTALL} ${UKSRCS} ${UKERNELDIR}afs
92
93 ${DESTDIR}etc/copyauth: copyauth
94         ${INSTALL} copyauth ${DESTDIR}etc/copyauth
95
96 install.noversion: all kinstall ukinstall ${DESTDIR}etc/copyauth
97         ${INSTALL} libauth.a ${DESTDIR}lib/afs/libauth.a
98         ${INSTALL} libauth.krb.a ${DESTDIR}lib/afs/libauth.krb.a
99         ${INSTALL} auth.h ${DESTDIR}include/afs
100 #       ${INSTALL} comauth.h ${DESTDIR}include/afs
101         ${INSTALL} cellconfig.h ${DESTDIR}include/afs
102         ${INSTALL} keys.h ${DESTDIR}include/afs
103
104 includes: auth.h cellconfig.h keys.h
105         ${INSTALL} auth.h ${DESTDIR}include/afs
106         ${INSTALL} cellconfig.h ${DESTDIR}include/afs
107         ${INSTALL} keys.h ${DESTDIR}include/afs
108
109 clean:
110         rm -f *.o *.a copyauth testcellconf setkey auth.h cellconfig.h acfg_errors.c ktc_errors.c core\
111         AFS_component_version_number.c