added build goal to makefile
This commit is contained in:
parent
c1c5fba762
commit
d48b6c3c77
|
@ -1,3 +1,4 @@
|
||||||
|
build/
|
||||||
flex_lexer.c*
|
flex_lexer.c*
|
||||||
flex_lexer.h
|
flex_lexer.h
|
||||||
bison_parser.c*
|
bison_parser.c*
|
||||||
|
|
14
src/Makefile
14
src/Makefile
|
@ -16,17 +16,27 @@ CC = g++
|
||||||
CFLAGS = -g -O3 -Ilib/ -I./ -I$(PARSER)/ -std=c++11 -pthread
|
CFLAGS = -g -O3 -Ilib/ -I./ -I$(PARSER)/ -std=c++11 -pthread
|
||||||
|
|
||||||
|
|
||||||
tests: $(LIB_FILES) $(TESTS_MAIN)
|
# release build is always using bison
|
||||||
$(CC) $(CFLAGS) $(LIB_FILES) $(TESTS_MAIN) -o $(TESTS_BIN)
|
build: clean
|
||||||
|
make -C bison
|
||||||
|
mkdir build/
|
||||||
|
cp lib/* build/
|
||||||
|
cp bison/*.h build/
|
||||||
|
cp bison/*.cpp build/
|
||||||
|
|
||||||
|
|
||||||
execution: $(LIB_FILES) $(EXECUTION_MAIN)
|
execution: $(LIB_FILES) $(EXECUTION_MAIN)
|
||||||
$(CC) $(CFLAGS) $(LIB_FILES) $(EXECUTION_MAIN) -o $(EXECUTION_BIN)
|
$(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:
|
bison/bison_parser.cpp:
|
||||||
make -C bison/
|
make -C bison/
|
||||||
|
|
||||||
|
|
||||||
lemon/lemon_parser.cpp:
|
lemon/lemon_parser.cpp:
|
||||||
make -C lemon/
|
make -C lemon/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue