Skip to content

Commit 13d59b2

Browse files
author
Stefan Reinauer
committed
add coverage examples to Makefile
git-svn-id: svn://coreboot.org/openbios/fcode-utils@89 f158a5a8-5612-0410-a976-696ce0be7e32
1 parent b3cd2c8 commit 13d59b2

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

toke/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,15 @@ PROGRAM = toke
2727
CC = gcc
2828
STRIP = strip
2929
INCLUDES = -I../shared
30+
31+
# No coverage:
3032
#CFLAGS = -O2 -g -Wall
3133
CFLAGS = -Os -Wall -Wno-pointer-sign -DSYS_IS_GNU_Linux
32-
LDFLAGS =
34+
LDFLAGS =
35+
36+
# Coverage:
37+
#CFLAGS = -O2 -fprofile-arcs -ftest-coverage -Wall -Wno-pointer-sign -DSYS_IS_GNU_Linux
38+
#LDFLAGS = -lgcov
3339

3440
OBJS = clflags.o conditl.o devnode.o dictionary.o emit.o errhandler.o \
3541
flowcontrol.o macros.o nextfcode.o parselocals.o scanner.o stack.o \

0 commit comments

Comments
 (0)