diff options
[IPL/T] Finished grammar and makefile compilation
1 files changed, 4 insertions, 4 deletions
| -rw-r--r-- | Year 2/Implementation of Programming Languages/Transpiler/Makefile | 8 |
diff --git a/Year 2/Implementation of Programming Languages/Transpiler/Makefile b/Year 2/Implementation of Programming Languages/Transpiler/Makefile index 52c45ab..ad1bdf9 100644 --- a/Year 2/Implementation of Programming Languages/Transpiler/Makefile +++ b/Year 2/Implementation of Programming Languages/Transpiler/Makefile @@ -1,9 +1,9 @@ CC=gcc -CFLAGS= +CFLAGS=-lfl CXX=g++ CXXFLAGS= LEX=flex -YACC=bison +YACC=bison -t -d .PHONY: all all: build-frontend run-frontend build-transpiler run-transpiler @@ -18,11 +18,11 @@ build-lexer: .PHONY: build-parser build-parser: - cd frontend && $(YACC) commonlisp2transpilerstr.y && mkdir -p ../build/ && mv commonlisp2transpilerstr.tab.c ../build/ + cd frontend && $(YACC) commonlisp2transpilerstr.y && mkdir -p ../build/ && mv commonlisp2transpilerstr.tab.* ../build/ .PHONY: run-frontend run-frontend: - cd build/ && frontend.out < ../src.cl >> CLtree.h + cd build/ && ./frontend.out < ../src.cl >> CLTree.h .PHONY: build-transpiler build-transpiler: |
