diff options
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) |