-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (15 loc) · 705 Bytes
/
Makefile
File metadata and controls
19 lines (15 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CC = clang++
CFLAGS = -shared -fpic -lpthread
.PHONY: all clean
all: compileRuntime $(arg)
@echo "\033[1m\033[92m------------------------ Compiler ------------------------- \033[0m"
@python3 main.py $(arg)
@echo "\033[1m\033[92m------------------------ Linker ------------------------- \033[0m"
$(CC) ./build/output.o ./build/runtime.so -o ./build/executable.exe
@echo "\033[1m\033[92m------------------------ Go! ----------------------------- \033[0m"
@./build/executable.exe
compileRuntime:
@echo "\033[1m\033[92m------------------------ Compiling Runtime ------------------------- \033[0m"
$(CC) $(CFLAGS) runtime.cpp -o ./build/runtime.so
clean:
find './build' -type f -exec rm {} \;