From 43283025383017343fb20298cf59143b9a0c9baf Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Wed, 2 Apr 2008 08:28:58 +0000 Subject: [PATCH] From: Marc Sandusky Subject: Minor patch submission - verbose build information for development in IDE I am submitting this minor patch that adds verbose build information to the build output when the "VERBOSE" flag is set to "1", rather than the simple output normally seen, by adding the "-v" flag to the CFLAGS variable. This is most useful for those that like to use an IDE (Eclipse in my case) for source browsing and development. The IDE usually will parse the build information, which is currently not available, to determine include file locations, build definitions, etc. and will use that information to provide more advanced navigation features. --- makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/makefile b/makefile index 08a8d42b094..b664c4a1623 100644 --- a/makefile +++ b/makefile @@ -139,6 +139,9 @@ BUILD_ZLIB = 1 # uncomment next line to generate a link map for exception handling in windows # MAP = 1 +# uncomment next line to generate verbose build information +# VERBOSE = 1 + # specify optimization level or leave commented to use the default # (default is OPTIMIZE = 3 normally, or OPTIMIZE = 0 with symbols) # OPTIMIZE = 3 @@ -301,6 +304,11 @@ ifdef SYMBOLS CFLAGS += -g endif +# add -v if we need verbose build information +ifdef VERBOSE +CFLAGS += -v +endif + # add a basic set of warnings CFLAGS += \ -Wall \