Zapped trailing whitespaces
[MPC.git] / templates / nmake.mpd
blob7cc9b469511416f1b5e70210ca468a8a13673c41
1 # Microsoft Developer Studio Generated NMAKE File
2 <%marker(top)%>
3 <%foreach(platforms)%>
4 !<%fornotfirst("ELSE")%>IF "$(CFG)" == ""
5 CFG=<%platform%> <%default_configuration%>
6 !MESSAGE No configuration specified. Defaulting to <%platform%> <%default_configuration%>.
7 <%endfor%>
8 !ENDIF
10 <%foreach(platforms)%>
11 !IF <%foreach(configurations)%>"$(CFG)" == "<%platform%> <%configuration%>"<%fornotlast(" || ")%><%endfor%>
12 !ELSE
13 <%endfor%>
14 !MESSAGE Invalid configuration "$(CFG)" specified.
15 !MESSAGE You can specify a configuration when running NMAKE
16 !MESSAGE by defining the macro CFG on the command line. For example:
17 !MESSAGE
18 <%foreach(platforms)%>
19 !MESSAGE NMAKE /f "<%project_file%>" CFG="<%platform%> <%default_configuration%>"
20 <%endfor%>
21 !MESSAGE
22 !MESSAGE Possible choices for configuration are:
23 !MESSAGE
24 <%foreach(platforms)%>
25 <%foreach(configurations)%>
26 !MESSAGE "<%platform%> <%configuration%>" (based on "<%platform%> (<%machine_description%>) <%type_description("Dynamic-Link Library")%>")
27 <%endfor%>
28 <%endfor%>
29 !MESSAGE
30 !ERROR An invalid configuration was specified.
31 <%foreach(platforms)%>
32 !ENDIF
33 <%endfor%>
35 !IF "$(OS)" == "Windows_NT"
36 NULL=
37 !ELSE
38 NULL=nul
39 !ENDIF
41 !IF "$(DEPGEN)" == ""
42 !IF EXISTS("$(MPC_ROOT)/depgen.pl")
43 DEPGEN=perl $(MPC_ROOT)/depgen.pl -i -t nmake
44 !ELSEIF EXISTS("$(DEPGEN_ROOT)/depgen.pl")
45 DEPGEN=perl $(DEPGEN_ROOT)/depgen.pl -i -t nmake
46 !ELSEIF EXISTS("$(ACE_ROOT)/bin/depgen.pl")
47 DEPGEN=perl $(ACE_ROOT)/bin/depgen.pl -i -t nmake
48 !ENDIF
49 !ENDIF
51 GENERATED_DIRTY =<%foreach(custom_types)%><%foreach(custom_type->input_files)%><%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%>"<%endfor%><%endfor%><%endfor%>
53 <%foreach(platforms)%>
54 <%foreach(configurations)%>
55 !<%fornotfirst("ELSE")%>IF  "$(CFG)" == "<%platform%> <%configuration%>"
57 <%if(exename)%>
58 OUTDIR=<%if(windows_style)%><%output_dir("Debug")%><%else%><%output_dir(".")%><%endif%>
59 INSTALLDIR=<%if(exeout)%><%exeout%><%if(windows_style)%>\<%output_dir%><%endif%><%else%><%output_dir%><%endif%>
60 <%else%>
61 <%if(type_is_static)%>
62 OUTDIR=<%libout%>
63 <%else%>
64 <%if(type_is_dynamic)%>
65 OUTDIR=<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>
66 <%endif%>
67 <%endif%>
68 <%endif%>
69 INTDIR=<%intermediate_dir%>\<%project_name%>\<%machine%>
71 ALL : "$(INTDIR)" "$(OUTDIR)"<%if(exename)%><%if(exeout)%> "$(INSTALLDIR)"<%endif%><%endif%><%if(prebuild)%> __prebuild__<%endif%> DEPENDCHECK $(GENERATED_DIRTY)<%if(type_is_dynamic)%><%if(sharedname || staticname)%> "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%libname_prefix%><%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%dll_ext%>"<%endif%><%endif%><%if(staticname && type_is_static)%> "$(OUTDIR)\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%lib_ext%>"<%endif%><%if(exename)%> "$(INSTALLDIR)\<%exename%><%if(use_exe_modifier)%><%lib_modifier%><%endif%><%exe_ext%>"<%endif%><%if(postbuild)%> __postbuild__<%endif%>
73 DEPEND :
74 !IF "$(DEPGEN)" == ""
75         @echo No suitable dependency generator could be found.
76         @echo One comes with MPC, just set the MPC_ROOT environment variable
77         @echo to the full path of MPC.  You can download MPC from
78         @echo http://www.ociweb.com/products/mpc/down.html
79 !ELSE
80 <%if(source_files || pch_source)%>
81         $(DEPGEN)<%foreach(includes)%> -I"<%include%>"<%endfor%><%foreach(defines cpu_defines common_defines platform_defines macros)%> -D<%define%><%endfor%><%if(unicode)%> -DUNICODE -D_UNICODE<%endif%><%if(type_is_dynamic)%><%foreach(dynamicflags)%> -D<%dynamicflag%><%endfor%><%endif%><%if(need_staticflags)%><%foreach(staticflags)%> -D<%staticflag%><%endfor%><%endif%><%if(pch_header)%><%foreach(pch_defines)%> -D<%pch_define%><%endfor%><%endif%> -f "<%noextension(project_file)%>.dep"<%foreach(source_files)%> "<%source_file%>"<%endfor%><%if(pch_source)%> "<%pch_source%>"<%endif%>
82 <%else%>
83         -@rem
84 <%endif%>
85 !ENDIF
87 REALCLEAN : CLEAN
88 <%if(pdbl && exename)%>
89         -@del /f/q "$(INSTALLDIR)\<%exename%><%if(use_exe_modifier)%><%lib_modifier%><%endif%>.pdb"
90 <%endif%>
91 <%if(sharedname && type_is_dynamic)%>
92 <%if(pdbl)%>
93         -@del /f/q "$(OUTDIR)\<%libname_prefix%><%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.pdb"
94 <%endif%>
95         -@del /f/q "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%libname_prefix%><%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%dll_ext%>"
96         -@del /f/q "$(OUTDIR)\<%libname_prefix%><%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%lib_ext%>"
97         -@del /f/q "$(OUTDIR)\<%libname_prefix%><%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.exp"
98         -@del /f/q "$(OUTDIR)\<%libname_prefix%><%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.ilk"
99 <%else%>
100 <%if(staticname && type_is_dynamic)%>
101 <%if(pdbl || pdbc)%>
102         -@del /f/q "$(OUTDIR)\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.pdb"
103 <%endif%>
104         -@del /f/q "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%dll_ext%>"
105 <%endif%>
106 <%endif%>
107 <%if(staticname && type_is_static || !sharedname && type_is_dynamic)%>
108         -@del /f/q "$(OUTDIR)\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%lib_ext%>"
109         -@del /f/q "$(OUTDIR)\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.exp"
110         -@del /f/q "$(OUTDIR)\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.ilk"
111 <%endif%>
112 <%if(pdbc && type_is_static)%>
113         -@del /f/q "<%libout%>\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.pdb"
114 <%endif%>
115 <%if(exename)%>
116         -@del /f/q "$(INSTALLDIR)\<%exename%><%if(use_exe_modifier)%><%lib_modifier%><%endif%><%exe_ext%>"
117         -@del /f/q "$(INSTALLDIR)\<%exename%><%if(use_exe_modifier)%><%lib_modifier%><%endif%>.ilk"
118 <%endif%>
119 <%foreach(custom_types)%>
120 <%foreach(custom_type->input_files)%>
121 <%foreach(custom_type->input_file->output_files)%>
122         -@del /f/q "<%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%>"
123 <%endfor%>
124 <%endfor%>
125 <%endfor%>
126 <%if(postclean)%>
127         -<%eval(postclean)%>
128 <%endif%>
130 "$(INTDIR)" :
131         if not exist "<%intermediate_dir%>\$(NULL)" mkdir "<%intermediate_dir%>"
132         if not exist "<%intermediate_dir%>\<%project_name%>\$(NULL)" mkdir "<%intermediate_dir%>\<%project_name%>"
133         if not exist "$(INTDIR)\$(NULL)" mkdir "$(INTDIR)"
135 CPP=<%cc("cl.exe")%>
136 CPP_COMMON=<%if(TreatWChar_tAsBuiltInType)%>/Zc:wchar_t <%endif%>/nologo <%if(add_compile)%><%add_compile%> <%endif%><%if(optimize)%><%optimize_flags("/O2")%><%else%><%debug_flags("/Ob0")%><%endif%> <%compile_flags%><%foreach(DisableSpecificWarnings)%> /wd<%DisableSpecificWarning%><%endfor%><%if(managed)%> /GX- /Gm- /clr<%endif%><%if(pdbc)%> /Fd"<%if(type_is_static)%><%libout%>\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.pdb<%else%>$(INTDIR)/<%endif%>"<%endif%> <%foreach(includes)%>/I "<%include%>" <%endfor%><%foreach(defines cpu_defines common_defines platform_defines macros)%>/D <%define%> <%endfor%><%if(unicode)%>/D UNICODE /D _UNICODE <%endif%><%if(type_is_dynamic)%><%foreach(dynamicflags)%>/D <%dynamicflag%> <%endfor%><%endif%><%if(need_staticflags)%><%foreach(staticflags)%>/D <%staticflag%> <%endfor%><%endif%><%if(macro_for_lib_modifier)%><%if(use_lib_modifier)%><%if(lib_modifier)%>/D MPC_LIB_MODIFIER=\"<%lib_modifier%>\"<%endif%><%endif%><%endif%> /c
137 <%if(pch_header)%>CPP_PCH=<%foreach(pch_defines)%>/D <%pch_define%> <%endfor%><%if(pch_source)%>/Yu<%else%>/YX<%endif%>"<%pch_header%>" /Fp"$(INTDIR)\<%transdir(pch_header)%><%basenoextension(pch_header)%>.pch"<%endif%>
138 CPP_PROJ=$(CPP_COMMON) <%if(pch_header)%>$(CPP_PCH) <%endif%>/Fo"<%fo_flag("$(INTDIR)\\\\")%>"
140 <%if(!type_is_static)%>
141 RSC=<%rc("rc.exe")%>
142 <%endif%>
144 <%if(exename || sharedname || staticname)%>
145 <%if(type_is_binary)%>
146 LINK32=<%link("link.exe")%>
147 LINK32_FLAGS=<%systemlibs%><%if(link_options)%> <%link_options%><%endif%><%if(profile)%> /PROFILE<%endif%> <%if(managed)%>/FIXED:NO <%endif%>/INCREMENTAL:<%incremental("NO")%> <%foreach(reverse(libs))%><%libname_prefix%><%lib%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%lib_ext%> <%endfor%><%foreach(reverse(lit_libs))%><%lit_lib%>.lib <%endfor%><%foreach(reverse(pure_libs))%><%pure_lib%> <%endfor%><%foreach(libpaths)%>/libpath:"<%libpath%>" <%endfor%>/nologo<%if(win_version)%> /version:<%win_version%><%endif%><%if(StackReserveSize)%> /stack:<%StackReserveSize%><%if(StackCommitSize)%>,<%StackCommitSize%><%endif%><%endif%> /subsystem:<%subsystem("windows")%><%if(type_is_dynamic)%> <%if(!source_files)%>/noentry <%endif%>/dll<%endif%> <%if(unicode && unicode_mfc_entry && exename && source_files)%>/entry:"<%unicode_mfc_entry%>" <%endif%><%debug_switch("/debug")%> <%if(pdbl)%>/pdb:"<%if(type_is_dynamic)%><%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%libname_prefix%><%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.pdb<%endif%><%if(exename)%>$(INSTALLDIR)\<%exename%><%if(use_exe_modifier)%><%lib_modifier%><%endif%>.pdb<%endif%><%if(type_is_static)%>$(OUTDIR)\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.pdb<%endif%>" <%endif%>/machine:<%machine("I386")%> /out:"<%if(type_is_dynamic)%><%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%libname_prefix%><%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%dll_ext%><%endif%><%if(exename)%>$(INSTALLDIR)\<%exename%><%if(use_exe_modifier)%><%lib_modifier%><%endif%><%exe_ext%><%endif%>"<%if(type_is_dynamic)%> /implib:"$(OUTDIR)\<%libname_prefix%><%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%lib_ext%>"<%endif%>
148 <%endif%>
149 <%if(type_is_static)%>
150 LINK32=<%link("link.exe")%> -lib
151 LINK32_FLAGS=/nologo /machine:<%machine("I386")%><%if(link_options)%> <%link_options%><%endif%> /out:"<%libout%>\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%lib_ext%>"
152 <%endif%>
153 LINK32_OBJS= \
154 <%if(!type_is_static)%>
155 <%foreach(resource_files)%>
156         "$(INTDIR)\<%transdir(resource_file)%><%basenoextension(resource_file)%>.res" \
157 <%endfor%>
158 <%endif%>
159 <%if(pch_source)%>
160         "$(INTDIR)\<%transdir(pch_source)%><%basenoextension(pch_source)%>.obj" \
161 <%endif%>
162 <%foreach(source_files)%>
163         "$(INTDIR)\<%transdir(source_file)%><%basenoextension(source_file)%>.obj"<%fornotlast(" \\")%>
164 <%endfor%>
166 "<%if(type_is_dynamic)%><%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%libname_prefix%><%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%dll_ext%><%endif%><%if(type_is_static)%>$(OUTDIR)\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%lib_ext%><%endif%><%if(exename)%>$(INSTALLDIR)\<%exename%><%if(use_exe_modifier)%><%lib_modifier%><%endif%><%exe_ext%><%endif%>" : $(DEF_FILE) $(LINK32_OBJS)
167 <%if(prelink)%>
168         <%eval(prelink)%>
169 <%endif%>
170         $(LINK32) @<<
171   $(LINK32_FLAGS) $(LINK32_OBJS)
173         if exist "<%if(type_is_dynamic)%><%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%dll_ext%>.manifest<%endif%><%if(exename)%>$(INSTALLDIR)\<%exename%><%if(use_exe_modifier)%><%lib_modifier%><%endif%><%exe_ext%>.manifest<%endif%><%if(type_is_static)%>$(OUTDIR)\<%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%lib_ext%>.manifest<%endif%>" mt.exe -manifest "<%if(type_is_dynamic)%><%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%dll_ext%>.manifest<%endif%><%if(exename)%>$(INSTALLDIR)\<%exename%><%if(use_exe_modifier)%><%lib_modifier%><%endif%><%exe_ext%>.manifest<%endif%><%if(type_is_static)%>$(OUTDIR)\<%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%lib_ext%>.manifest<%endif%>" -outputresource:$@;<%if(type_is_dynamic)%>2<%endif%><%if(exename)%>1<%endif%><%if(type_is_static)%>2<%endif%>
174 <%endif%>
176 <%if(prebuild)%>
177 __prebuild__:
178         @<%eval(prebuild)%>
180 <%endif%>
181 <%if(postbuild)%>
182 __postbuild__:
183         @<%eval(postbuild)%>
185 <%endif%>
186 <%endfor%>
187 !ENDIF
188 <%endfor%>
190 CLEAN :
191         -@del /f/s/q "$(INTDIR)"
193 <%if(exeout)%>
194 "$(INSTALLDIR)" :
195         if not exist "$(INSTALLDIR)\$(NULL)" mkdir "$(INSTALLDIR)"
197 <%endif%>
198 "$(OUTDIR)" :
199         if not exist "$(OUTDIR)\$(NULL)" mkdir "$(OUTDIR)"
201 .c{$(INTDIR)}.obj::
202         $(CPP) @<<
203    $(CPP_PROJ) $<
206 .cpp{$(INTDIR)}.obj::
207         $(CPP) @<<
208    $(CPP_PROJ) $<
211 .cxx{$(INTDIR)}.obj::
212         $(CPP) @<<
213    $(CPP_PROJ) $<
216 .c{$(INTDIR)}.sbr::
217         $(CPP) @<<
218    $(CPP_PROJ) $<
221 .cpp{$(INTDIR)}.sbr::
222         $(CPP) @<<
223    $(CPP_PROJ) $<
226 .cxx{$(INTDIR)}.sbr::
227         $(CPP) @<<
228    $(CPP_PROJ) $<
231 !IF "$(NO_EXTERNAL_DEPS)" != "1"
232 !IF EXISTS("<%noextension(project_file)%>.dep")
233 !INCLUDE "<%noextension(project_file)%>.dep"
234 !ENDIF
235 !ENDIF
237 <%marker(macros)%>
238 <%foreach(platforms)%>
239 !IF <%foreach(configurations)%>"$(CFG)" == "<%platform%> <%configuration%>" <%fornotlast("|| ")%><%endfor%>
240 <%if(pch_source && pch_header)%>
241 SOURCE="<%pch_source%>"
243 <%foreach(configurations)%>
244 !<%fornotfirst("ELSE")%>IF  "$(CFG)" == "<%platform%> <%configuration%>"
246 CPP_SWITCHES=<%if(TreatWChar_tAsBuiltInType)%>/Zc:wchar_t <%endif%>/nologo <%if(add_compile)%><%add_compile%> <%endif%><%if(optimize)%><%optimize_flags%><%else%><%debug_flags%><%endif%> <%compile_flags%><%foreach(DisableSpecificWarnings)%> /wd<%DisableSpecificWarning%><%endfor%><%if(pdbc)%> /Fd"<%if(type_is_static)%><%libout%>\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.pdb<%else%>$(INTDIR)/<%endif%>"<%endif%> <%foreach(includes)%>/I "<%include%>" <%endfor%><%foreach(defines cpu_defines common_defines platform_defines macros)%>/D <%define%> <%endfor%><%if(unicode)%>/D UNICODE /D _UNICODE <%endif%><%if(type_is_dynamic)%><%foreach(dynamicflags)%>/D <%dynamicflag%> <%endfor%><%endif%><%if(need_staticflags)%><%foreach(staticflags)%>/D <%staticflag%> <%endfor%><%endif%><%if(pch_header)%><%foreach(pch_defines)%>/D <%pch_define%> <%endfor%>/Fp"$(INTDIR)\<%transdir(pch_header)%><%basenoextension(pch_header)%>.pch" /Yc"<%pch_header%>" <%endif%> /c
248 "$(INTDIR)\<%transdir(pch_source)%><%basenoextension(pch_source)%>.obj" "$(INTDIR)\<%transdir(pch_header)%><%basenoextension(pch_header)%>.pch" : $(SOURCE)
249 <%if(transdir(pch_source))%>
250         @if not exist "$(INTDIR)\<%transdir(pch_source)%>$(NULL)" mkdir "$(INTDIR)\<%transdir(pch_source)%>"
251 <%endif%>
252         $(CPP) @<<
253   $(CPP_SWITCHES) /Fo"$(INTDIR)\<%transdir(pch_source)%><%basenoextension(pch_source)%>.obj" $(SOURCE)
256 <%endfor%>
257 !ENDIF
259 <%endif%>
260 <%if(exename || sharedname || staticname)%>
261 <%foreach(source_files)%>
262 SOURCE="<%source_file%>"
264 "$(INTDIR)\<%transdir(source_file)%><%basenoextension(source_file)%>.obj" : $(SOURCE)
265 <%if(transdir(source_file))%>
266         @if not exist "$(INTDIR)\<%transdir(source_file)%>$(NULL)" mkdir "$(INTDIR)\<%transdir(source_file)%>"
267 <%endif%>
268         $(CPP) <%if(pch_header && !flag_overrides(source_file, no_pch))%>$(CPP_PCH) <%endif%>$(CPP_COMMON) <%if(flag_overrides(source_file, buildflags))%><%flag_overrides(source_file, buildflags)%> <%endif%><%if(flag_overrides(source_file, managed))%>/GX- /Gm- /clr <%endif%>/Fo"$(INTDIR)\<%transdir(source_file)%><%basenoextension(source_file)%>.obj" $(SOURCE)
270 <%endfor%>
271 <%endif%>
272 <%if(custom_types)%>
273 <%foreach(platforms)%>
274 <%foreach(configurations)%>
275 !<%fornotfirst("ELSE")%>IF  "$(CFG)" == "<%platform%> <%configuration%>"
276 <%foreach(custom_types)%>
277 <%foreach(custom_type->input_files)%>
278 <%if(custom_type->input_file->output_files)%>
279 SOURCE="<%custom_type->input_file%>"
281 InputPath=<%custom_type->input_file%>
283 <%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%>" <%endfor%>: $(SOURCE) <%foreach(custom_type->input_file->dependencies)%> "<%custom_type->input_file->dependencie%>"<%endfor%><%if(flag_overrides(custom_type->input_file, dependent))%><%foreach(dep, flag_overrides(custom_type->input_file, dependent))%> "<%dep%><%if(!has_extension(dep))%><%exe_ext%><%endif%>"<%endfor%><%else%><%if(custom_type->dependent)%><%foreach(custom_type->dependent)%> "<%custom_type->dependent%><%if(!has_extension(custom_type->dependent))%><%exe_ext%><%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))%> "<%dirname(dep_lib)%>\<%libname_prefix%><%basename(dep_lib)%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%dll_ext%>"<%endfor%><%else%><%if(custom_type->dependent_libs)%><%foreach(custom_type->dependent_libs)%> "<%dirname(custom_type->dependent_lib)%>\<%libname_prefix%><%basename(custom_type->dependent_lib)%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%dll_ext%>"<%endfor%><%endif%><%endif%><%endif%>
284         <<tempfile-<%normalize(platform)%>-<%normalize(configuration)%>-<%normalize(custom_type)%>-<%normalize(custom_type->input_file)%>.bat
285         @echo off
286 <%if(custom_type->libpath)%>
287         PATH=%PATH%;<%custom_type->libpath%>
288 <%endif%>
289 <%if(flag_overrides(custom_type->input_file, gendir))%>
290         if not exist <%flag_overrides(custom_type->input_file, gendir)%> mkdir <%flag_overrides(custom_type->input_file, gendir)%>
291 <%endif%>
292         <%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)%>"$(InputPath)" <%custom_type->output_option%><%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%>"<%endfor%><%else%>"$(InputPath)"<%endif%>
293 <%if(flag_overrides(custom_type->input_file, postcommand))%>
294 <%foreach(custom_type->input_file)%>
295         <%flag_overrides(custom_type->input_file, postcommand)%>
296 <%endfor%>
297 <%else%>
298 <%if(custom_type->postcommand)%>
299 <%foreach(custom_type->input_file)%>
300         <%custom_type->postcommand%>
301 <%endfor%>
302 <%endif%>
303 <%endif%>
304 <%if(pch_header)%>
305 <%if(custom_type->pch_postrule)%>
306 <%foreach(custom_type->input_file->source_output_files)%>
307         echo #include "<%pch_header%>" > temporary.src
308         type "<%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>\<%basename(custom_type->input_file->source_output_file)%><%else%><%custom_type->input_file->source_output_file%><%endif%>" >> temporary.src
309         move /y temporary.src "<%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>\<%basename(custom_type->input_file->source_output_file)%><%else%><%custom_type->input_file->source_output_file%><%endif%>"
310 <%endfor%>
311 <%endif%>
312 <%endif%>
315 <%endif%>
316 <%endfor%>
317 <%endfor%>
318 <%endfor%>
319 <%endfor%>
320 !ENDIF
322 <%endif%>
323 <%if(!type_is_static)%>
324 <%foreach(resource_files)%>
325 SOURCE="<%resource_file%>"
327 "$(INTDIR)\<%transdir(resource_file)%><%basenoextension(resource_file)%>.res" : $(SOURCE)
328 <%if(transdir(resource_file))%>
329         @if not exist "$(INTDIR)\<%transdir(resource_file)%>$(NULL)" mkdir "$(INTDIR)\<%transdir(resource_file)%>"
330 <%endif%>
331         $(RSC) /l 0x409 /fo"$(INTDIR)\<%transdir(resource_file)%><%basenoextension(resource_file)%>.res"<%foreach(defines cpu_defines platform_defines macros)%> /d <%define%><%endfor%><%if(unicode)%> /d UNICODE /d _UNICODE<%endif%><%foreach(includes)%> /i "<%include%>"<%endfor%> $(SOURCE)
334 <%endfor%>
335 <%endif%>
336 <%marker(local)%>
338 !ENDIF
339 <%endfor%>
341 GENERATED : "$(INTDIR)" "$(OUTDIR)" $(GENERATED_DIRTY)
342         -@rem
344 DEPENDCHECK :
345 !IF "$(NO_EXTERNAL_DEPS)" != "1"
346 !IF EXISTS("<%noextension(project_file)%>.dep")
347         @echo Using "<%noextension(project_file)%>.dep"
348 <%if(source_files || pch_source)%>
349 !ELSE
350         @echo Warning: cannot find "<%noextension(project_file)%>.dep"
351 <%endif%>
352 !ENDIF
353 !ENDIF
355 <%marker(bottom)%>