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