Unix: Rework build system
[openafs.git] / src / usd / test / 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 include @TOP_OBJDIR@/src/config/Makefile.lwp
11
12 INSTALL = @INSTALL@
13 INSTALL_DATA = @INSTALL_DATA@
14 INSTALL_PROGRAM = @INSTALL_PROGRAM@
15 INSTALL_SCRIPT = @INSTALL_SCRIPT@
16
17
18 INCDIRS= -I${DESTDIR}/include  -I..
19 CFLAGS = $(DBUG) -I${SRCDIR}/include ${INCDIRS} ${XCFLAGS} ${ARCHFLAGS}
20 LIBUSD=DEST/lib/afs/libusd.a
21
22 #####################################################################
23 # include files
24 INCLS=${SRCDIR}/include/afs/param.h ${SRCDIR}/include/afs/usd.h
25
26
27 # build usd_test
28 usd_test: usd_test.o ${LIBUSD} $(INCLS)
29         $(AFS_LDFLAGS) usd_test.o ${LIBUSD} ${XLIBS}
30
31 usd_test.o: usd_test.c
32
33 clean:
34         -$(RM)  -f *.o usd_test \
35          core  AFS_component_version_number.c
36
37 #######################################################################
38
39 test tests: usd_test