aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 37723c5..0784337 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,8 @@
CC65 ?= cl65
CCOPTS ?= --target nes
+ifeq "$(DEBUG)" "1"
+CCOPTS += -g -Ln out/labels.txt
+endif
QUIET = @echo ' ' CC65 $@;
SOURCES = $(shell find src/ -type f -name '*.s' -printf "%f\n")
@@ -10,6 +13,7 @@ all: clean deps build
.PHONY: clean
clean:
+ @sed -i 's/RUN_TESTS = 1/RUN_TESTS = 0/g' test/defines.s
@rm -rf out
@mkdir out
@find . -type f -name "*.o" -delete
@@ -24,3 +28,7 @@ build: $(ROMS)
out/%.nes: src/%.s
$(QUIET) $(CC65) $(CCOPTS) $< -o $@
+
+.PHONY: test
+test:
+ @bash test/run.sh