From e73a4c16a2269cdb2f5e7d66fb9839e4c44e14de Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Fri, 29 Oct 2021 15:37:28 +0200 Subject: Prepare third compiler implementation --- Makefile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2aed0fb..b1d8597 100755 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ .SUFFIXES: # Source code location and files to watch for changes. -SRC_DIR := src/bytecode +SRC_DIR := src BUILD_DIR := build SRC_MAIN := $(SRC_DIR)/main.c WATCH_SRC := $(shell find $(SRC_DIR) -name "*.c" -or -name "*.s" -or -name "*.h") @@ -22,7 +22,7 @@ LDLIBS := RELEASE_CFLAGS := -DNDEBUG -O2 -static DEBUG_CFLAGS := -DDEBUG -O0 -g -.PHONY: build tests run clean +.PHONY: build tests clean # Setup debug/release builds. # make clean && make DEBUG=0 @@ -45,15 +45,12 @@ $(BIN): $(SRC_MAIN) $(WATCH_SRC) $(BUILD_DIR) $(BUILD_DIR): mkdir -p $(BUILD_DIR) -run: $(BIN) - ./$(BIN) -i - tests: $(BIN) - ./$(BIN) examples/arithmetic.bdl | diff tests/arithmetic_expected.txt - - ./$(BIN) examples/booleans.bdl | diff tests/booleans_expected.txt - + # ./$(BIN) examples/arithmetic.bdl | diff tests/arithmetic_expected.txt - + # ./$(BIN) examples/booleans.bdl | diff tests/booleans_expected.txt - # ./$(BIN) examples/lists.bdl | diff tests/lists_expected.txt - # ./$(BIN) examples/types.bdl | diff tests/types_expected.txt - - ./$(BIN) examples/variables.bdl | diff tests/variables_expected.txt - + # ./$(BIN) examples/variables.bdl | diff tests/variables_expected.txt - # Remove build directory. clean: -- cgit v1.2.1