Lemon

Check-in [aa42b57175]
Login

Check-in [aa42b57175]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added options for compiling lemon with support for gcov.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: aa42b57175bc1e108a09a6785a83d1998b04a63a
User & Date: wolf 2009-07-27 09:55:27.000
Context
2009-08-17
21:51
Added some more tests for Lemon. check-in: cfa5649a47 user: wolf tags: trunk
2009-07-27
09:55
Added options for compiling lemon with support for gcov. check-in: aa42b57175 user: wolf tags: trunk
2009-07-07
22:08
Importet the current lempar.c from SQLite. Added an include statement for assert to lempar.c. Edited main.mk to delete all grammar files in build directory. check-in: 425d9991f0 user: wolf tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to Makefile.linux.
1
2
3
4
5


6
7


8
9
10
11
12
13
# Point this to the toplevel directory of lemon
TOP=../lemon

CC=gcc -c
CFLAGS= -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion -g


LD=gcc
LDFLAGS= -g



# This is the template file wich lemon will use for its
# LALR-Parser
LRPARSERTEMPLATE=lempar.c

include $(TOP)/main.mk





>
>


>
>






1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Point this to the toplevel directory of lemon
TOP=../lemon

CC=gcc -c
CFLAGS= -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion -g
#Uncomment the following CFLAGS for using gcov
#CFLAGS+=-fprofile-arcs -ftest-coverage
LD=gcc
LDFLAGS= -g
#Uncomment the following LDFLAGS for using gcov
LDFLAGS+=-fprofile-arcs

# This is the template file wich lemon will use for its
# LALR-Parser
LRPARSERTEMPLATE=lempar.c

include $(TOP)/main.mk
Changes to main.mk.
71
72
73
74
75
76
77




78
79
	rm -f *.out
	rm -f *.c 
	rm -f *.h
	rm -f *.y
	rm -f lemon
	rm -f argscanner
	rm -f $(LRPARSERTEMPLATE)





.PHONY: clean grammar.y







>
>
>
>


71
72
73
74
75
76
77
78
79
80
81
82
83
	rm -f *.out
	rm -f *.c 
	rm -f *.h
	rm -f *.y
	rm -f lemon
	rm -f argscanner
	rm -f $(LRPARSERTEMPLATE)
# Remove files generated from gconv
	rm -f *.gcov
	rm -f *.gcda
	rm -f *.gcno

.PHONY: clean grammar.y