diff options
author | Bad Diode <bd@badd10de.dev> | 2021-12-22 16:30:23 +0100 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-12-22 16:30:23 +0100 |
commit | 7963d9ab628d03c5004f32899aa6b21663a78007 (patch) | |
tree | 5c04bc7fe6c93823372f3468498575c641baf3a2 /Makefile | |
parent | 9c5fb457fe6063b7545515397aa45cecb7af66bf (diff) | |
download | bdl-7963d9ab628d03c5004f32899aa6b21663a78007.tar.gz bdl-7963d9ab628d03c5004f32899aa6b21663a78007.zip |
Start refactoring of compiler to stack-ir
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -20,7 +20,7 @@ CFLAGS += $(INC_FLAGS) | |||
20 | NASM_FLAGS ?= -felf64 | 20 | NASM_FLAGS ?= -felf64 |
21 | LDFLAGS := | 21 | LDFLAGS := |
22 | LDLIBS := | 22 | LDLIBS := |
23 | RELEASE_CFLAGS := -DNDEBUG -O2 -static | 23 | RELEASE_CFLAGS := -DNDEBUG -O2 |
24 | DEBUG_CFLAGS := -DDEBUG -O0 -g | 24 | DEBUG_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 | ||
58 | run: $(BIN) | 58 | run: $(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. |
65 | clean: | 62 | clean: |