Commit 13d59b2b17a2a507919b5bf247ac7570c4c4dc08

Stefan Reinauer 2006-10-14T20:18:07

add coverage examples to Makefile git-svn-id: svn://coreboot.org/openbios/fcode-utils@89 f158a5a8-5612-0410-a976-696ce0be7e32

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/toke/Makefile b/toke/Makefile
index 0411b92..ad5b680 100644
--- a/toke/Makefile
+++ b/toke/Makefile
@@ -27,9 +27,15 @@ PROGRAM = toke
 CC      = gcc
 STRIP	= strip
 INCLUDES = -I../shared
+
+# No coverage:
 #CFLAGS  = -O2 -g -Wall 
 CFLAGS  = -Os -Wall -Wno-pointer-sign -DSYS_IS_GNU_Linux
-LDFLAGS = 
+LDFLAGS =
+
+# Coverage:
+#CFLAGS  = -O2 -fprofile-arcs -ftest-coverage -Wall -Wno-pointer-sign -DSYS_IS_GNU_Linux
+#LDFLAGS = -lgcov
 
 OBJS  = clflags.o conditl.o devnode.o dictionary.o emit.o errhandler.o     \
         flowcontrol.o macros.o nextfcode.o parselocals.o scanner.o stack.o \