summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2004-07-21 21:11:17 +0000
committerSteve Huston <shuston@riverace.com>2004-07-21 21:11:17 +0000
commit5c689e0528a05414aa802dba70e6604ebfc46460 (patch)
tree4c9a3887818217f7cf62db1e5e232ec43b64a05d
parentef69b9c802ff4dc172dfd841c4e82e0a9b62556f (diff)
downloadMPC-5c689e0528a05414aa802dba70e6604ebfc46460.tar.gz
ChangeLogTag:relative ACE_ROOT=/acebuilds/ACE_wrappers-repository -type automake -hierarchy -make_coexistence -exclude build,Kokyu
-rw-r--r--templates/automake.mpd100
1 files changed, 68 insertions, 32 deletions
diff --git a/templates/automake.mpd b/templates/automake.mpd
index 2280ad41..de5d08ca 100644
--- a/templates/automake.mpd
+++ b/templates/automake.mpd
@@ -1,30 +1,61 @@
-#----------------------------------------------------------------------------
-#
-# Process this file with automake to create Makefile.in
-#
# @file <%project_file%>
#
# $Id$
-#
-# This file was automatically generated by MPC. Any changes made directly to
-# this file will be lost the next time it is generated.
-#
-#----------------------------------------------------------------------------
-<%if(includes)%>
-INCLUDES =<%foreach(includes)%> -I<%include%><%endfor%>
+<%if(custom_types)%>
+<%foreach(custom_types)%>
+<%foreach(custom_type->input_files)%>
+<%if(custom_type->input_file->output_files)%>
+BUILT_SOURCES += \
+<%foreach(custom_type->input_file->output_files)%>
+ <%custom_type->input_file->output_file%><%fornotlast(" \\")%>
+<%endfor%>
+
+CLEANFILES += \
+<%foreach(custom_type->input_file->output_files)%>
+ <%custom_type->input_file->output_file%><%fornotlast(" \\")%>
+<%endfor%>
+
+<%foreach(custom_type->input_file->output_files)%><%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>\<%basename(custom_type->input_file->output_file)%><%else%><%custom_type->input_file->output_file%><%endif%><%fornotlast(" ")%><%endfor%>: <%custom_type->input_file%>
+ <%custom_type->command%> <%if(flag_overrides(custom_type->input_file, commandflags))%><%flag_overrides(custom_type->input_file, commandflags)%><%else%><%custom_type->commandflags%><%endif%> $<<%if(custom_type->output_option)%><%custom_type->output_option%> $@<%endif%>
+<%if(custom_type->postcommand)%>
+<%foreach(custom_type->input_file->output_files)%>
+ <%custom_type->postcommand()%>
+<%endfor%>
+<%endif%>
+
+<%endif%>
+<%endfor%>
+<%endfor%>
<%endif%>
<%if(exename)%>
-<%if(install)%>bin_PROGRAMS<%else%>noinst_PROGRAMS<%endif%> = <%exename%>
+<%if(install)%>bin_PROGRAMS<%else%>noinst_PROGRAMS<%endif%> += <%exename%>
+
+<%normalize(exename)%>_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) \
+<%if(includes)%><%foreach(includes)%> -I<%include%><%endfor%> \<%endif%>
+<%if(defines || common_defines || macros)%>
+<%foreach(defines common_defines macros)%> -D<%define%><%endfor%> \
+<%endif%>
+<%if(type_is_static || need_staticflags)%>
+<%if(staticflags)%>
+<%foreach(staticflags)%> -D<%staticflag%><%endfor%> \
+<%endif%>
+<%else%>
+<%if(dynamicflags)%>
+<%foreach(dynamicflags)%> -D<%dynamicflags%><%endfor%> \
+<%endif%>
+<%endif%>
+ $(DUMMY_VALUE_NOT_ENDING_IN_BACKSLASH)
+
<%normalize(exename)%>_SOURCES = \
<%foreach(source_files)%>
<%source_file%><%fornotlast(" \\")%>
<%endfor%>
-<%if(header_files)%>
-noinst_HEADERS = \
+<%if(header_files)%>
+noinst_HEADERS += \
<%foreach(header_files)%>
<%header_file%><%fornotlast(" \\")%>
<%endfor%>
@@ -39,8 +70,25 @@ noinst_HEADERS = \
<%endfor%>
-lib_LTLIBRARIES = \
- lib<%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%>.la
+lib_LTLIBRARIES += lib<%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%>.la
+
+lib<%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%>_la_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) \
+<%if(includes)%>
+<%foreach(includes)%> -I<%include%><%endfor%> \
+<%endif%>
+<%if(defines || common_defines || macros)%>
+<%foreach(defines common_defines macros)%> -D<%define%><%endfor%> \
+<%endif%>
+<%if(type_is_static || need_staticflags)%>
+<%if(staticflags)%>
+<%foreach(staticflags)%> -D<%staticflag%><%endfor%> \
+<%endif%>
+<%else%>
+<%if(dynamicflags)%>
+<%foreach(dynamicflags)%> -D<%dynamicflags%><%endfor%> \
+<%endif%>
+<%endif%>
+ $(DUMMY_VALUE_NOT_ENDING_IN_BACKSLASH)
lib<%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%>_la_SOURCES = \
<%foreach(grouped_source_files)%>
@@ -51,7 +99,7 @@ lib<%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%>_la_LDFLAGS =
lib<%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%>_la_LIBADD = $(X_PRE_LIBS) $(<%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%>_XLIBS) $(X_EXTRA_LIBS)
<%else%>
-lib_LTLIBRARIES = lib<%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%>.la
+lib_LTLIBRARIES += lib<%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%>.la
lib<%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%>_la_SOURCES = \
<%foreach(source_files)%>
@@ -60,36 +108,24 @@ lib<%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%>_la_SOURCES =
<%endif%>
<%if(template_files)%>
-TEMPLATE_FILES = \
+TEMPLATE_FILES += \
<%foreach(template_files)%>
<%template_file%><%fornotlast(" \\")%>
<%endfor%>
<%endif%>
<%if(header_files)%>
-HEADER_FILES = \
+HEADER_FILES += \
<%foreach(header_files)%>
<%header_file%><%fornotlast(" \\")%>
<%endfor%>
<%endif%>
<%if(inline_files)%>
-INLINE_FILES = \
+INLINE_FILES += \
<%foreach(inline_files)%>
<%inline_file%><%fornotlast(" \\")%>
<%endfor%>
<%endif%>
-
-pkginclude_HEADERS = \
- $(TEMPLATE_FILES) \
- $(INLINE_FILES) \
- $(HEADER_FILES)
<%endif%>
-<%vpath%>
-
-## Clean up template repositories, etc.
-clean-local:
- -rm -f *.bak *.rpo *.sym lib*.*_pure_* Makefile.old core
- -rm -f gcctemp.c gcctemp so_locations
- -rm -rf ptrepository SunWS_cache Templates.DB