Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Implementation of Programming Languages / Transpiler / Makefile
diff options
context:
space:
mode:
Commit2589290a7dc34c5f6d1cfc48ae8c6adf708729f2 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-02-11 15:38:33 +0200
Committer
 Syndamia <kamen@syndamia.com>
2023-02-11 15:38:33 +0200
Files1bc3b5854c926a102e96a6ff698f9439ddc748d5 /Year 2/Implementation of Programming Languages/Transpiler/Makefile
uni-projects-2589290a7dc34c5f6d1cfc48ae8c6adf708729f2.tar
uni-projects-2589290a7dc34c5f6d1cfc48ae8c6adf708729f2.tar.gz
uni-projects-2589290a7dc34c5f6d1cfc48ae8c6adf708729f2.zip
Parenta35a987997415dc8af71a3524ed19fc9bc4896e7 (diff)
[IPL/T] Finished grammar and makefile compilation
1 files changed, 4 insertions, 4 deletions
-rw-r--r--Year 2/Implementation of Programming Languages/Transpiler/Makefile8
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: