diff options
author | Bad Diode <bd@badd10de.dev> | 2021-11-01 14:30:30 +0100 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-11-01 14:30:30 +0100 |
commit | 7418a5042471a3a7f05283d36e45b6b422d9785b (patch) | |
tree | 1a041c75f8c30c0ef9adf0d14bf046344b06dc60 /Makefile | |
parent | e64cb7e315961d3f7772b42c2170acc2bd500a69 (diff) | |
download | bdl-7418a5042471a3a7f05283d36e45b6b422d9785b.tar.gz bdl-7418a5042471a3a7f05283d36e45b6b422d9785b.zip |
Add x86_64 compilation for arithmetic expressionsv0.10
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 | ||
55 | run: $(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. |
56 | clean: | 62 | clean: |
57 | rm -rf $(BUILD_DIR) | 63 | rm -rf $(BUILD_DIR) |