From cadaaffccea724584172b8a7d76aa895b307a3fa Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Fri, 14 Sep 2007 23:07:28 +0000 Subject: [PATCH] * Split off DEPEND_CFLAGS so -MMD isn't used when doing library checks --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 68f4e78e..417c16bf 100644 --- a/Makefile +++ b/Makefile @@ -713,7 +713,9 @@ ifeq ($(USE_LOCAL_HEADERS),1) endif ifeq ($(GENERATE_DEPENDENCIES),1) - BASE_CFLAGS += -MMD + DEPEND_CFLAGS = -MMD +else + DEPEND_CFLAGS = endif ifeq ($(USE_SVN),1) @@ -783,10 +785,12 @@ default: release all: debug release debug: - @$(MAKE) targets B=$(BD) CFLAGS="$(CFLAGS) $(DEBUG_CFLAGS)" V=$(V) + @$(MAKE) targets B=$(BD) CFLAGS="$(CFLAGS) $(DEPEND_CFLAGS) \ + $(DEBUG_CFLAGS)" V=$(V) release: - @$(MAKE) targets B=$(BR) CFLAGS="$(CFLAGS) $(RELEASE_CFLAGS)" V=$(V) + @$(MAKE) targets B=$(BR) CFLAGS="$(CFLAGS) $(DEPEND_CFLAGS) \ + $(RELEASE_CFLAGS)" V=$(V) # Create the build directories, check libraries and print out # an informational message, then start building