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