diff options
author | Seth Barberee <seth.barberee@gmail.com> | 2021-03-03 16:41:50 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-03 16:41:50 -0800 |
commit | 897290a93e1dd13c10e4494169b5be37590803e8 (patch) | |
tree | f76fb84024814f5606df5d4e9597e7d4c14e583f | |
parent | 12c7dab2194f707daf51a9da13b0b38e2f856a04 (diff) |
Add -DINFO
Popped up in discord channel so adding it here
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |