Add languagestandard variable
[MPC.git] / templates / make.mpd
blob780fe22a4c7c5f050537a328120fd0fea0333d0c
1 # -*-Makefile-*-
2 #----------------------------------------------------------------------------
3 #       Macros
4 #----------------------------------------------------------------------------
5 <%marker(top)%>
6 <%if(multiple(configurations) || multiple(platforms))%>
7 <%if(default_configuration)%>
8 CFG = <%default_configuration%>
9 <%else%>
10 <%foreach(configurations)%>
11 <%if(forfirst)%>
12 <%if(multiple(platforms))%>
13 <%foreach(platforms)%>
14 <%if(forfirst)%>
15 CFG = <%platform%> <%configuration%>
16 <%endif%>
17 <%endfor%>
18 <%else%>
19 CFG = <%configuration%>
20 <%endif%>
21 <%endif%>
22 <%endfor%>
23 <%endif%>
25 <%endif%>
26 <%foreach(compilers)%>
27 <%foreach(platforms)%>
28 <%foreach(configurations)%>
29 <%if(multiple(platforms))%>
30 ifeq ($(CFG), <%platform%> <%configuration%>)
31 <%else%>
32 <%if(multiple(configurations))%>
33 ifeq ($(CFG), <%configuration%>)
34 <%endif%>
35 <%endif%>
36 CC            = <%cc%>
37 CXX           = <%cxx%>
38 <%if(ld)%>
39 LD            = <%ld%>
40 <%else%>
41 LD            = $(CXX) $(CCFLAGS) $(CPPFLAGS)
42 <%endif%>
43 AR            = <%ar("ar")%>
44 <%if(nm)%>
45 NM            = <%nm%>
46 <%endif%>
47 <%if(cxxint)%>
48 CXXINT        = <%cxxint%>
49 <%endif%>
50 <%if(cputype)%>
51 CPUTYPE       = <%cputype%>
52 <%endif%>
53 <%if(cpu)%>
54 CPU           = <%cpu%>
55 <%endif%>
56 <%if(dll_ext && pic)%>
57 PICFLAGS      = <%pic%>
58 <%endif%>
59 <%if(cflags)%>
60 CFLAGS        = <%cflags%>
61 <%endif%>
62 <%if(ccflags)%>
63 CCFLAGS       = <%ccflags%>
64 <%endif%>
65 CPPFLAGS      = <%if(visibility && visopt)%><%visopt%> <%endif%>$(PICFLAGS) $(GENFLAGS)<%if(compile_flags)%> <%compile_flags%><%endif%><%if(profile)%> <%profopt%><%endif%><%if(coverage)%> <%covopt%><%endif%><%if(cpu)%> -DCPU=$(CPU)<%endif%><%if(tempincopt)%> <%tempincopt%>$(TEMPINCDIR)<%endif%><%if(compilerflags)%> <%compilerflags%><%endif%><%if(build64bit && compilerflags64)%> <%compilerflags64%><%endif%><%if(pch_source && pchsupport)%><%foreach(pch_defines)%> -D<%pch_define%><%endfor%><%endif%><%if(extracppflags)%><%foreach(extracppflags)%><%if(!starts_with(extracppflag, -D) || !contains(language, java))%> <%extracppflag%><%endif%><%endfor%><%endif%><%if(includes)%><%foreach(includes)%> -I"<%include%>"<%endfor%><%endif%><%if(!contains(language, java) && macros)%><%foreach(macros)%> -D<%macro%><%endfor%><%endif%>
66 OBJEXT        = <%obj_ext%>
67 OUTPUT_OPTION = <%output_option(-o \"$@\")%>
68 COMPILE.c     = $(CC) $(CFLAGS) $(CPPFLAGS) <%compile_option("-c")%>
69 COMPILE.cc    = $(CXX) $(CCFLAGS) $(CPPFLAGS) <%compile_option%>
70 <%if(rc)%>
71 RESEXT        = <%res_ext%>
72 <%endif%>
73 <%if(build64bit && arflags64)%>
74 ARFLAGS       = <%if(extraarflags)%><%extraarflags%> <%endif%><%arflags64%>
75 <%else%>
76 <%if(arflags)%>
77 ARFLAGS       = <%if(extraarflags)%><%extraarflags%> <%endif%><%arflags%>
78 <%endif%>
79 <%endif%>
80 <%if(tempinc)%>
81 TEMPINCDIR    = <%tempinc%><%if(tempincopt)%><%slash%><%project_name%><%endif%>
82 <%endif%>
83 LDFLAGS       =<%if(libpaths)%><%foreach(libpaths)%><%if(targetoutdir)%> <%libpathopt(-L)%>"<%libpath%><%slash%><%targetoutdir%>"<%endif%> <%libpathopt(-L)%>"<%libpath%>"<%endfor%><%endif%><%if(linkflags)%> <%linkflags%><%endif%><%if(profile)%> <%profopt%><%endif%><%if(coverage)%> <%covopt%><%endif%><%if(build64bit && linkflags64)%> <%linkflags64%><%endif%>
84 CCC           = $(CXX)
85 MAKEFILE      = <%project_file%>
86 DEPENDENCIES  = <%if(supports_include)%>.depend.<%endif%>$(MAKEFILE)
87 <%if(exename)%>
88 BTARGETDIR    = <%if(exeout)%><%exeout%><%output_dir_ext%><%else%>.<%endif%><%slash%><%targetoutdir%>
89 BIN           = $(BTARGETDIR)<%exename%>$(EXESUFFIX)$(EXEEXT)
90 <%else%>
91 LTARGETDIR    = <%libout%><%if(!compares(libout, .))%><%output_dir_ext%><%endif%><%slash%><%targetoutdir%>
92 <%endif%>
93 CAT           = <%type("cat")%>
94 MV            = <%move("mv -f")%>
95 RM            = <%delete("rm -rf")%>
96 CP            = <%copy("cp -p")%>
97 NUL           = <%devnull("/dev/null")%>
98 MKDIR         = <%makedir("mkdir -p")%>
99 TESTDIRSTART  = <%testdirstart("test -d")%>
100 TESTDIREND    = <%testdirend("||")%>
101 TOUCH         = <%touch("touch")%>
102 EXEEXT        = <%exe_ext%>
103 LIBPREFIX     = <%lib_prefix%><%libname_prefix%>
104 <%if(use_lib_modifier)%>
105 LIBSUFFIX     = <%lib_modifier%>
106 <%endif%>
107 <%if(use_exe_modifier)%>
108 EXESUFFIX     = <%lib_modifier%>
109 <%endif%>
110 GENFLAGS      =<%if(!contains(configuration, Release) || optimize)%> <%genflags%><%endif%>
111 <%if(link_lib_name)%>
112 LDLIBS        =<%foreach(libs)%> "$(LIBPREFIX)<%lib%>$(LIBSUFFIX)<%lib_ext%>"<%endfor%><%foreach(lit_libs)%> "$(LIBPREFIX)<%lit_lib%><%lib_ext%>"<%endfor%><%foreach(pure_libs)%> "<%pure_lib%>"<%endfor%> <%ldlibs%>
113 <%else%>
114 LDLIBS        =<%foreach(libs)%> <%libopt%>"<%libname_prefix%><%lib%>$(LIBSUFFIX)"<%endfor%><%foreach(lit_libs)%> <%libopt%>"<%lit_lib%>"<%endfor%><%foreach(pure_libs)%> "<%pure_lib%>"<%endfor%> <%ldlibs%>
115 <%endif%>
116 OBJS          =<%if(pch_source && pchsupport)%> <%targetoutdir%><%obj_dir%><%noextension(pch_source)%>$(OBJEXT)<%endif%><%foreach(source_files)%> <%if(targetoutdir || obj_dir)%><%targetoutdir%><%obj_dir%><%transdir(source_file)%><%basenoextension(source_file)%><%else%><%noextension(source_file)%><%endif%>$(OBJEXT)<%endfor%><%if(rc)%><%foreach(resource_files)%> <%targetoutdir%><%obj_dir%><%resource_file%>$(RESEXT)<%endfor%><%endif%>
117 <%if(lib_ext)%>
118 <%if(staticname)%>
119 AREXT         = <%lib_ext%>
120 LIB           = $(LTARGETDIR)$(LIBPREFIX)<%staticname%>$(LIBSUFFIX)$(AREXT)
121 <%endif%>
122 <%endif%>
123 <%if(dll_ext)%>
124 SOEXT         = <%dll_ext%>
125 <%if(sharedname)%>
126 SHTARGETDIR   = <%if(dllout)%><%dllout%><%if(!compares(dllout, .))%><%output_dir_ext%><%endif%><%else%><%libout%><%if(!compares(libout, .))%><%output_dir_ext%><%endif%><%endif%><%slash%><%targetoutdir%>
127 <%if(version && versupport)%>
128 SHLIB_BASE    = $(LIBPREFIX)<%sharedname%>$(LIBSUFFIX)$(SOEXT)
129 <%endif%>
130 SHLIB         = $(SHTARGETDIR)$(LIBPREFIX)<%sharedname%>$(LIBSUFFIX)$(SOEXT)
131 <%if(shflags)%>
132 SHFLAGS       = <%shflags%>
133 <%endif%>
134 <%endif%>
135 <%endif%>
136 SRC           =<%if(pch_source && pchsupport)%> <%pch_source%><%endif%> <%source_files%>
137 LINK.cc       = <%if(dld)%><%dld%> $(LDFLAGS)<%else%>$(LD) $(LDFLAGS)<%endif%>
138 <%if(!contains(language, java))%>
139 <%if(dynamicflags)%>
140 DYNAMICFLAGS  =<%foreach(dynamicflags)%> -D<%dynamicflag%><%endfor%>
141 <%endif%>
142 <%if(staticflags)%>
143 STATICFLAGS   =<%foreach(staticflags)%> -D<%staticflag%><%endfor%>
144 <%endif%>
145 EXPORTFLAGS   = <%if(exename)%><%if(need_staticflags)%>$(STATICFLAGS)<%endif%><%else%><%if(dll_ext && sharedname)%>$(DYNAMICFLAGS)<%else%>$(STATICFLAGS)<%endif%><%endif%>
146 <%endif%>
147 <%if(gnumake && libpaths)%>
148 <%if(exename || sharedname)%>
149 DEPLIBS       = $(foreach lib,<%foreach(libs)%> <%libname_prefix%><%lib%>$(LIBSUFFIX)<%endfor%> <%lit_libs%>, $(foreach libpath,<%foreach(libpaths)%><%if(targetoutdir)%> <%libpath%>/<%targetoutdir%><%endif%> <%libpath%><%endfor%>, $(wildcard $(libpath)/lib$(lib)<%lib_ext(".a")%>)))
150 <%endif%>
151 <%endif%>
152 <%if(multiple(configurations) || multiple(platforms))%>
153 endif
154 <%endif%>
155 <%endfor%>
156 <%if(supports_include && make_include)%>
158 include <%make_include%>
159 <%endif%>
160 <%marker(macros)%>
162 #----------------------------------------------------------------------------
163 #       Local targets
164 #----------------------------------------------------------------------------
166 <%if(exename)%>
167 all:<%if(prebuild)%> __prebuild__<%endif%> $(BIN)<%if(postbuild)%> __postbuild__<%endif%>
169 <%if(specialscript)%>
170 specialscript:
171         @echo '<%specialscript%>' > $@
172         @<%chmod("chmod")%> 755 $@
174 <%endif%>
175 <%if(prelinktarget)%>
176 <%prelinktarget%>: specialscript $(OBJS)
177         @specialscript "$(NM)" "$(OBJS)" "$(LDLIBS)" "<%if(libpaths)%><%foreach(libpaths)%><%if(targetoutdir)%><%libpath%><%slash%><%targetoutdir%> <%endif%><%libpath%><%fornotlast(" ")%><%endfor%><%else%>.<%endif%>" "$(BIN)" "$@"
178         @$(RM) specialscript
180 <%if(prelinktargetobj)%>
181 <%targetoutdir%><%obj_dir%><%prelinktargetobj%>: <%prelinktarget%>
182         $(COMPILE.cc) $(OUTPUT_OPTION) <%prelinktarget%>
183         @$(RM) <%prelinktarget%>
185 <%endif%>
186 <%endif%>
187 $(BIN):<%if(tempinc)%> $(TEMPINCDIR)<%endif%><%if(prelinktargetobj)%> <%targetoutdir%><%obj_dir%><%prelinktargetobj%><%else%><%if(prelinktarget)%> <%prelinktarget%><%endif%><%endif%> $(OBJS)<%if(gnumake && libpaths)%> $(DEPLIBS)<%endif%>
188         @$(TESTDIRSTART) "$(BTARGETDIR)" $(TESTDIREND) $(MKDIR) "$(BTARGETDIR)"
189 <%if(prelink)%>
190         <%eval(prelink)%>
191 <%endif%>
192         $(LINK.cc) $(OBJS) $(LDLIBS)<%if(exe_linkflags)%> <%eval(exe_linkflags)%><%endif%> $(OUTPUT_OPTION)
193 <%if(postlinkbinary)%>
194         <%postlinkbinary%>
195 <%endif%>
197 <%endif%>
198 <%if(dll_ext && sharedname)%>
199 all:<%if(prebuild)%> __prebuild__<%endif%><%if(version && versupport)%> $(SHLIB).<%version%><%endif%> $(SHLIB)<%if(postbuild)%> __postbuild__<%endif%>
201 <%if(version && versupport)%>
202 $(SHLIB):
203         cd $(SHTARGETDIR) && ln -s $(SHLIB_BASE).<%version%> $(SHLIB_BASE)
205 <%endif%>
206 $(SHLIB)<%if(version && versupport)%>.<%version%><%endif%>: <%if(tempinc)%>$(TEMPINCDIR) <%endif%>$(OBJS)<%if(gnumake && libpaths)%> $(DEPLIBS)<%endif%>
207         @$(TESTDIRSTART) "$(SHTARGETDIR)" $(TESTDIREND) $(MKDIR) "$(SHTARGETDIR)"
208 <%if(prelink)%>
209         <%eval(prelink)%>
210 <%endif%>
211 <%if(dmclink)%>
212         link /impl <%if(pch_source && pchsupport)%><%targetoutdir%><%obj_dir%><%noextension(pch_source)%>$(OBJEXT)+<%endif%><%foreach(source_files)%><%if(targetoutdir || obj_dir)%><%targetoutdir%><%obj_dir%><%transdir(source_file)%><%basenoextension(source_file)%><%else%><%noextension(source_file)%><%endif%>$(OBJEXT)<%fornotlast("+")%><%endfor%>,$@,<%ldlibs%><%if(rc)%><%foreach(resource_files)%><%forfirst(",,")%><%targetoutdir%><%obj_dir%><%resource_file%>$(RESEXT)<%fornotlast("+")%><%endfor%><%endif%>
213 <%else%>
214         $(LINK.cc) $(SHFLAGS) $(OBJS) $(LDLIBS) $(OUTPUT_OPTION)
215 <%endif%>
217 <%else%>
218 <%if(staticname)%>
219 all:<%if(prebuild)%> __prebuild__<%endif%> $(LIB)<%if(postbuild)%> __postbuild__<%endif%>
221 <%endif%>
222 <%endif%>
223 <%if(staticname)%>
224 $(LIB): <%if(tempinc)%>$(TEMPINCDIR) <%endif%>$(OBJS)
225         @$(TESTDIRSTART) "$(LTARGETDIR)" $(TESTDIREND) $(MKDIR) "$(LTARGETDIR)"
226         $(AR) $(ARFLAGS) <%libgenopt%>$(LIB) $(OBJS)<%if(tempinc)%> `find $(TEMPINCDIR) -name \*.o\*`<%endif%>
227 <%if(ranlib)%>
228         ranlib $(LIB)
229 <%endif%>
231 <%endif%>
232 <%if(custom_types)%>
233 <%if(gnumake)%>
234 SPACE           = $(should_be_unset) $(should_be_unset)
235 <%endif%>
236 GENERATED_DIRTY =<%foreach(custom_types)%><%foreach(custom_type->input_files)%><%if(custom_type->input_file->output_files)%><%foreach(custom_type->input_file->output_files)%> <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%><%slash%><%basename(custom_type->input_file->output_file)%><%else%><%custom_type->input_file->output_file%><%endif%><%endfor%><%endif%><%endfor%><%endfor%>
238 <%if(!source_files)%>
239 all:<%if(prebuild)%> __prebuild__<%endif%> $(GENERATED_DIRTY)<%if(postbuild)%> __postbuild__<%endif%>
241 <%endif%>
242 <%foreach(custom_types)%>
243 <%if(expanded_variable_assignment && custom_type->libpath)%>
244 DYLD_LIBRARY_PATH := $(DYLD_LIBRARY_PATH):<%custom_type->libpath%>
245 LD_LIBRARY_PATH   := $(LD_LIBRARY_PATH):<%custom_type->libpath%>
246 SHLIB_PATH        := $(SHLIB_PATH):<%custom_type->libpath%>
247 LIBPATH           := $(LIBPATH):<%custom_type->libpath%>
248 PATH              := $(PATH):<%custom_type->libpath%>
250 <%endif%>
251 <%foreach(custom_type->input_files)%>
252 <%if(custom_type->input_file->output_files)%>
253 <%if(notparallel && multiple(custom_type->input_file->output_files))%>
254 .NOTPARALLEL:
255 <%endif%>
256 <%foreach(custom_type->input_file->output_files)%><%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%><%slash%><%basename(custom_type->input_file->output_file)%><%else%><%custom_type->input_file->output_file%><%endif%><%fornotlast(" ")%><%endfor%>: <%custom_type->input_file%><%if(custom_type->input_file->dependencies)%><%foreach(custom_type->input_file->dependencies)%><%if(gnumake)%><%if(contains(custom_type->input_file->dependencie, \$))%> $(subst $(SPACE),\$(SPACE),<%custom_type->input_file->dependencie%>)<%else%> <%scope(enter, escape, \\s)%><%custom_type->input_file->dependencie%><%scope(leave)%><%endif%><%else%><%if(!contains(custom_type->input_file->dependencie, \$))%> <%scope(enter, escape, \\s)%><%custom_type->input_file->dependencie%><%scope(leave)%><%endif%><%endif%><%endfor%><%endif%><%if(flag_overrides(custom_type->input_file, dependent))%><%foreach(dep, flag_overrides(custom_type->input_file, dependent))%><%if(gnumake)%><%if(contains(dep, \$))%> $(subst $(SPACE),\$(SPACE),<%dep%>)<%else%> <%scope(enter, escape, \\s)%><%dep%><%scope(leave)%><%endif%><%else%><%if(!contains(dep, \$))%> <%scope(enter, escape, \\s)%><%dep%><%scope(leave)%><%endif%><%endif%><%endfor%><%else%><%if(custom_type->dependent)%><%foreach(custom_type->dependent)%><%if(gnumake)%><%if(contains(custom_type->dependent, \$))%> $(subst $(SPACE),\$(SPACE),<%custom_type->dependent%>)<%else%> <%scope(enter, escape, \\s)%><%custom_type->dependent%><%scope(leave)%><%endif%><%else%><%if(!contains(custom_type->dependent, \$))%> <%scope(enter, escape, \\s)%><%custom_type->dependent%><%scope(leave)%><%endif%><%endif%><%endfor%><%endif%><%endif%><%if(!need_staticflags)%><%if(flag_overrides(custom_type->input_file, dependent_libs))%><%foreach(dep_lib, flag_overrides(custom_type->input_file, dependent_libs))%><%if(gnumake)%><%if(contains(dep_lib, \$))%> $(subst $(SPACE),\$(SPACE),<%dirname(dep_lib)%>/$(LIBPREFIX)<%basename(dep_lib)%>$(LIBSUFFIX)$(SOEXT))<%else%> <%scope(enter, escape, \\s)%><%dirname(dep_lib)%>/$(LIBPREFIX)<%basename(dep_lib)%>$(LIBSUFFIX)$(SOEXT)<%scope(leave)%><%endif%><%else%><%if(!contains(dep_lib, \$))%> <%scope(enter, escape, \\s)%><%dirname(dep_lib)%>/$(LIBPREFIX)<%basename(dep_lib)%>$(LIBSUFFIX)$(SOEXT)<%scope(leave)%><%endif%><%endif%><%endfor%><%else%><%if(custom_type->dependent_libs)%><%foreach(custom_type->dependent_libs)%><%if(gnumake)%><%if(contains(custom_type->dependent_libs, \$))%> $(subst $(SPACE),\$(SPACE),<%dirname(custom_type->dependent_lib)%>/$(LIBPREFIX)<%basename(custom_type->dependent_lib)%>$(LIBSUFFIX)$(SOEXT))<%else%> <%scope(enter, escape, \\s)%><%dirname(custom_type->dependent_lib)%>/$(LIBPREFIX)<%basename(custom_type->dependent_lib)%>$(LIBSUFFIX)$(SOEXT)<%scope(leave)%><%endif%><%else%><%if(!contains(custom_type->dependent_libs, \$))%> <%scope(enter, escape, \\s)%><%dirname(custom_type->dependent_lib)%>/$(LIBPREFIX)<%basename(custom_type->dependent_lib)%>$(LIBSUFFIX)$(SOEXT)<%scope(leave)%><%endif%><%endif%><%endfor%><%endif%><%endif%><%endif%>
257 <%if(flag_overrides(custom_type->input_file, gendir))%>
258         @$(TESTDIRSTART) "<%flag_overrides(custom_type->input_file, gendir)%>" $(TESTDIREND) $(MKDIR) "<%flag_overrides(custom_type->input_file, gendir)%>"
259 <%endif%>
260         <%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->input_file%> <%custom_type->output_option%> "$@"<%else%><%custom_type->input_file%><%endif%>
261 <%if(flag_overrides(custom_type->input_file, postcommand))%>
262 <%foreach(custom_type->input_file)%>
263         <%flag_overrides(custom_type->input_file, postcommand)%>
264 <%endfor%>
265 <%else%>
266 <%if(custom_type->postcommand)%>
267 <%foreach(custom_type->input_file)%>
268         <%custom_type->postcommand%>
269 <%endfor%>
270 <%endif%>
271 <%endif%>
272 <%if(pchsupport && pch_header)%>
273 <%if(custom_type->pch_postrule)%>
274 <%foreach(custom_type->input_file->source_output_files)%>
275         @echo <%echo_outer_quote("'")%>#include "<%pch_header%>"<%echo_outer_quote("'")%> > temp.$$$$ && $(CAT) <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%><%slash%><%basename(custom_type->input_file->source_output_file)%><%else%><%custom_type->input_file->source_output_file%><%endif%> >> temp.$$$$ && $(MV) temp.$$$$ <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%><%slash%><%basename(custom_type->input_file->source_output_file)%><%else%><%custom_type->input_file->source_output_file%><%endif%>
276 <%endfor%>
277 <%endif%>
278 <%endif%>
280 <%endif%>
281 <%endfor%>
282 <%endfor%>
283 .PRECIOUS: $(GENERATED_DIRTY)
284 <%if(source_files)%>
285 $(OBJS): $(GENERATED_DIRTY)
286 <%endif%>
288 <%endif%>
289 generated:<%if(prebuild)%> __prebuild__<%endif%> $(GENERATED_DIRTY)
290         @-:
292 <%if(tempinc)%>
293 $(TEMPINCDIR):
294         @-$(TESTDIRSTART) "$(TEMPINCDIR)" $(TESTDIREND) $(MKDIR) "$(TEMPINCDIR)" 2> $(NUL)
296 <%endif%>
297 <%if(pch_source && pchsupport)%>
298 <%targetoutdir%><%obj_dir%><%noextension(pch_source)%>$(OBJEXT): <%pch_source%>
299 <%if(targetoutdir || obj_dir)%>
300         @$(TESTDIRSTART) "<%targetoutdir%><%obj_dir%><%dirname(pch_source)%>" $(TESTDIREND) $(MKDIR) "<%targetoutdir%><%obj_dir%><%dirname(pch_source)%>"
301 <%endif%>
302         <%if(ends_with(pch_source, \.c))%>$(COMPILE.c)<%else%>$(COMPILE.cc)<%endif%> <%if(pchcreate)%><%pchcreate%><%targetoutdir%><%obj_dir%><%pch_header%><%pchext%> <%endif%>$(EXPORTFLAGS)<%if(!pchnobj)%> $(OUTPUT_OPTION)<%endif%> <%pch_source%>
303 <%if(pchnobj)%>
304         @$(CP) <%targetoutdir%><%obj_dir%><%pch_header%><%pchext%> <%targetoutdir%><%obj_dir%><%noextension(pch_source)%>$(OBJEXT)
305 <%endif%>
307 <%endif%>
308 <%foreach(source_files)%>
309 <%if(targetoutdir || obj_dir)%><%targetoutdir%><%obj_dir%><%transdir(source_file)%><%basenoextension(source_file)%><%else%><%noextension(source_file)%><%endif%>$(OBJEXT): <%source_file%>
310 <%if(targetoutdir || obj_dir)%>
311         @$(TESTDIRSTART) "<%targetoutdir%><%obj_dir%><%transdir(source_file)%>" $(TESTDIREND) $(MKDIR) "<%targetoutdir%><%obj_dir%><%transdir(source_file)%>"
312 <%endif%>
313         <%if(ends_with(source_file, \.c) || ends_with(source_file, \.[Ss]))%>$(COMPILE.c)<%else%>$(COMPILE.cc)<%endif%> <%if(flag_overrides(source_file, buildflags))%><%flag_overrides(source_file, buildflags)%> <%endif%><%if(pchuse && pch_source && pchsupport)%><%pchuse%><%pch_header%><%pchext%> <%if(pchstop)%><%pchstop%><%pch_header%><%endif%><%endif%>$(EXPORTFLAGS) $(OUTPUT_OPTION) <%source_file%>
314 <%if(source_file->postcommand)%>
315         <%source_file->postcommand%>
316 <%endif%>
318 <%endfor%>
319 <%if(resource_files)%>
320 <%if(rc)%>
321 <%foreach(resource_files)%>
322 <%targetoutdir%><%obj_dir%><%resource_file%>$(RESEXT):
323 <%if(targetoutdir || obj_dir)%>
324         @$(TESTDIRSTART) "<%targetoutdir%><%obj_dir%><%dirname(resource_file)%>" $(TESTDIREND) $(MKDIR) "<%targetoutdir%><%obj_dir%><%dirname(resource_file)%>"
325 <%endif%>
326         <%rc%><%foreach(includes)%> -I<%include%><%endfor%> <%resource_file%> <%targetoutdir%><%obj_dir%><%resource_file%>$(RESEXT)
328 <%endfor%>
329 <%endif%>
330 <%endif%>
331 clean:
332         -$(RM) $(OBJS)
333 <%if(pch_source && pchsupport)%>
334         -$(RM) <%targetoutdir%><%obj_dir%><%pch_header%><%pchext%>
335 <%endif%>
336 <%if(clean)%>
337         -$(RM) <%clean%><%if(sharedname)%><%foreach(dir, clean)%> $(SHTARGETDIR)<%dir%><%endfor%><%endif%><%if(staticname || sharedname)%><%foreach(dir, clean)%> $(LTARGETDIR)<%dir%><%endfor%><%endif%><%if(exename)%><%foreach(dir, clean)%> $(BTARGETDIR)<%dir%><%endfor%><%endif%>
338 <%endif%>
340 realclean: clean
341         -$(RM) <%if(exename)%>$(BIN)<%else%><%if(dll_ext && sharedname && version && versupport)%>$(SHLIB).<%version%> <%endif%>$(SHLIB) $(LIB)<%endif%>
342 <%if(custom_types)%>
343         -$(RM) $(GENERATED_DIRTY)
344 <%endif%>
345 <%if(obj_dir)%>
346         -$(RM) <%targetoutdir%><%obj_dir%>
347 <%endif%>
348 <%if(postclean)%>
349         -<%eval(postclean)%>
350 <%endif%>
352 check-syntax:
353         $(COMPILE.cc) $(EXPORTFLAGS)<%if(checkopt)%> <%checkopt%><%endif%> $(CHK_SOURCES)
355 <%if(prebuild)%>
356 __prebuild__:
357         @<%eval(prebuild)%>
359 <%endif%>
360 <%if(postbuild)%>
361 __postbuild__:<%if(exename)%> $(BIN)<%endif%><%if(dll_ext && sharedname)%><%if(version && versupport)%> $(SHLIB).<%version%><%endif%> $(SHLIB)<%else%><%if(staticname)%> $(LIB)<%endif%><%endif%>
362         @<%eval(postbuild)%>
364 <%endif%>
365 <%marker(local)%>
366 #----------------------------------------------------------------------------
367 #       Dependencies
368 #----------------------------------------------------------------------------
370 <%if(!gnumake)%>
371 $(DEPENDENCIES):
372         @$(TOUCH) $(DEPENDENCIES)
373 <%endif%>
375 depend:
376 <%if(source_files || pch_source)%>
377         -<%if(targetoutdir || obj_dir)%>VDIR='<%subst(targetoutdir,\$,$$)%><%subst(obj_dir,\$,$$)%>' <%endif%><%depgen("$(MPC_ROOT)/depgen.pl")%> <%depgen_flags%> $(CFLAGS) $(CCFLAGS) $(CPPFLAGS) -f $(DEPENDENCIES) $(SRC) 2> $(NUL)
378 <%else%>
379         @-:
380 <%endif%>
382 <%if(forlast)%>
383 <%if(supports_include)%>
384 <%if(gnumake)%>-<%endif%>include $(DEPENDENCIES)
385 <%else%>
386 # DO NOT DELETE THIS LINE
387 <%endif%>
388 <%endif%>
389 <%endfor%>
390 <%endfor%>
391 <%marker(bottom)%>