summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2021-03-03 16:41:50 -0800
committerGitHub <noreply@github.com>2021-03-03 16:41:50 -0800
commit897290a93e1dd13c10e4494169b5be37590803e8 (patch)
treef76fb84024814f5606df5d4e9597e7d4c14e583f
parent12c7dab2194f707daf51a9da13b0b38e2f856a04 (diff)
Add -DINFO
Popped up in discord channel so adding it here
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 37241192a..51877e9b9 100644
--- a/Makefile
+++ b/Makefile
@@ -240,6 +240,10 @@ else
$(C_BUILDDIR)/%.o: c_dep = $(shell [[ -f $(C_SUBDIR)/$*.c ]] && $(SCANINC) -I include -I tools/agbcc/include $(C_SUBDIR)/$*.c)
endif
+ifeq ($(DINFO),1)
+override CFLAGS += -g
+endif
+
$(C_BUILDDIR)/%.o : $(C_SUBDIR)/%.c $$(c_dep)
@$(CPP) $(CPPFLAGS) $< -o $(C_BUILDDIR)/$*.i
@$(PREPROC) $(C_BUILDDIR)/$*.i charmap.txt | $(CC1) $(CFLAGS) -o $(C_BUILDDIR)/$*.s