summaryrefslogtreecommitdiff
path: root/ACE/bin/MakeProjectCreator/templates/gnu.mpd
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/bin/MakeProjectCreator/templates/gnu.mpd')
-rw-r--r--ACE/bin/MakeProjectCreator/templates/gnu.mpd41
1 files changed, 41 insertions, 0 deletions
diff --git a/ACE/bin/MakeProjectCreator/templates/gnu.mpd b/ACE/bin/MakeProjectCreator/templates/gnu.mpd
index 6a66e2993a8..33d6bfd2e3c 100644
--- a/ACE/bin/MakeProjectCreator/templates/gnu.mpd
+++ b/ACE/bin/MakeProjectCreator/templates/gnu.mpd
@@ -13,6 +13,19 @@
<%marker(top)%>
MAKEFILE = <%project_file%>
DEPENDENCY_FILE = .depend.<%project_name%>
+<%if(idl_files)%>
+
+<%if(contains(idlflags,-DGEN_IDL_MAKE_DEPS))%>
+<%foreach(idl_files)%>
+IDL_DEPENDENCY_FILE<%forcount%> = .depend.<%project_name%>_Idl<%forcount%>
+<%endfor%>
+
+IDL_DEPENDENCY_FILES += \
+<%foreach(idl_files)%>
+ .depend.<%project_name%>_Idl<%forcount%><%fornotlast(" \\")%>
+<%endfor%>
+<%endif%>
+<%endif%>
<%if(exename)%>
BIN_UNCHECKED = <%exename%>
<%endif%>
@@ -68,6 +81,16 @@ FILES = \
<%endfor%>
<%endif%>
+<%if(idl_files)%>
+<%if(contains(idlflags,-DGEN_IDL_MAKE_DEPS))%>
+<%foreach(idl_files)%>
+IDL_DEPS_FLAGS<%forcount%> = <%if(flag_overrides(idl_file, commandflags))%><%flag_overrides(idl_file, commandflags)%><%else%><%idlflags%><%endif%>
+IDL_DEPS<%forcount%> = <%idl_file%>
+
+<%endfor%>
+<%endif%>
+
+<%endif%>
<%vpath%>
#----------------------------------------------------------------------------
# Include macros and targets
@@ -683,6 +706,24 @@ $(VBIN): $(addprefix $(VDIR), $(OBJS)) $(DEPLIBS)
endif
<%endif%>
+<%if(idl_files)%>
+<%if(contains(idlflags,-DGEN_IDL_MAKE_DEPS))%>
+incremental_depend_idl::
+<%foreach(idl_files)%>
+ @$(RM) $(IDL_DEPENDENCY_FILE<%forcount%>)_idl.old
+ @cp $(IDL_DEPENDENCY_FILE<%forcount%>) $(IDL_DEPENDENCY_FILE<%forcount%>)_idl.old
+ $(DEPGEN_ENV) $(DEPGEN) -A $(DEPEND_CMD_ARGS) -f $(IDL_DEPENDENCY_FILE<%forcount%>) \
+ $(IDL_DEPS_FLAGS<%forcount%>) -t gnuidl -DMAKEDEPEND $(IDL_DEPS<%forcount%>)
+ @if cmp -s $(IDL_DEPENDENCY_FILE<%forcount%>) $(IDL_DEPENDENCY_FILE<%forcount%>)_idl.old ;\
+ then echo "GNUmakefile idl dependencies unchanged for $(IDL_DEPS<%forcount%>)." ;\
+ else \
+ echo "GNUmakefile idl dependencies updated for $(IDL_DEPS<%forcount%>)." ;\
+ fi ;\
+ $(RM) $(IDL_DEPENDENCY_FILE<%forcount%>)_idl.old ;
+<%endfor%>
+<%endif%>
+<%endif%>
+
realclean: clean
ifneq ($(GENERATED_DIRTY),)
-$(RM) -r $(GENERATED_DIRTY)