Added flags to language specifiction. Added optional expect string to language specification. Added some exaple grammars for testing and demos
This commit is contained in:
9
Makefile
9
Makefile
@@ -1,13 +1,18 @@
|
||||
CC = gcc
|
||||
CFLAGS = -ansi -pedantic -Wall -Werror -g
|
||||
CFLAGS = -ansi -pedantic -Wall -Wno-overlength-strings -Werror -g
|
||||
|
||||
TESTS = $(wildcard tests/*.c)
|
||||
EXAMPLES = $(wildcard examples/*.c)
|
||||
EXAMPLESEXE = $(EXAMPLES:.c=)
|
||||
|
||||
all: check
|
||||
all: $(EXAMPLESEXE) check
|
||||
|
||||
check: $(TESTS) mpc.c
|
||||
$(CC) $(CFLAGS) $^ -lm -o test
|
||||
./test
|
||||
|
||||
examples/%: examples/%.c mpc.c
|
||||
$(CC) $(CFLAGS) $^ -lm -o $@
|
||||
|
||||
clean:
|
||||
rm test
|
||||
|
Reference in New Issue
Block a user