summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-22 02:51:53 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-22 02:51:53 +0000
commitec18abcab3dde03e9b3b2f6b189b92ee6b1ee5fc (patch)
treec8761afa0c49d24255be497699c28d161c0237f3
parent74109ee4305ed57a0137dada1b270a9a5514080c (diff)
downloadATCD-ec18abcab3dde03e9b3b2f6b189b92ee6b1ee5fc.tar.gz
added ACE_HAS_{PURIFY,QUANTIFY} support, and -I support for Purify/Quantify include paths
-rw-r--r--include/makeinclude/wrapper_macros.GNU33
1 files changed, 22 insertions, 11 deletions
diff --git a/include/makeinclude/wrapper_macros.GNU b/include/makeinclude/wrapper_macros.GNU
index e2d019c7b19..54c21312b04 100644
--- a/include/makeinclude/wrapper_macros.GNU
+++ b/include/makeinclude/wrapper_macros.GNU
@@ -25,8 +25,8 @@
# orbix Enable use of Orbix.
# probe Enable ACE_Timeprobes.
# profile Enable profiling; see PCFLAGS and PCCFLAGS.
-# purify Purify all executables.
-# quantify Quantify all executables.
+# purify Purify all executables. purify must be in user's PATH!
+# quantify Quantify all executables. quantify must be in user's PATH!
# repo Use GNU template repository (g++ with repo patches and
# egcs only).
# rtti Enable run-time type identification. On some platforms,
@@ -92,7 +92,9 @@
# PURELINK If set, contains purify executable as well as all options
# PURE_CACHE_BASE_DIR
# The base directory in which Pure products will produce
-# instrumented libraries.
+# instrumented libraries. If you don't want that to be below
+# /tmp, set this variable in your environment or on the make
+# command line.
# PURE_CACHE_DIR
# The full name of the directory in which Pure produces will
# produce instrumented libraries.
@@ -350,15 +352,19 @@ PURE_CACHE_BASE_DIR = /tmp/purifycache
PURE_CACHE_DIR = $(PURE_CACHE_BASE_DIR)-$(LOGNAME)-$(notdir $(CXX) )
ifdef purify
+ #### Pick up Purify directory from the users PATH.
+ ACE_PURIFY_DIR := \
+ $(shell type purify | sed -e 's/.* is //' -e 's%/purify$$%%')
+
#### You might want to adjust the Purify options below.
#### -best-effort is undocumented but supported, and seems
#### to help avoid occasional link failure.
#### SIGINT is used by the ACE Thread_Manager_Test.
- PURELINK += purify -best-effort -chain-length=20 \
- -cache-dir=$(PURE_CACHE_DIR) \
- -fds-inuse-at-exit=no -ignore-signals=SIGINT -inuse-at-exit \
- -max_threads=100
- CFLAGS += -DACE_PURIFY
+ PURELINK += purify -best-effort -cache-dir=$(PURE_CACHE_DIR) \
+ -chain-length=20 -fds-inuse-at-exit=no -ignore-signals=SIGINT \
+ -inuse-at-exit -max_threads=100
+ CCFLAGS += -DACE_HAS_PURIFY
+ CPPFLAGS += -I$(ACE_PURIFY_DIR)
endif # purify
ifeq ($(quantify),0)
@@ -366,12 +372,17 @@ ifeq ($(quantify),0)
endif # quantify
ifdef quantify
+ #### Pick up Quantify directory from the users PATH.
+ ACE_QUANTIFY_DIR := \
+ $(shell type quantify | sed -e 's/.* is //' -e 's%/quantify$$%%')
+
#### You might want to adjust the Quantify options below.
#### -best-effort is undocumented but supported, and seems
#### to help avoid occasional link failure.
- PRELINK += quantify -best-effort -max_threads=100 \
- -cache-dir=$(PURE_CACHE_DIR)
- CFLAGS += -DACE_QUANTIFY
+ PRELINK += quantify -best-effort -cache-dir=$(PURE_CACHE_DIR) \
+ -max_threads=100
+ CCFLAGS += -DACE_HAS_QUANTIFY -DACE_QUANTIFY -Dquantify
+ CPPFLAGS += -I$(ACE_QUANTIFY_DIR)
endif # quantify
ifeq ($(repo),0)