Merge 1.8.0~pre4 packaging into master
[pkg-k5-afs_openafs.git] / src / bubasics / Makefile.in
blobe22a9c32dec51c19b06f1d813ce91de21280de04
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 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10 include @TOP_OBJDIR@/src/config/Makefile.lwp
13 all: ${TOP_LIBDIR}/libbubasics.a ${TOP_INCDIR}/afs/bumon.h ${TOP_INCDIR}/afs/butc.h ${TOP_INCDIR}/afs/bubasics.h ${TOP_INCDIR}/afs/butx.h \
14 ${TOP_INCDIR}/afs/tcdata.h ${TOP_INCDIR}/afs/butm.h
16 generated: \
17 butc.ss.c butc.cs.c butc.xdr.c butc.h \
18 bumon.ss.c bumon.cs.c bumon.xdr.c bumon.h \
19 butc_errs.c tcdata.h \
20 butm_errs.c butm.h \
21 butx_errs.c butx.h
23 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
25 ${TOP_LIBDIR}/libbubasics.a: libbubasics.a
26 ${INSTALL_DATA} $? $@
28 ${TOP_INCDIR}/afs/bumon.h: bumon.h
29 ${INSTALL_DATA} $? $@
31 ${TOP_INCDIR}/afs/butc.h: butc.h
32 ${INSTALL_DATA} $? $@
34 ${TOP_INCDIR}/afs/bubasics.h: bubasics.h
35 ${INSTALL_DATA} $? $@
37 ${TOP_INCDIR}/afs/tcdata.h: tcdata.h
38 ${INSTALL_DATA} $? $@
40 ${TOP_INCDIR}/afs/butm.h: butm.h
41 ${INSTALL_DATA} $? $@
43 ${TOP_INCDIR}/afs/butx.h: butx.h
44 ${INSTALL_DATA} $? $@
46 libbubasics.a: $(OBJS) AFS_component_version_number.o
47 -$(RM) -f libbubasics.a
48 ar r libbubasics.a ${OBJS} AFS_component_version_number.o
49 ${RANLIB} libbubasics.a
51 butc.xdr.c: butc.xg
52 ${RXGEN} -A -c -o $@ ${srcdir}/butc.xg
54 butc.ss.c: butc.xg
55 ${RXGEN} -A -S -o $@ ${srcdir}/butc.xg
57 butc.cs.c: butc.xg
58 ${RXGEN} -A -C -o $@ ${srcdir}/butc.xg
60 butc.h: butc.xg
61 ${RXGEN} -A -h -o $@ ${srcdir}/butc.xg
63 butc.xdr.c: butc.h
64 butc.cs.c: butc.h
65 butc.ss.c: butc.h
67 bumon.xdr.c: bumon.xg
68 ${RXGEN} -A -c -o $@ ${srcdir}/bumon.xg
70 bumon.ss.c: bumon.xg
71 ${RXGEN} -A -S -o $@ ${srcdir}/bumon.xg
73 bumon.cs.c: bumon.xg
74 ${RXGEN} -A -C -o $@ ${srcdir}/bumon.xg
76 bumon.h: bumon.xg
77 ${RXGEN} -A -h -o $@ ${srcdir}/bumon.xg
79 bumon.xdr.c: bumon.h
80 bumon.ss.c: bumon.h
81 bumon.cs.c: bumon.h
83 butm.h: butm_errs.et butm.p.h
84 ${COMPILE_ET_H} -p ${srcdir} butm_errs -h butm
86 butm_errs.c: butm_errs.et
87 ${COMPILE_ET_C} -p ${srcdir} butm_errs
89 tcdata.h: butc_errs.et tcdata.p.h butm.h
90 ${COMPILE_ET_H} -p ${srcdir} butc_errs -h tcdata
92 butc_errs.c: butc_errs.et
93 ${COMPILE_ET_C} -p ${srcdir} butc_errs
95 butx.h: butx_errs.et
96 ${COMPILE_ET_H} -p ${srcdir} butx_errs -h butx
98 butx_errs.c: butx_errs.et
99 ${COMPILE_ET_C} -p ${srcdir} butx_errs
102 # Installation targets
104 install: libbubasics.a bumon.h butc.h bubasics.h tcdata.h butm.h butx.h
105 ${INSTALL} -d ${DESTDIR}${libdir}/afs
106 ${INSTALL} -d ${DESTDIR}${includedir}/afs
107 ${INSTALL_DATA} libbubasics.a ${DESTDIR}${libdir}/afs/libbubasics.a
108 ${INSTALL_DATA} bumon.h ${DESTDIR}${includedir}/afs/bumon.h
109 ${INSTALL_DATA} butc.h ${DESTDIR}${includedir}/afs/butc.h
110 ${INSTALL_DATA} ${srcdir}/bubasics.h ${DESTDIR}${includedir}/afs/bubasics.h
111 ${INSTALL_DATA} tcdata.h ${DESTDIR}${includedir}/afs/tcdata.h
112 ${INSTALL_DATA} butm.h ${DESTDIR}${includedir}/afs/butm.h
113 ${INSTALL_DATA} butx.h ${DESTDIR}${includedir}/afs/butx.h
115 dest: libbubasics.a bumon.h butc.h bubasics.h tcdata.h butm.h butx.h
116 ${INSTALL} -d ${DEST}/lib/afs
117 ${INSTALL} -d ${DEST}/include/afs
118 ${INSTALL_DATA} libbubasics.a ${DEST}/lib/afs/libbubasics.a
119 ${INSTALL_DATA} bumon.h ${DEST}/include/afs/bumon.h
120 ${INSTALL_DATA} butc.h ${DEST}/include/afs/butc.h
121 ${INSTALL_DATA} ${srcdir}/bubasics.h ${DEST}/include/afs/bubasics.h
122 ${INSTALL_DATA} tcdata.h ${DEST}/include/afs/tcdata.h
123 ${INSTALL_DATA} butm.h ${DEST}/include/afs/butm.h
124 ${INSTALL_DATA} butx.h ${DEST}/include/afs/butx.h
127 # Common targets
130 clean:
131 $(RM) -f *.o *.a *.xdr.c *.ss.c *.cs.c butc.h butx.h butm.h bumon.h tcdata.h \
132 butc_errs.c butx_errs.c butm_errs.c core AFS_component_version_number.c
134 include ../config/Makefile.version