summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorentrpntr <entrpntr@gmail.com>2020-05-03 03:33:22 -0400
committerentrpntr <entrpntr@gmail.com>2020-05-03 04:41:05 -0400
commit3d651a7c49317e9c2b55bffcb589bf2e1e2b4ccd (patch)
tree9fb82a85f77b36b0cfe6b530747a831cf1e647a1 /Makefile
parenta594f5e55749adf6c55b981b1d570e1df65a1879 (diff)
Add Makefile option for verbose sym/map; fix some label names.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fb1e67e8..0fe2decb 100644
--- a/Makefile
+++ b/Makefile
@@ -67,6 +67,11 @@ tools:
RGBASMFLAGS = -L -Weverything
+# Create a sym/map for debug purposes if `make` run with `DEBUG=1`
+ifeq ($(DEBUG),1)
+RGBASMFLAGS += -E
+endif
+
$(gold_obj): RGBASMFLAGS += -D _GOLD
$(silver_obj): RGBASMFLAGS += -D _SILVER