8b3f2c6fee8c5999d152dce3ceb2407329dcd6e2
[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 DESTDIR=@DESTDIR@
9 SRCDIR=@SRCDIR@
10 TOP_SRCDIR=@TOP_SRCDIR@
11 SYS_NAME=@AFS_SYSNAME@
12
13 SHELL = /bin/sh
14
15 include ../config/Makefile.${SYS_NAME}
16
17 RXGEN=${SRCDIR}bin/rxgen
18 COMPILE_ET = ${SRCDIR}bin/compile_et
19
20 CFLAGS= ${DBUG} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
21
22 include ../config/Makefile.version
23
24 noversion: install
25
26 all: libbubasics.a bumon.h butc.h bubasics.h tcdata.h butm.h
27
28 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
29
30 libbubasics.a: $(OBJS) AFS_component_version_number.o
31         -rm -f libbubasics.a
32         ar r libbubasics.a ${OBJS} AFS_component_version_number.o
33         ${RANLIB} libbubasics.a
34
35 butc.xdr.c butc.ss.c butc.cs.c butc.h: butc.xg
36         ${RXGEN} butc.xg
37
38 bumon.xdr.c bumon.ss.c bumon.cs.c bumon.h: bumon.xg
39         ${RXGEN} bumon.xg
40
41 butm_errs.c butm.h: butm_errs.et butm.p.h
42         rm -f butm.h butm_errs.c; ${COMPILE_ET} butm_errs -h butm
43
44 butc_errs.c tcdata.h: butc_errs.et tcdata.p.h butm.h
45         rm -f tcdata.h butc_errs.c; ${COMPILE_ET} butc_errs -h tcdata
46
47 butx_errs.c butx.h: butx_errs.et
48         rm -f butx.h butx_errs.c; ${COMPILE_ET} butx_errs -h butx
49
50 system: install
51
52 ${DESTDIR}lib/afs/libbubasics.a: libbubasics.a 
53         ${INSTALL}   $? $@
54
55
56 install: all ${DESTDIR}lib/afs/libbubasics.a
57         ${INSTALL} bubasics.h butc.h bumon.h butm.h butx.h tcdata.h ${DESTDIR}include/afs
58
59 clean:
60         -rm -f *.o *.a *.xdr.c *.ss.c *.cs.c \
61 butc.h butx.h butm.h bumon.h tcdata.h \
62 butc_errs.c butx_errs.c butm_errs.c \
63 core AFS_component_version_number.c