Fix -exit patch rebasing mistake
[pkg-k5-afs_openafs.git] / src / rxkad / Makefile.in
blob4636ac744b5c88679724a8e574a83d828ed41c8a
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
8 # Portions Copyright (c) 2003 Apple Computer, Inc.
10 srcdir=@srcdir@
11 include @TOP_OBJDIR@/src/config/Makefile.config
12 INSTALL = @INSTALL@
13 INSTALL_DATA = @INSTALL_DATA@
14 INSTALL_PROGRAM = @INSTALL_PROGRAM@
15 INSTALL_SCRIPT = @INSTALL_SCRIPT@
17 INCLS=${TOP_INCDIR}/rx/rx.h ${TOP_INCDIR}/rx/xdr.h \
18 ${TOP_INCDIR}/rx/fcrypt.h \
19 rxkad.h rxkad_prototypes.h fcrypt.h v5gen.h \
20 hash.h md4.h md5.h
22 OBJS=rxkad_client.o rxkad_server.o rxkad_common.o rxkad_errs.o \
23 fcrypt.o crypt_conn.o ticket.o ticket5.o crc.o \
24 md4.o md5.o @MAKE_KRB5@ ticket5_keytab.o
26 fc_test_OBJS=fc_test.o
28 fc_test_LIBS=\
29 ${TOP_LIBDIR}/librxkad.a \
30 ${TOP_LIBDIR}/libdes.a \
31 ${TOP_LIBDIR}/librx.a \
32 ${TOP_LIBDIR}/liblwp.a \
33 ${TOP_LIBDIR}/libafsutil.a
35 all: ${TOP_LIBDIR}/librxkad.a depinstall
36 test: fc_test
38 generated: \
39 rxkad_errs.c rxkad.h
41 depinstall: \
42 ${TOP_INCDIR}/rx/rxkad.h \
43 ${TOP_INCDIR}/rx/rxkad_prototypes.h \
44 ${TOP_INCDIR}/rx/fcrypt.h
46 ${TOP_LIBDIR}/librxkad.a: librxkad.a
47 ${INSTALL_DATA} $? $@
49 ${TOP_INCDIR}/rx/fcrypt.h: fcrypt.h
50 ${INSTALL_DATA} $? $@
52 ${TOP_INCDIR}/rx/rxkad.h: rxkad.h
53 ${INSTALL_DATA} $? $@
55 ${TOP_INCDIR}/rx/rxkad_prototypes.h: rxkad_prototypes.h
56 ${INSTALL_DATA} $? $@
59 # Build targets
61 librxkad.a: ${OBJS} AFS_component_version_number.o
62 -$(RM) -f $@
63 $(AR) crv $@ ${OBJS} AFS_component_version_number.o
64 $(RANLIB) $@
66 rxkad_client.o: fcrypt.h private_data.h rxkad_client.c ${INCLS}
68 rxkad_server.o: rxkad_server.c fcrypt.h private_data.h ${INCLS}
69 $(CC) $(CFLAGS) -c ${srcdir}/rxkad_server.c
71 rxkad_common.o: fcrypt.h private_data.h rxkad_common.c ${INCLS}
73 rxkad_errs.o: rxkad_errs.c
75 rxkad_errs.c: rxkad_errs.et
76 ${COMPILE_ET_C} -p ${srcdir} rxkad_errs
78 rxkad.h: rxkad_errs.et rxkad.p.h
79 ${COMPILE_ET_H} -p ${srcdir} rxkad_errs -h rxkad
81 bg-fcrypt.o: rxkad.h
82 crc.o: rxkad.h
83 fcrypt.o: rxkad.h
84 fc_test.o: rxkad.h
85 md4.o: rxkad.h
86 md5.o: rxkad.h
87 rxkad_client.o: rxkad.h
88 ticket5.o: rxkad.h
89 ticket5_keytab.o: rxkad.h
90 ticket.o: rxkad.h
92 ticket.o: ticket.c lifetimes.h ${INCLS}
93 $(CC) $(CFLAGS) -c ${srcdir}/ticket.c
95 ticket5.o: ticket5.c v5gen.c v5der.c v5gen-rewrite.h ${INCLS}
96 $(CC) -I${srcdir} $(CFLAGS) -c ${srcdir}/ticket5.c
98 crc.o: crc.c ${INCLS}
100 md4.o: md4.c ${INCLS}
102 md5.o: md5.c ${INCLS}
104 fcrypt.o: fcrypt.c fcrypt.h sboxes.h rxkad.h rxkad_prototypes.h
106 crypt_conn.o: crypt_conn.c fcrypt.h private_data.h ${INCLS}
108 ticket5_keytab.o: ticket5_keytab.c ${INCLS}
109 ${CC} ${CFLAGS} -c ${srcdir}/ticket5_keytab.c @KRB5_CPPFLAGS@
111 tcrypt.o: tcrypt.c AFS_component_version_number.o
113 tcrypt: tcrypt.o librxkad.a
114 ${CC} -o tcrypt tcrypt.o librxkad.a
116 fc_test: ${fc_test_OBJS} ${fc_test_LIBS}
117 ${CC} ${CFLAGS} -o fc_test ${fc_test_OBJS} ${fc_test_LIBS} ${XLIBS}
119 fc_test.o: ${INCLS}
122 # Install targets
124 install: librxkad.a fcrypt.h rxkad.h rxkad_prototypes.h
125 ${INSTALL} -d ${DESTDIR}${libdir}
126 ${INSTALL} -d ${DESTDIR}${includedir}/rx
127 ${INSTALL_DATA} librxkad.a ${DESTDIR}${libdir}/librxkad.a
128 ${INSTALL_DATA} ${srcdir}/fcrypt.h ${DESTDIR}${includedir}/rx/fcrypt.h
129 ${INSTALL_DATA} rxkad.h ${DESTDIR}${includedir}/rx/rxkad.h
130 ${INSTALL_DATA} ${srcdir}/rxkad_prototypes.h \
131 ${DESTDIR}${includedir}/rx/rxkad_prototypes.h
133 dest: librxkad.a fcrypt.h rxkad.h rxkad_prototypes.h
134 ${INSTALL} -d ${DEST}/lib
135 ${INSTALL} -d ${DEST}/include/rx
136 ${INSTALL_DATA} librxkad.a ${DEST}/lib/librxkad.a
137 ${INSTALL_DATA} ${srcdir}/fcrypt.h ${DEST}/include/rx/fcrypt.h
138 ${INSTALL_DATA} rxkad.h ${DEST}/include/rx/rxkad.h
139 ${INSTALL_DATA} ${srcdir}/rxkad_prototypes.h \
140 ${DEST}/include/rx/rxkad_prototypes.h
143 # Misc. targets
145 clean:
146 $(RM) -f *.o *.a tcrypt core rxkad_errs.c rxkad.h \
147 AFS_component_version_number.c fc_test
149 test:
150 cd test; $(MAKE)
152 include ../config/Makefile.version