From 7963d9ab628d03c5004f32899aa6b21663a78007 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Wed, 22 Dec 2021 16:30:23 +0100 Subject: Start refactoring of compiler to stack-ir --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cdb8c93..4e31a67 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ CFLAGS += $(INC_FLAGS) NASM_FLAGS ?= -felf64 LDFLAGS := LDLIBS := -RELEASE_CFLAGS := -DNDEBUG -O2 -static +RELEASE_CFLAGS := -DNDEBUG -O2 DEBUG_CFLAGS := -DDEBUG -O0 -g .PHONY: build tests clean @@ -56,10 +56,7 @@ tests: $(BIN) # ./$(BIN) examples/variables.bdl | diff tests/variables_expected.txt - run: $(BIN) - $(BIN) example.bdl > build/example.asm - nasm $(NASM_FLAGS) build/example.asm -o build/example.o - ld build/example.o -o build/example - @./build/example + $(BIN) example.bdl # Remove build directory. clean: -- cgit v1.2.1