diff options
| author | Alan Conway <aconway@apache.org> | 2006-10-24 21:13:01 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2006-10-24 21:13:01 +0000 |
| commit | b2b4d120e145687358e3e448678619079798fb77 (patch) | |
| tree | 8aa5a2a7af785516abcdc2c4fae0796dd5e32086 /cpp/options.mk | |
| parent | 6920d8261ca0cdbb7e547a756a32dfd067cd15bc (diff) | |
| download | qpid-python-b2b4d120e145687358e3e448678619079798fb77.tar.gz | |
Makefile support for optimized release build. Do make BUILD=RELEASE.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@467486 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/options.mk')
| -rw-r--r-- | cpp/options.mk | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/cpp/options.mk b/cpp/options.mk index df9e2d62d1..563e232eee 100644 --- a/cpp/options.mk +++ b/cpp/options.mk @@ -23,7 +23,10 @@ EXTRA_LIBDIRS := -L/usr/local/apr/lib ## Compile flags -DEBUG := -ggdb3 -O0 +# Release vs. debug flags, default to debug +DEBUG := -ggdb3 +RELEASE := -O3 -DNDEBUG +BUILD := DEBUG # _USE_APR_IO_ set when APR IO build is desired. DEFINES := -D _USE_APR_IO_ @@ -33,11 +36,12 @@ DEFINES := -D _USE_APR_IO_ # qpid-dev list. # # The following warnings deliberately omitted, they warn on valid code. -# -Wno-unreachable-code -Wpadded +# -Wno-unreachable-code -Wpadded -Winline # -WARN := -Werror -pedantic -Wall -Wextra -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch -Winline +WARN := -Werror -pedantic -Wall -Wextra -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch + INCLUDES := -Isrc -Igen $(EXTRA_INCLUDES) -CXXFLAGS := $(DEBUG) $(DEFINES) $(WARN) -MMD -fpic $(INCLUDES) +CXXFLAGS := $($(BUILD)) $(DEFINES) $(WARN) -MMD -fpic $(INCLUDES) ## Link flags # Allow exes to find libs without env changes. Remove for release builds. LDFLAGS := -Llib $(EXTRA_LIBDIRS) |
