aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-11-01 14:30:30 +0100
committerBad Diode <bd@badd10de.dev>2021-11-01 14:30:30 +0100
commit7418a5042471a3a7f05283d36e45b6b422d9785b (patch)
tree1a041c75f8c30c0ef9adf0d14bf046344b06dc60 /Makefile
parente64cb7e315961d3f7772b42c2170acc2bd500a69 (diff)
downloadbdl-7418a5042471a3a7f05283d36e45b6b422d9785b.tar.gz
bdl-7418a5042471a3a7f05283d36e45b6b422d9785b.zip
Add x86_64 compilation for arithmetic expressionsv0.10
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b1d8597..581dc1a 100644
--- a/Makefile
+++ b/Makefile
@@ -52,6 +52,12 @@ tests: $(BIN)
52 # ./$(BIN) examples/types.bdl | diff tests/types_expected.txt - 52 # ./$(BIN) examples/types.bdl | diff tests/types_expected.txt -
53 # ./$(BIN) examples/variables.bdl | diff tests/variables_expected.txt - 53 # ./$(BIN) examples/variables.bdl | diff tests/variables_expected.txt -
54 54
55run: $(BIN)
56 $(BIN) example.bdl > build/example.asm
57 nasm -felf64 build/example.asm -o build/example.o
58 ld build/example.o -o build/example
59 @./build/example
60
55# Remove build directory. 61# Remove build directory.
56clean: 62clean:
57 rm -rf $(BUILD_DIR) 63 rm -rf $(BUILD_DIR)