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