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