aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-12-22 16:30:23 +0100
committerBad Diode <bd@badd10de.dev>2021-12-22 16:30:23 +0100
commit7963d9ab628d03c5004f32899aa6b21663a78007 (patch)
tree5c04bc7fe6c93823372f3468498575c641baf3a2 /Makefile
parent9c5fb457fe6063b7545515397aa45cecb7af66bf (diff)
downloadbdl-7963d9ab628d03c5004f32899aa6b21663a78007.tar.gz
bdl-7963d9ab628d03c5004f32899aa6b21663a78007.zip
Start refactoring of compiler to stack-ir
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index cdb8c93..4e31a67 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ CFLAGS += $(INC_FLAGS)
20NASM_FLAGS ?= -felf64 20NASM_FLAGS ?= -felf64
21LDFLAGS := 21LDFLAGS :=
22LDLIBS := 22LDLIBS :=
23RELEASE_CFLAGS := -DNDEBUG -O2 -static 23RELEASE_CFLAGS := -DNDEBUG -O2
24DEBUG_CFLAGS := -DDEBUG -O0 -g 24DEBUG_CFLAGS := -DDEBUG -O0 -g
25 25
26.PHONY: build tests clean 26.PHONY: build tests clean
@@ -56,10 +56,7 @@ tests: $(BIN)
56 # ./$(BIN) examples/variables.bdl | diff tests/variables_expected.txt - 56 # ./$(BIN) examples/variables.bdl | diff tests/variables_expected.txt -
57 57
58run: $(BIN) 58run: $(BIN)
59 $(BIN) example.bdl > build/example.asm 59 $(BIN) example.bdl
60 nasm $(NASM_FLAGS) build/example.asm -o build/example.o
61 ld build/example.o -o build/example
62 @./build/example
63 60
64# Remove build directory. 61# Remove build directory.
65clean: 62clean: