summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>1997-11-22 23:58:17 +0000
committerSteve Huston <shuston@riverace.com>1997-11-22 23:58:17 +0000
commitb150738f91c18a909d37e0c4237773b23f848ac6 (patch)
treeebbbf21f063e631f2041f4367d9fa230b70b8179
parent86290284f53bab6ef5ba6af0590ab9672f6d3e75 (diff)
downloadATCD-b150738f91c18a909d37e0c4237773b23f848ac6.tar.gz
Remove the tempinc directory before compiling each new program on AIX.
-rw-r--r--examples/Threads/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/Threads/Makefile b/examples/Threads/Makefile
index 612b982d5b8..d4b34e4f037 100644
--- a/examples/Threads/Makefile
+++ b/examples/Threads/Makefile
@@ -46,6 +46,13 @@ include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU
include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
+# To build multiple executables in the same directory on AIX, it works
+# best to wipe out any previously-created tempinc directory.
+# The compiler/linker isn't too smart about instantiating templates...
+ifdef TEMPINCDIR
+COMPILE.cc := $(RM) -rf tempinc; $(COMPILE.cc)
+endif
+
#----------------------------------------------------------------------------
# Local targets
#----------------------------------------------------------------------------