diff options
Diffstat (limited to 'impl/Makefile')
-rw-r--r-- | impl/Makefile | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/impl/Makefile b/impl/Makefile index 05e4a83..7df94a0 100644 --- a/impl/Makefile +++ b/impl/Makefile @@ -1,9 +1,21 @@ -CC=g++ +CC=gcc +CPP=g++ BUILD=build/ -FLAGS=-Wall -Werror -g +FLAGS=-Wall -Werror -g -lantlr3c -all: build-dir - $(CC) main.cpp $(FLAGS) -o $(BUILD)/main +all: main + +main: build-dir grammar + $(CPP) main.cpp *.o -o $(BUILD)/main $(FLAGS) + +grammar: build-dir + java -jar antlr/antlr-3.4-complete.jar EquationSystem.g + $(CC) *.c -c -lantrl3c build-dir: mkdir -p $(BUILD) + +clean: + rm -rf $(BUILD) + rm *.o *.c *.h *.tokens + # antlr o, c, h and tokens files |