1 # Copyright 2000, International Business Machines Corporation and others.
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
10 include ../config/Makefile.${SYS_NAME}
12 INSTALL=${SRCDIR}bin/install
13 RXGEN=${SRCDIR}bin/rxgen
14 COMPILE_ET = ${SRCDIR}bin/compile_et
16 CFLAGS= ${DBUG} -I${SRCDIR}include ${XCFLAGS}
18 include ../config/Makefile.version
22 all: libbubasics.a bumon.h butc.h bubasics.h tcdata.h butm.h
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
26 libbubasics.a: $(OBJS) AFS_component_version_number.o
28 ar r libbubasics.a ${OBJS} AFS_component_version_number.o
29 ${RANLIB} libbubasics.a
31 butc.xdr.c butc.ss.c butc.cs.c butc.h: butc.xg
34 bumon.xdr.c bumon.ss.c bumon.cs.c bumon.h: bumon.xg
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
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
43 butx_errs.c butx.h: butx_errs.et
44 rm -f butx.h butx_errs.c; ${COMPILE_ET} butx_errs -h butx
48 ${DESTDIR}lib/afs/libbubasics.a: libbubasics.a
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
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