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
9 include @TOP_OBJDIR@/src/config/Makefile.config
11 all: ${TOP_LIBDIR}/libbubasics.a ${TOP_INCDIR}/afs/bumon.h ${TOP_INCDIR}/afs/butc.h ${TOP_INCDIR}/afs/bubasics.h ${TOP_INCDIR}/afs/tcdata.h ${TOP_INCDIR}/afs/butm.h ${TOP_INCDIR}/afs/butx.h
13 OBJS=butc.ss.o butc.cs.o butc.xdr.o bumon.ss.o bumon.cs.o bumon.xdr.o butc_errs.o butm_errs.o butx_errs.o
15 ${TOP_LIBDIR}/libbubasics.a: libbubasics.a
18 ${TOP_INCDIR}/afs/bumon.h: bumon.h
21 ${TOP_INCDIR}/afs/butc.h: butc.h
24 ${TOP_INCDIR}/afs/bubasics.h: bubasics.h
27 ${TOP_INCDIR}/afs/tcdata.h: tcdata.h
30 ${TOP_INCDIR}/afs/butm.h: butm.h
33 ${TOP_INCDIR}/afs/butx.h: butx.h
36 libbubasics.a: $(OBJS) AFS_component_version_number.o
37 -$(RM) -f libbubasics.a
38 ar r libbubasics.a ${OBJS} AFS_component_version_number.o
39 ${RANLIB} libbubasics.a
42 ${RXGEN} -c -o $@ ${srcdir}/butc.xg
45 ${RXGEN} -S -o $@ ${srcdir}/butc.xg
48 ${RXGEN} -C -o $@ ${srcdir}/butc.xg
51 ${RXGEN} -h -o $@ ${srcdir}/butc.xg
58 ${RXGEN} -c -o $@ ${srcdir}/bumon.xg
61 ${RXGEN} -S -o $@ ${srcdir}/bumon.xg
64 ${RXGEN} -C -o $@ ${srcdir}/bumon.xg
67 ${RXGEN} -h -o $@ ${srcdir}/bumon.xg
73 butm_errs.c butm.h: butm_errs.et butm.p.h
74 $(RM) -f butm.h butm_errs.c
75 ${COMPILE_ET} -p ${srcdir} butm_errs -h butm
77 butc_errs.c tcdata.h: butc_errs.et tcdata.p.h butm.h
78 $(RM) -f tcdata.h butc_errs.c
79 ${COMPILE_ET} -p ${srcdir} butc_errs -h tcdata
81 butx_errs.c butx.h: butx_errs.et
82 $(RM) -f butx.h butx_errs.c
83 ${COMPILE_ET} -p ${srcdir} butx_errs -h butx
86 # Installation targets
88 install: libbubasics.a bumon.h butc.h bubasics.h tcdata.h butm.h butx.h
89 ${INSTALL} -d ${DESTDIR}${libdir}/afs
90 ${INSTALL} -d ${DESTDIR}${includedir}/afs
91 ${INSTALL_DATA} libbubasics.a ${DESTDIR}${libdir}/afs/libbubasics.a
92 ${INSTALL_DATA} bumon.h ${DESTDIR}${includedir}/afs/bumon.h
93 ${INSTALL_DATA} butc.h ${DESTDIR}${includedir}/afs/butc.h
94 ${INSTALL_DATA} bubasics.h ${DESTDIR}${includedir}/afs/bubasics.h
95 ${INSTALL_DATA} tcdata.h ${DESTDIR}${includedir}/afs/tcdata.h
96 ${INSTALL_DATA} butm.h ${DESTDIR}${includedir}/afs/butm.h
97 ${INSTALL_DATA} butx.h ${DESTDIR}${includedir}/afs/butx.h
99 dest: libbubasics.a bumon.h butc.h bubasics.h tcdata.h butm.h butx.h
100 ${INSTALL} -d ${DEST}/lib/afs
101 ${INSTALL} -d ${DEST}/include/afs
102 ${INSTALL_DATA} libbubasics.a ${DEST}/lib/afs/libbubasics.a
103 ${INSTALL_DATA} bumon.h ${DEST}/include/afs/bumon.h
104 ${INSTALL_DATA} butc.h ${DEST}/include/afs/butc.h
105 ${INSTALL_DATA} bubasics.h ${DEST}/include/afs/bubasics.h
106 ${INSTALL_DATA} tcdata.h ${DEST}/include/afs/tcdata.h
107 ${INSTALL_DATA} butm.h ${DEST}/include/afs/butm.h
108 ${INSTALL_DATA} butx.h ${DEST}/include/afs/butx.h
115 $(RM) -f *.o *.a *.xdr.c *.ss.c *.cs.c butc.h butx.h butm.h bumon.h tcdata.h \
116 butc_errs.c butx_errs.c butm_errs.c core AFS_component_version_number.c
118 include ../config/Makefile.version