Skip to content

Commit b77b8dd

Browse files
author
Stefan Reinauer
committed
clean up build system
git-svn-id: svn://coreboot.org/openbios/fcode-utils@98 f158a5a8-5612-0410-a976-696ce0be7e32
1 parent 2d06e2b commit b77b8dd

File tree

6 files changed

+23
-10
lines changed

6 files changed

+23
-10
lines changed

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ distclean: clean
4242
make -C detok distclean
4343
make -C romheaders distclean
4444
make -C testsuite distclean
45+
find . -name "*.gcda" -exec rm -f \{\} \;
46+
find . -name "*.gcno" -exec rm -f \{\} \;
4547

4648
tests: all
4749
cp toke/toke testsuite

detok/Makefile

+11-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,19 @@ PROGRAM = detok
2727
CC = gcc
2828
STRIP = strip
2929
INCLUDES = -I../shared
30-
#CFLAGS = -O2 -g -Wall
31-
CFLAGS = -Os -Wall -Wno-pointer-sign
30+
31+
# Normal Flags:
32+
CFLAGS = -O2 -Wall -Wno-pointer-sign
3233
LDFLAGS =
3334

35+
# Coverage:
36+
#CFLAGS := $(CFLAGS) -fprofile-arcs -ftest-coverage
37+
#LDFLAGS := $(LDFLAGS) -lgcov
38+
39+
# Debugging:
40+
#CFLAGS := $(CFLAGS) -g
41+
42+
3443
OBJS = addfcodes.o decode.o detok.o dictionary.o pcihdr.o printformats.o \
3544
stream.o ../shared/classcodes.o
3645

testsuite/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ all:
44

55

66
clean:
7-
find . -name "*.DeTok" -exec rm -f \{\} \;
8-
find . -name "*.Log" -a ! -name "*..OldTkzr.Log" -exec rm -f \{\} \;
9-
find . -name "*.fc" -exec rm -f \{\} \;
7+
find . -name "*.DeTok" -a ! -name "*.OldTkzr.DeTok" -exec rm -f \{\} \;
8+
find . -name "*.Log" -a ! -name "*.OldTkzr.Log" -exec rm -f \{\} \;
9+
find . -name "*.fc" -a ! -name "*.OldTkzr.fc" -exec rm -f \{\} \;
1010
find . -name "*.fl" -exec rm -f \{\} \;
1111
find . -name "*.RomHdr" -exec rm -f \{\} \;
1212
find . -name "*.P" -exec rm -f \{\} \;

testsuite/TokMisc/OneBeer.fc

Whitespace-only changes.

testsuite/TokeCommon/OneBeer.fl

Whitespace-only changes.

toke/Makefile

+7-5
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,16 @@ CC = gcc
2828
STRIP = strip
2929
INCLUDES = -I../shared
3030

31-
# No coverage:
32-
#CFLAGS = -O2 -g -Wall
33-
CFLAGS = -Os -Wall -Wno-pointer-sign -fno-strict-aliasing -DSYS_IS_GNU_Linux
31+
# Normal flags
32+
CFLAGS = -O2 -Wall -Wno-pointer-sign -fno-strict-aliasing -DSYS_IS_GNU_Linux
3433
LDFLAGS =
3534

3635
# Coverage:
37-
#CFLAGS = -O2 -fprofile-arcs -ftest-coverage -Wall -Wno-pointer-sign -DSYS_IS_GNU_Linux
38-
#LDFLAGS = -lgcov
36+
#CFLAGS := $(CFLAGS) -fprofile-arcs -ftest-coverage
37+
#LDFLAGS := $(LDFLAGS) -lgcov
38+
39+
# Debugging:
40+
# CFLAGS := $(CFLAGS) -g
3941

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

0 commit comments

Comments
 (0)