Unix: Rework build system
[openafs.git] / tests / Makefile.in
1 # Build rules for the OpenAFS test suite.
2
3 srcdir=@srcdir@
4 abs_top_srcdir=@abs_top_srcdir@
5 abs_top_builddir=@abs_top_builddir@
6 include @TOP_OBJDIR@/src/config/Makefile.config
7 include @TOP_OBJDIR@/src/config/Makefile.pthread
8
9 MODULE_CFLAGS = -DSOURCE='"$(abs_top_srcdir)/tests"' \
10         -DBUILD='"$(abs_top_builddir)/tests"'
11
12 all: runtests
13         cd tap && $(MAKE) $@
14         cd util && $(MAKE) $@
15
16 runtests: runtests.o
17         $(AFS_LDRULE) runtests.o
18
19 check test tests: runtests
20         cd tap && $(MAKE) $@
21         cd util && $(MAKE) $@
22         ./runtests $(abs_top_srcdir)/tests/TESTS
23
24 install:
25
26 clean distclean:
27         cd tap && $(MAKE) $@
28         cd util && $(MAKE) $@
29         $(RM) -f *.o core runtests