2007-07-13 19:37:47 +00:00
|
|
|
TAGS: */*.c */*.h
|
|
|
|
etags */*.c */*.h
|
2008-01-02 11:37:16 +00:00
|
|
|
|
2008-01-26 18:54:22 +00:00
|
|
|
SRCDIRS = newbrt src src/range_tree src/range_tree/tests src/lock_tree src/lock_tree/tests cxx cxx/tests \
|
|
|
|
utils db-benchmark-test db-benchmark-test-cxx
|
2008-01-18 14:43:32 +00:00
|
|
|
|
|
|
|
build:
|
2008-01-18 18:07:21 +00:00
|
|
|
for d in $(SRCDIRS); do (cd $$d; $(MAKE) -k); done
|
2008-01-18 14:43:32 +00:00
|
|
|
|
2008-01-26 18:54:22 +00:00
|
|
|
check:
|
|
|
|
for d in $(SRCDIRS); do (cd $$d; $(MAKE) -k check); done
|
|
|
|
|
|
|
|
clean:
|
|
|
|
for d in $(SRCDIRS); do (cd $$d; $(MAKE) -k clean); done
|
|
|
|
|
|
|
|
# maybe we should have a coverage target in each makefile
|
2008-01-18 14:43:32 +00:00
|
|
|
build-coverage:
|
2008-01-26 18:54:22 +00:00
|
|
|
for d in $(SRCDIRS); do (cd $$d; $(MAKE) -k OPTFLAGS=-O0 GCOV_FLAGS="-fprofile-arcs -ftest-coverage"); done
|
|
|
|
(cd utils; $(MAKE) clean; $(MAKE) coverage OPTFLAGS=-O0 GCOV_FLAGS="-fprofile-arcs -ftest-coverage")
|
2008-01-21 14:03:46 +00:00
|
|
|
|
2008-01-26 18:54:22 +00:00
|
|
|
# this is messy now since we dont have consistent make targets
|
|
|
|
check-coverage: check-coverage-newbrt check-coverage-src-tests check-coverage-utils check-coverage-cxx-tests \
|
|
|
|
check-coverage-range-tree-tests check-coverage-lock-tree-tests
|
|
|
|
check-coverage-newbrt:
|
2008-01-21 15:24:59 +00:00
|
|
|
(cd newbrt; $(MAKE) -k check DTOOL="")
|
2008-01-26 18:54:22 +00:00
|
|
|
check-coverage-src-tests:
|
2008-01-21 15:24:59 +00:00
|
|
|
(cd src/tests; $(MAKE) -k check.tdb VGRIND="")
|
2008-01-26 18:54:22 +00:00
|
|
|
check-coverage-utils:
|
2008-01-21 15:24:59 +00:00
|
|
|
(cd utils; $(MAKE) -k test-coverage)
|
2008-01-26 18:54:22 +00:00
|
|
|
check-coverage-cxx-tests:
|
2008-01-21 15:24:59 +00:00
|
|
|
(cd cxx/tests; $(MAKE) -k check VGRIND="")
|
2008-01-26 18:54:22 +00:00
|
|
|
check-coverage-range-tree-tests:
|
|
|
|
(cd src/range_tree/tests; $(MAKE) clean; $(MAKE) -k check.lin VGRIND="" OPTFLAGS=-O0 GCOV_FLAGS="-fprofile-arcs -ftest-coverage")
|
|
|
|
check-coverage-lock-tree-tests:
|
|
|
|
(cd src/lock_tree/tests; $(MAKE) clean; $(MAKE) -k check.lin VGRIND="" OPTFLAGS=-O0 GCOV_FLAGS="-fprofile-arcs -ftest-coverage")
|