From 897290a93e1dd13c10e4494169b5be37590803e8 Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Wed, 3 Mar 2021 16:41:50 -0800 Subject: [PATCH] Add -DINFO Popped up in discord channel so adding it here --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) 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