summaryrefslogtreecommitdiff
path: root/bin/MakeProjectCreator/templates/gnu.mpd
diff options
context:
space:
mode:
Diffstat (limited to 'bin/MakeProjectCreator/templates/gnu.mpd')
-rw-r--r--bin/MakeProjectCreator/templates/gnu.mpd7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/MakeProjectCreator/templates/gnu.mpd b/bin/MakeProjectCreator/templates/gnu.mpd
index 3f86aba99c5..9a9823ff29d 100644
--- a/bin/MakeProjectCreator/templates/gnu.mpd
+++ b/bin/MakeProjectCreator/templates/gnu.mpd
@@ -324,6 +324,13 @@ include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
include $(TAO_ROOT)/taoconfig.mk
<%endif%>
+# To build multiple executables in the same directory on AIX, it works
+# best to wipe out any previously-created $(TEMPINCDIR) directory.
+# The compiler/linker isn't too smart about instantiating templates...
+ifdef TEMPINCDIR
+ COMPILE.cc := $(RM) -r $(TEMPINCDIR); $(COMPILE.cc)
+endif
+
<%if(includes)%>
CPPFLAGS +=<%foreach(includes)%> -I<%include%><%endfor%>
<%endif%>