summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDizzyEggg <jajkodizzy@wp.pl>2019-01-13 20:51:05 +0100
committerDizzyEggg <jajkodizzy@wp.pl>2019-01-13 20:51:05 +0100
commit4b420643dc33d93ec38ebaa3f4068c1766491c06 (patch)
tree0b2cf61da41be02a78758147159250e242cca4a3 /Makefile
parentedddd847c585b729fbec96194e5e2d891149f27e (diff)
parente13895e58ab38c8adbde1e572068692e8ee5ee35 (diff)
Merge branch 'master' into trainer_hill
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8f632008b..32cc9df73 100644
--- a/Makefile
+++ b/Makefile
@@ -141,6 +141,10 @@ else
$(C_BUILDDIR)/%.o: c_dep = $(shell $(SCANINC) -I 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