Mercurial > hg > Applications > Grep
diff regexParser/Makefile @ 207:58d3c01bf421
test gcov
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 27 Dec 2015 16:51:14 +0900 |
parents | b7b8f0c03fe3 |
children | 2ec95755238e |
line wrap: on
line diff
--- a/regexParser/Makefile Sun Dec 27 16:00:19 2015 +0900 +++ b/regexParser/Makefile Sun Dec 27 16:51:14 2015 +0900 @@ -14,17 +14,23 @@ all: $(TARGET) $(TARGET):$(OBJS) - $(CC) -o $@ $(OBJS) + $(CC) $(CFLAGS) -o $@ $(OBJS) test/searchBit: test/searchBit.cc - $(CC) -I. $< bitVector.cc -o $@ + $(CC) $(CFLAGS) -I. $< bitVector.cc -o $@ test/ccMerge: test/ccMerge.cc - $(CC) -I. $< subsetConstraction.cc regexParser.cc node.cc error.cc bitVector.cc -o $@ + $(CC) $(CFLAGS) -I. $< subsetConstraction.cc regexParser.cc node.cc error.cc bitVector.cc -o $@ + +gcov: + make CFLAGS="-Wall -O0 -g -coverage" + make test1 + make merge_test + gcov *.gcda clean: rm -f $(TARGET) $(OBJS) - rm -f *~ \#* + rm -f *~ \#* *.gcda *.gcno *.gcov .SUFFIXES: .cc .o