Parallel make fixes
[openafs.git] / src / bubasics / 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 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10 INSTALL = @INSTALL@
11 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
14
15 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
16
17 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
18
19 ${TOP_LIBDIR}/libbubasics.a: libbubasics.a
20         ${INSTALL_DATA} $? $@
21
22 ${TOP_INCDIR}/afs/bumon.h: bumon.h
23         ${INSTALL_DATA} $? $@
24
25 ${TOP_INCDIR}/afs/butc.h: butc.h
26         ${INSTALL_DATA} $? $@
27
28 ${TOP_INCDIR}/afs/bubasics.h: bubasics.h
29         ${INSTALL_DATA} $? $@
30
31 ${TOP_INCDIR}/afs/tcdata.h: tcdata.h
32         ${INSTALL_DATA} $? $@
33
34 ${TOP_INCDIR}/afs/butm.h: butm.h
35         ${INSTALL_DATA} $? $@
36
37 ${TOP_INCDIR}/afs/butx.h: butx.h
38         ${INSTALL_DATA} $? $@
39
40 libbubasics.a: $(OBJS) AFS_component_version_number.o
41         -$(RM) -f libbubasics.a
42         ar r libbubasics.a ${OBJS} AFS_component_version_number.o
43         ${RANLIB} libbubasics.a
44
45 butc.xdr.c: butc.xg
46         ${RXGEN} -A -c -o $@ ${srcdir}/butc.xg
47
48 butc.ss.c: butc.xg
49         ${RXGEN} -A -S -o $@ ${srcdir}/butc.xg
50
51 butc.cs.c: butc.xg
52         ${RXGEN} -A -C -o $@ ${srcdir}/butc.xg
53
54 butc.h: butc.xg
55         ${RXGEN} -A -h -o $@ ${srcdir}/butc.xg
56
57 butc.xdr.c: butc.h
58 butc.cs.c: butc.h
59 butc.ss.c: butc.h
60
61 bumon.xdr.c: bumon.xg
62         ${RXGEN} -A -c -o $@ ${srcdir}/bumon.xg
63
64 bumon.ss.c: bumon.xg
65         ${RXGEN} -A -S -o $@ ${srcdir}/bumon.xg
66
67 bumon.cs.c: bumon.xg
68         ${RXGEN} -A -C -o $@ ${srcdir}/bumon.xg
69
70 bumon.h: bumon.xg
71         ${RXGEN} -A -h -o $@ ${srcdir}/bumon.xg
72
73 bumon.xdr.c: bumon.h
74 bumon.ss.c: bumon.h
75 bumon.cs.c: bumon.h
76
77 butc_errs.c: ${TOP_INCDIR}/afs/tcdata.h
78
79 butm_errs.c: ${TOP_INCDIR}/afs/butm.h
80
81 butm_errs.c butm.h: butm_errs.et butm.p.h
82         $(RM) -f butm.h butm_errs.c
83         ${COMPILE_ET} -p ${srcdir} butm_errs -h butm
84
85 butc_errs.c tcdata.h: butc_errs.et tcdata.p.h butm.h
86         $(RM) -f tcdata.h butc_errs.c
87         ${COMPILE_ET} -p ${srcdir} butc_errs -h tcdata
88
89 butx_errs.c butx.h: butx_errs.et
90         $(RM) -f butx.h butx_errs.c
91         ${COMPILE_ET} -p ${srcdir} butx_errs -h butx
92
93 #
94 # Installation targets
95 #
96 install: libbubasics.a bumon.h butc.h bubasics.h tcdata.h butm.h butx.h
97         ${INSTALL} -d ${DESTDIR}${libdir}/afs
98         ${INSTALL} -d ${DESTDIR}${includedir}/afs
99         ${INSTALL_DATA} libbubasics.a ${DESTDIR}${libdir}/afs/libbubasics.a
100         ${INSTALL_DATA} bumon.h ${DESTDIR}${includedir}/afs/bumon.h
101         ${INSTALL_DATA} butc.h ${DESTDIR}${includedir}/afs/butc.h
102         ${INSTALL_DATA} bubasics.h ${DESTDIR}${includedir}/afs/bubasics.h
103         ${INSTALL_DATA} tcdata.h ${DESTDIR}${includedir}/afs/tcdata.h
104         ${INSTALL_DATA} butm.h ${DESTDIR}${includedir}/afs/butm.h
105         ${INSTALL_DATA} butx.h ${DESTDIR}${includedir}/afs/butx.h
106
107 dest: libbubasics.a bumon.h butc.h bubasics.h tcdata.h butm.h butx.h
108         ${INSTALL} -d ${DEST}/lib/afs
109         ${INSTALL} -d ${DEST}/include/afs
110         ${INSTALL_DATA} libbubasics.a ${DEST}/lib/afs/libbubasics.a
111         ${INSTALL_DATA} bumon.h ${DEST}/include/afs/bumon.h
112         ${INSTALL_DATA} butc.h ${DEST}/include/afs/butc.h
113         ${INSTALL_DATA} bubasics.h ${DEST}/include/afs/bubasics.h
114         ${INSTALL_DATA} tcdata.h ${DEST}/include/afs/tcdata.h
115         ${INSTALL_DATA} butm.h ${DEST}/include/afs/butm.h
116         ${INSTALL_DATA} butx.h ${DEST}/include/afs/butx.h
117
118 #
119 # Common targets
120 #
121
122 clean:
123         $(RM) -f *.o *.a *.xdr.c *.ss.c *.cs.c butc.h butx.h butm.h bumon.h tcdata.h \
124                 butc_errs.c butx_errs.c butm_errs.c core AFS_component_version_number.c
125
126 include ../config/Makefile.version