2004-06-24 21:10:31 +00:00
|
|
|
EXTRA_DIST = reconf
|
2007-06-25 15:47:28 +00:00
|
|
|
SUBDIRS = stasis src test utilities benchmarks examples
|
2006-11-11 00:36:48 +00:00
|
|
|
export GLOBAL_CFLAGS = -g -Wall -pedantic -std=gnu99 -DPBL_COMPAT
|
2007-06-25 15:47:28 +00:00
|
|
|
|
2008-11-07 03:44:41 +00:00
|
|
|
nobase_include_HEADERS=stasis/rw.h # XXX move rw.h into stasis/ !!!
|
2007-06-25 15:47:28 +00:00
|
|
|
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2006-06-13 22:48:50 +00:00
|
|
|
## GOAL: Make these not warn!
|
2006-11-11 00:36:48 +00:00
|
|
|
#-Wextra -Wno-unused-parameter -Winline
|
2006-06-13 22:48:50 +00:00
|
|
|
|
|
|
|
# -feliminate-unused-debug-symbols -feliminate-unused-debug-types -funit-at-a-time -finline-functions -fno-keep-static-consts
|
|
|
|
|
|
|
|
#-funit-at-a-time => -finline-functions-called-once
|
|
|
|
#-Wconversion
|
2004-06-24 21:10:31 +00:00
|
|
|
|
2009-05-13 19:37:57 +00:00
|
|
|
doc/Doxyfile: doc/Doxyfile.in
|
|
|
|
./doc/gen_doxyfile.pl < $< > $@
|
|
|
|
docs: doc/Doxyfile
|
|
|
|
doxygen doc/Doxyfile
|
2004-06-24 21:10:31 +00:00
|
|
|
|
2007-03-13 06:52:10 +00:00
|
|
|
tidy: precoverage
|
2007-03-05 23:50:06 +00:00
|
|
|
find . -name '*~' -exec rm '{}' \;
|
|
|
|
find . -name 'core' -exec rm '{}' \;
|
|
|
|
find . -name 'core.[0-9]*' -exec rm '{}' \;
|
|
|
|
find . -name 'vgcore.*' -exec rm '{}' \;
|
|
|
|
find . -name '.\#*' -exec rm '{}' \;
|
2007-03-13 06:52:10 +00:00
|
|
|
find . -name '*.da' -exec rm '{}' \;
|
|
|
|
find . -name '*.gcda' -exec rm '{}' \;
|
|
|
|
find . -name '*.gcno' -exec rm '{}' \;
|
2009-05-13 19:37:57 +00:00
|
|
|
rm -f doc/Doxyfile
|
2007-03-05 23:50:06 +00:00
|
|
|
|
2004-10-04 05:24:12 +00:00
|
|
|
precoverage :
|
|
|
|
find . -name '*.bb' | xargs rm -f
|
|
|
|
find . -name '*.bbg' | xargs rm -f
|
|
|
|
find . -name '*.da' | xargs rm -f
|
2006-10-06 23:46:53 +00:00
|
|
|
rm -rf doc/coverage
|
2004-10-04 05:24:12 +00:00
|
|
|
|
2008-03-03 06:12:01 +00:00
|
|
|
coverage: precoverage
|
2004-10-04 05:24:12 +00:00
|
|
|
echo '(make profile requires CFLAGS="-fprofile-arcs -ftest-coverage -pg -O0")'
|
2008-03-03 06:12:01 +00:00
|
|
|
# cd test/lladd
|
|
|
|
# make check || true
|
|
|
|
rm -rf coverage
|
|
|
|
mkdir coverage
|
2008-03-03 06:13:39 +00:00
|
|
|
cp /home/sears/cron_stuff/CMakeCache.txt coverage
|
2008-03-03 06:12:01 +00:00
|
|
|
cd coverage ; pwd
|
|
|
|
cd coverage ; cmake ..
|
|
|
|
cd coverage ; mv DartConfiguration.tcl DartConfiguration.tcl~
|
|
|
|
cd coverage ; perl -ne 's/TimeOut\: 1500/TimeOut\: 3600/;print' < DartConfiguration.tcl~ > DartConfiguration.tcl
|
|
|
|
cd coverage ; make -j 4
|
|
|
|
cd coverage ; ctest || true
|
2008-11-13 20:15:03 +00:00
|
|
|
cd coverage ; lcov -c --directory src/stasis/ --directory test/ --directory src/apps/referential/ > tmp.info || true
|
2008-03-03 06:12:01 +00:00
|
|
|
cd coverage ; genhtml -o ../doc/coverage tmp.info || true
|
|
|
|
cd coverage ; rm tmp.info
|
|
|
|
# cd ../..
|
|
|
|
# lcov -c --directory src/libdfa/ --directory src/lladd/ --directory test/ > tmp.info
|
|
|
|
## lcov -c --directory . > tmp.info
|
|
|
|
# genhtml -o doc/coverage tmp.info
|
|
|
|
# rm tmp.info
|
2004-10-04 05:24:12 +00:00
|
|
|
|
2004-10-06 06:08:09 +00:00
|
|
|
.PHONY: docs precoverage coverage
|