added build goal to makefile

This commit is contained in:
Pedro 2014-10-31 18:49:20 +01:00
parent c1c5fba762
commit d48b6c3c77
2 changed files with 13 additions and 2 deletions

1
src/.gitignore vendored
View File

@ -1,3 +1,4 @@
build/
flex_lexer.c*
flex_lexer.h
bison_parser.c*

View File

@ -16,17 +16,27 @@ CC = g++
CFLAGS = -g -O3 -Ilib/ -I./ -I$(PARSER)/ -std=c++11 -pthread
tests: $(LIB_FILES) $(TESTS_MAIN)
$(CC) $(CFLAGS) $(LIB_FILES) $(TESTS_MAIN) -o $(TESTS_BIN)
# release build is always using bison
build: clean
make -C bison
mkdir build/
cp lib/* build/
cp bison/*.h build/
cp bison/*.cpp build/
execution: $(LIB_FILES) $(EXECUTION_MAIN)
$(CC) $(CFLAGS) $(LIB_FILES) $(EXECUTION_MAIN) -o $(EXECUTION_BIN)
tests: $(LIB_FILES) $(TESTS_MAIN)
$(CC) $(CFLAGS) $(LIB_FILES) $(TESTS_MAIN) -o $(TESTS_BIN)
bison/bison_parser.cpp:
make -C bison/
lemon/lemon_parser.cpp:
make -C lemon/