initial-darwin-support-20010327
[openafs.git] / src / bu_utils / 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=bu_utils
10 include ../config/Makefile.${SYS_NAME}
11
12 COMPILE_ET = ${DESTDIR}/bin/compile_et
13 CFLAGS= -g -w -I${SRCDIR}include -I${SRCDIR}include/afs ${XCFLAGS}
14 LDFLAGS = ${XLDFLAGS}
15
16 include ../config/Makefile.version
17
18 noversion: install
19
20 all: fms
21
22 FMSOBJS = fms.o
23 FMSLIBS=${DESTDIR}lib/afs/libcmd.a \
24         ${TXLIBS} \
25         $(SRCDIR)lib/afs/libusd.a \
26         $(SRCDIR)lib/afs/libtermlib.a ${XLIBS} \
27         $(SRCDIR)lib/afs/util.a
28
29 fms:    ${FMSOBJS}
30         ${CC} ${LDFLAGS} -o fms ${FMSOBJS} ${FMSLIBS}
31
32 fms.o:  fms.c AFS_component_version_number.o
33
34 #
35 # global operations 
36 #
37
38 system: install
39
40 install:        all
41         ${INSTALL} fms ${DESTDIR}etc
42
43 clean:
44         rm -f *.o fms AFS_component_version_number.c