makefiles-dont-hardcode-optimization-flags-20020307
[openafs.git] / src / bu_utils / 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 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10
11
12 CFLAGS=$(DBG) -w -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} -I${TOP_INCDIR}/afs ${XCFLAGS}
13 LDFLAGS = ${XLDFLAGS}
14
15 all: fms
16
17 FMSLIBS=${TOP_LIBDIR}/libcmd.a \
18         ${TXLIBS} \
19         ${TOP_LIBDIR}/libusd.a \
20         ${TOP_LIBDIR}/libtermlib.a ${XLIBS} \
21         ${TOP_LIBDIR}/util.a
22
23 fms: fms.o
24         ${CC} ${LDFLAGS} -o fms fms.o ${FMSLIBS}
25
26 fms.o:  fms.c AFS_component_version_number.o
27
28 install: ${DESTDIR}${sbindir}/fms
29
30 ${DEST}/etc/fms: fms
31         ${INSTALL} $? $@
32
33 clean:
34         $(RM) -f *.o fms AFS_component_version_number.c
35
36 include ../config/Makefile.version
37 ${DESTDIR}${sbindir}/fms: fms
38         ${INSTALL} $? $@
39
40 dest: ${DEST}/etc/fms
41