From 372d5f63d887531d7ddeb48faf6b9f367b7c16d1 Mon Sep 17 00:00:00 2001 From: Philipp AUER Date: Sun, 6 Jan 2019 14:01:22 +0100 Subject: [PATCH] add debug flag to Makefile --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 8f632008bc..755f8f84ae 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) +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