Line 1... |
Line 1... |
1 |
# @file <%project_file%>
|
1 |
# @file <%project_file%>
|
2 |
#
|
2 |
#
|
3 |
# $Id: automake.mpd 107 2005-09-02 16:42:23Z bj $
|
3 |
# $Id: automake.mpd 198 2005-12-15 11:30:53Z bj $
|
4 |
<%marker(top)%>
|
4 |
<%marker(top)%>
|
5 |
<%if(requires || avoids)%>
|
5 |
<%if(requires || avoids)%>
|
6 |
|
6 |
|
7 |
<%foreach(uniq(requires))%>
|
7 |
<%foreach(uniq(requires))%>
|
8 |
if BUILD_<%uc(require)%>
|
8 |
if BUILD_<%uc(require)%>
|
Line 39... |
Line 39... |
39 |
<%endfor%>
|
39 |
<%endfor%>
|
40 |
|
40 |
|
41 |
<%if(multiple(custom_type->input_file->output_files))%>
|
41 |
<%if(multiple(custom_type->input_file->output_files))%>
|
42 |
<%foreach(output_file, sort(custom_type->input_file->output_files))%><%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>/<%basename(output_file)%><%else%><%output_file%><%endif%><%fornotlast(" ")%><%endfor%>: <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>/<%endif%><%basenoextension(custom_type->input_file)%>-stamp
|
42 |
<%foreach(output_file, sort(custom_type->input_file->output_files))%><%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>/<%basename(output_file)%><%else%><%output_file%><%endif%><%fornotlast(" ")%><%endfor%>: <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>/<%endif%><%basenoextension(custom_type->input_file)%>-stamp
|
43 |
|
43 |
|
44 |
<%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>/<%basenoextension(custom_type->input_file)%><%else%><%noextension(custom_type->input_file)%><%endif%>-stamp: $(srcdir)/<%custom_type->input_file%><%if(custom_type->input_file->dependencies)%> <%custom_type->input_file->dependencies%><%endif%>
|
44 |
<%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>/<%basenoextension(custom_type->input_file)%><%else%><%noextension(custom_type->input_file)%><%endif%>-stamp: $(srcdir)/<%custom_type->input_file%><%if(custom_type->input_file->dependencies)%> <%custom_type->input_file->dependencies%><%endif%><%if(flag_overrides(custom_type->input_file, dependent))%> <%flag_overrides(custom_type->input_file, dependent)%><%else%><%if(custom_type->dependent)%> <%custom_type->dependent%><%endif%><%endif%>
|
45 |
<%else%>
|
45 |
<%else%>
|
46 |
<%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%>: $(srcdir)/<%custom_type->input_file%><%if(custom_type->input_file->dependencies)%> <%custom_type->input_file->dependencies%><%endif%>
|
46 |
<%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%>: $(srcdir)/<%custom_type->input_file%><%if(custom_type->input_file->dependencies)%> <%custom_type->input_file->dependencies%><%endif%><%if(flag_overrides(custom_type->input_file, dependent))%> <%flag_overrides(custom_type->input_file, dependent)%><%else%><%if(custom_type->dependent)%> <%custom_type->dependent%><%endif%><%endif%>
|
47 |
<%endif%>
|
47 |
<%endif%>
|
48 |
<%if(flag_overrides(custom_type->input_file, gendir))%>
|
48 |
<%if(flag_overrides(custom_type->input_file, gendir))%>
|
49 |
mkdir -p <%flag_overrides(custom_type->input_file, gendir)%>
|
49 |
mkdir -p <%flag_overrides(custom_type->input_file, gendir)%>
|
50 |
<%endif%>
|
50 |
<%endif%>
|
51 |
<%if(flag_overrides(custom_type->input_file, command))%><%flag_overrides(custom_type->input_file, command)%><%else%><%custom_type->command%><%endif%> <%if(flag_overrides(custom_type->input_file, commandflags))%><%flag_overrides(custom_type->input_file, commandflags)%><%else%><%custom_type->commandflags%><%endif%> $(srcdir)/<%custom_type->input_file%><%if(custom_type->output_option)%> <%custom_type->output_option%> <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>/<%basename(custom_type->input_file->output_files)%><%else%><%custom_type->input_file->output_files%><%endif%><%endif%>
|
51 |
<%if(flag_overrides(custom_type->input_file, command))%><%flag_overrides(custom_type->input_file, command)%><%else%><%custom_type->command%><%endif%> <%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%> <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>/<%basename(custom_type->input_file->output_files)%><%else%><%custom_type->input_file->output_files%><%endif%><%endif%> $(srcdir)/<%custom_type->input_file%>
|
52 |
<%if(flag_overrides(custom_type->input_file, postcommand))%>
|
52 |
<%if(flag_overrides(custom_type->input_file, postcommand))%>
|
53 |
<%foreach(custom_type->input_file)%>
|
53 |
<%foreach(custom_type->input_file)%>
|
54 |
<%flag_overrides(custom_type->input_file, postcommand)%>
|
54 |
<%flag_overrides(custom_type->input_file, postcommand)%>
|
55 |
<%endfor%>
|
55 |
<%endfor%>
|
56 |
<%else%>
|
56 |
<%else%>
|
Line 72... |
Line 72... |
72 |
<%if(exename || sharedname || staticname)%>
|
72 |
<%if(exename || sharedname || staticname)%>
|
73 |
<%if(source_files)%>
|
73 |
<%if(source_files)%>
|
74 |
<%if(exename)%>
|
74 |
<%if(exename)%>
|
75 |
<%if(install_this_target)%>bin<%else%>noinst<%endif%>_PROGRAMS += <%exename%>
|
75 |
<%if(install_this_target)%>bin<%else%>noinst<%endif%>_PROGRAMS += <%exename%>
|
76 |
<%else%>
|
76 |
<%else%>
|
77 |
<%if(install_this_target)%>lib<%else%>noinst<%endif%>_LTLIBRARIES += lib<%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%>.la
|
77 |
<%if(install_this_target)%>lib<%else%>noinst<%endif%>_LTLIBRARIES += lib<%libname_prefix%><%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%>.la
|
78 |
<%endif%>
|
78 |
<%endif%>
|
79 |
<%endif%>
|
79 |
<%endif%>
|
80 |
<%if(am_includes || defines || common_defines || macros || need_staticflags || dynamicflags || compile_flags)%>
|
80 |
<%if(am_includes || defines || common_defines || macros || need_staticflags || dynamicflags || compile_flags)%>
|
81 |
|
81 |
|
82 |
<%if(exename)%>
|
82 |
<%if(exename)%>
|
83 |
<%normalize(exename)%>_CPPFLAGS = \
|
83 |
<%normalize(exename)%>_CPPFLAGS = \
|
84 |
<%else%>
|
84 |
<%else%>
|
85 |
lib<%if(sharedname)%><%normalize(sharedname)%><%else%><%normalize(staticname)%><%endif%>_la_CPPFLAGS = \
|
85 |
lib<%libname_prefix%><%if(sharedname)%><%normalize(sharedname)%><%else%><%normalize(staticname)%><%endif%>_la_CPPFLAGS = \
|
86 |
<%endif%>
|
86 |
<%endif%>
|
87 |
<%foreach(am_includes)%>
|
87 |
<%foreach(am_includes)%>
|
88 |
-I<%am_include%><%if(defines || common_defines || macros || need_staticflags || dynamicflags)%> \<%else%><%fornotlast(" \\")%><%endif%>
|
88 |
-I<%am_include%><%if(defines || common_defines || macros || need_staticflags || dynamicflags)%> \<%else%><%fornotlast(" \\")%><%endif%>
|
89 |
<%endfor%>
|
89 |
<%endfor%>
|
90 |
<%foreach(defines common_defines macros)%>
|
90 |
<%foreach(defines common_defines macros)%>
|
91 |
-D<%define%><%if(compile_flags || need_staticflags || dynamicflags)%> \<%else%><%fornotlast(" \\")%><%endif%>
|
91 |
-D<%define%><%if(compile_flags || need_staticflags || dynamicflags)%> \<%else%><%fornotlast(" \\")%><%endif%>
|
92 |
<%endfor%>
|
92 |
<%endfor%>
|
93 |
<%if(compile_flags)%>
|
93 |
<%foreach(compile_flags)%>
|
94 |
<%compile_flags%><%if(need_staticflags || dynamicflags)%> \<%endif%>
|
94 |
<%compile_flags%><%if(need_staticflags || dynamicflags)%> \<%else%><%fornotlast(" \\")%><%endif%>
|
95 |
<%endif%>
|
95 |
<%endfor%>
|
96 |
<%if(need_staticflags)%>
|
96 |
<%if(need_staticflags)%>
|
97 |
<%if(staticflags)%>
|
97 |
<%if(staticflags)%>
|
98 |
<%foreach(staticflags)%>
|
98 |
<%foreach(staticflags)%>
|
99 |
-D<%staticflag%><%fornotlast(" \\")%>
|
99 |
-D<%staticflag%><%fornotlast(" \\")%>
|
100 |
<%endfor%>
|
100 |
<%endfor%>
|
101 |
<%else%>
|
101 |
<%else%>
|
102 |
-D__NO_STATIC_FLAGS_AVAILABLE__
|
102 |
-D__NO_STATIC_FLAGS_AVAILABLE__
|
103 |
<%endif%>
|
103 |
<%endif%>
|
104 |
<%else%>
|
104 |
<%else%>
|
105 |
<%if(dynamicflags)%>
|
- |
|
106 |
<%foreach(dynamicflags)%>
|
105 |
<%foreach(dynamicflags)%>
|
107 |
-D<%dynamicflag%><%fornotlast(" \\")%>
|
106 |
-D<%dynamicflag%><%fornotlast(" \\")%>
|
108 |
<%endfor%>
|
107 |
<%endfor%>
|
109 |
<%endif%>
|
108 |
<%endif%>
|
110 |
<%endif%>
|
109 |
<%endif%>
|
111 |
<%endif%>
|
- |
|
112 |
<%if(source_files)%>
|
110 |
<%if(source_files)%>
|
113 |
|
111 |
|
114 |
<%if(exename)%>
|
112 |
<%if(exename)%>
|
115 |
<%normalize(exename)%>_SOURCES = \
|
113 |
<%normalize(exename)%>_SOURCES = \
|
116 |
<%else%>
|
114 |
<%else%>
|
117 |
lib<%if(sharedname)%><%normalize(sharedname)%><%else%><%normalize(staticname)%><%endif%>_la_SOURCES = \
|
115 |
lib<%libname_prefix%><%if(sharedname)%><%normalize(sharedname)%><%else%><%normalize(staticname)%><%endif%>_la_SOURCES = \
|
118 |
<%endif%>
|
116 |
<%endif%>
|
119 |
<%foreach(source_files)%>
|
117 |
<%foreach(source_file, sort(source_files))%>
|
120 |
<%source_file%><%if(exename)%><%if(header_files || inline_files)%> \<%else%><%fornotlast(" \\")%><%endif%><%else%><%fornotlast(" \\")%><%endif%>
|
118 |
<%source_file%><%if(exename)%><%if(header_files || inline_files)%> \<%else%><%fornotlast(" \\")%><%endif%><%else%><%fornotlast(" \\")%><%endif%>
|
121 |
<%endfor%>
|
119 |
<%endfor%>
|
122 |
<%if(exename)%>
|
120 |
<%if(exename)%>
|
123 |
<%if(header_files || inline_files)%>
|
- |
|
124 |
<%foreach(header_files inline_files)%>
|
121 |
<%foreach(header_file, sort(header_files inline_files))%>
|
125 |
<%header_file%><%fornotlast(" \\")%>
|
122 |
<%header_file%><%fornotlast(" \\")%>
|
126 |
<%endfor%>
|
123 |
<%endfor%>
|
127 |
<%endif%>
|
124 |
<%endif%>
|
128 |
<%endif%>
|
125 |
<%endif%>
|
129 |
<%endif%>
|
- |
|
130 |
<%if(exename)%>
|
126 |
<%if(exename)%>
|
131 |
<%if(linkflags)%>
|
127 |
<%if(linkflags)%>
|
132 |
|
128 |
|
133 |
<%normalize(exename)%>_LDFLAGS = \
|
129 |
<%normalize(exename)%>_LDFLAGS = \
|
134 |
<%linkflags%>
|
130 |
<%linkflags%>
|
135 |
<%endif%>
|
131 |
<%endif%>
|
136 |
<%else%>
|
132 |
<%else%>
|
137 |
<%if(linkflags || am_version && install_this_target)%>
|
133 |
<%if(linkflags || am_version && install_this_target)%>
|
138 |
|
134 |
|
139 |
lib<%if(sharedname)%><%normalize(sharedname)%><%else%><%normalize(staticname)%><%endif%>_la_LDFLAGS = \
|
135 |
lib<%libname_prefix%><%if(sharedname)%><%normalize(sharedname)%><%else%><%normalize(staticname)%><%endif%>_la_LDFLAGS = \
|
140 |
<%if(am_version && install_this_target)%> -version-number <%am_version%><%endif%><%if(linkflags)%> <%linkflags%><%endif%>
|
136 |
<%if(am_version && install_this_target)%> -version-number <%am_version%><%endif%><%if(linkflags)%> <%linkflags%><%endif%>
|
141 |
<%endif%>
|
137 |
<%endif%>
|
142 |
<%endif%>
|
138 |
<%endif%>
|
143 |
<%if(exename)%>
|
139 |
<%if(exename)%>
|
144 |
<%if(libs || pure_libs || lit_libs)%>
|
140 |
<%if(libs || pure_libs || lit_libs)%>
|
145 |
|
141 |
|
146 |
<%normalize(exename)%>_LDADD = \
|
142 |
<%normalize(exename)%>_LDADD = \
|
- |
|
143 |
<%foreach(libs)%>
|
147 |
<%foreach(libs)%> lib<%lib%>.la<%endfor%><%foreach(lit_libs)%> -l<%lit_lib%><%endfor%><%foreach(pure_libs)%> <%pure_lib%><%endfor%>
|
144 |
lib<%libname_prefix%><%lib%>.la<%if(lit_libs || pure_libs)%> \<%else%><%fornotlast(" \\")%><%endif%>
|
- |
|
145 |
<%endfor%>
|
- |
|
146 |
<%foreach(lit_libs)%>
|
- |
|
147 |
-l<%lit_lib%><%if(pure_libs)%> \<%else%><%fornotlast(" \\")%><%endif%>
|
- |
|
148 |
<%endfor%>
|
- |
|
149 |
<%foreach(pure_libs)%>
|
- |
|
150 |
<%pure_lib%><%fornotlast(" \\")%>
|
- |
|
151 |
<%endfor%>
|
148 |
<%endif%>
|
152 |
<%endif%>
|
149 |
<%else%>
|
153 |
<%else%>
|
150 |
<%if(install_this_target)%>
|
154 |
<%if(install_this_target)%>
|
151 |
<%if(libs || pure_libs || lit_libs)%>
|
155 |
<%if(libs || pure_libs || lit_libs)%>
|
152 |
|
156 |
|
153 |
lib<%if(sharedname)%><%normalize(sharedname)%><%else%><%normalize(staticname)%><%endif%>_la_LIBADD = \
|
157 |
lib<%libname_prefix%><%if(sharedname)%><%normalize(sharedname)%><%else%><%normalize(staticname)%><%endif%>_la_LIBADD = \
|
- |
|
158 |
<%foreach(libs)%>
|
154 |
<%foreach(libs)%> lib<%lib%>.la<%endfor%><%foreach(lit_libs)%> -l<%lit_lib%><%endfor%><%foreach(pure_libs)%> <%pure_lib%><%endfor%>
|
159 |
lib<%libname_prefix%><%lib%>.la<%if(lit_libs || pure_libs)%> \<%else%><%fornotlast(" \\")%><%endif%>
|
- |
|
160 |
<%endfor%>
|
- |
|
161 |
<%foreach(lit_libs)%>
|
- |
|
162 |
-l<%lit_lib%><%if(pure_libs)%> \<%else%><%fornotlast(" \\")%><%endif%>
|
- |
|
163 |
<%endfor%>
|
- |
|
164 |
<%foreach(pure_libs)%>
|
- |
|
165 |
<%pure_lib%><%fornotlast(" \\")%>
|
- |
|
166 |
<%endfor%>
|
155 |
<%endif%>
|
167 |
<%endif%>
|
156 |
<%endif%>
|
168 |
<%endif%>
|
157 |
<%endif%>
|
169 |
<%endif%>
|
158 |
<%if(!exename)%>
|
170 |
<%if(!exename)%>
|
159 |
<%if(header_files || inline_files || template_files || idl_files || pidl_files)%>
|
171 |
<%if(header_files || inline_files || template_files || idl_files || pidl_files)%>
|