comparison 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
comparison
equal deleted inserted replaced
206:e5302c2f6e00 207:58d3c01bf421
12 $(CC) $(CFLAGS) -c $< -o $@ 12 $(CC) $(CFLAGS) -c $< -o $@
13 13
14 all: $(TARGET) 14 all: $(TARGET)
15 15
16 $(TARGET):$(OBJS) 16 $(TARGET):$(OBJS)
17 $(CC) -o $@ $(OBJS) 17 $(CC) $(CFLAGS) -o $@ $(OBJS)
18 18
19 test/searchBit: test/searchBit.cc 19 test/searchBit: test/searchBit.cc
20 $(CC) -I. $< bitVector.cc -o $@ 20 $(CC) $(CFLAGS) -I. $< bitVector.cc -o $@
21 21
22 test/ccMerge: test/ccMerge.cc 22 test/ccMerge: test/ccMerge.cc
23 $(CC) -I. $< subsetConstraction.cc regexParser.cc node.cc error.cc bitVector.cc -o $@ 23 $(CC) $(CFLAGS) -I. $< subsetConstraction.cc regexParser.cc node.cc error.cc bitVector.cc -o $@
24
25 gcov:
26 make CFLAGS="-Wall -O0 -g -coverage"
27 make test1
28 make merge_test
29 gcov *.gcda
24 30
25 clean: 31 clean:
26 rm -f $(TARGET) $(OBJS) 32 rm -f $(TARGET) $(OBJS)
27 rm -f *~ \#* 33 rm -f *~ \#* *.gcda *.gcno *.gcov
28 34
29 .SUFFIXES: .cc .o 35 .SUFFIXES: .cc .o
30 36
31 test1: 37 test1:
32 ./$(TARGET) -regex 'a' 38 ./$(TARGET) -regex 'a'