PageRenderTime 18ms CodeModel.GetById 2ms app.highlight 6ms RepoModel.GetById 2ms app.codeStats 0ms

/dep/ACE_wrappers/MPC/templates/nmake.mpd

https://bitbucket.org/wownsk/core_tbc
Unknown | 346 lines | 301 code | 45 blank | 0 comment | 0 complexity | 25137a6fcf77a9db0e816cbb97821b53 MD5 | raw file
  1# Microsoft Developer Studio Generated NMAKE File
  2<%marker(top)%>
  3<%foreach(platforms)%>
  4!<%fornotfirst("ELSE")%>IF "$(CFG)" == ""
  5CFG=<%platform%> <%default_configuration%>
  6!MESSAGE No configuration specified. Defaulting to <%platform%> <%default_configuration%>.
  7<%endfor%>
  8!ENDIF
  9
 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%>
 34
 35!IF "$(OS)" == "Windows_NT"
 36NULL=
 37!ELSE
 38NULL=nul
 39!ENDIF
 40
 41!IF "$(DEPGEN)" == ""
 42!IF EXISTS("$(MPC_ROOT)/depgen.pl")
 43DEPGEN=perl $(MPC_ROOT)/depgen.pl -i -t nmake
 44!ELSEIF EXISTS("$(DEPGEN_ROOT)/depgen.pl")
 45DEPGEN=perl $(DEPGEN_ROOT)/depgen.pl -i -t nmake
 46!ELSEIF EXISTS("$(ACE_ROOT)/bin/depgen.pl")
 47DEPGEN=perl $(ACE_ROOT)/bin/depgen.pl -i -t nmake
 48!ENDIF
 49!ENDIF
 50
 51GENERATED_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%>
 52
 53<%foreach(platforms)%>
 54<%foreach(configurations)%>
 55!<%fornotfirst("ELSE")%>IF  "$(CFG)" == "<%platform%> <%configuration%>"
 56
 57<%if(exename)%>
 58OUTDIR=<%if(windows_style)%><%output_dir("Debug")%><%else%><%output_dir(".")%><%endif%>
 59INSTALLDIR=<%if(exeout)%><%exeout%><%if(windows_style)%>\<%output_dir%><%endif%><%else%><%output_dir%><%endif%>
 60<%else%>
 61<%if(type_is_static)%>
 62OUTDIR=<%libout%>
 63<%else%>
 64<%if(type_is_dynamic)%>
 65OUTDIR=<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>
 66<%endif%>
 67<%endif%>
 68<%endif%>
 69INTDIR=<%intermediate_dir%>\<%project_name%>\<%machine%>
 70
 71ALL : "$(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%>
 72
 73DEPEND :
 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
 86
 87REALCLEAN : 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%>
129
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)"
134
135CPP=<%cc("cl.exe")%>
136CPP_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)%> /EHsc- /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%> /FD /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%>
138CPP_PROJ=$(CPP_COMMON) <%if(pch_header)%>$(CPP_PCH) <%endif%>/Fo"<%fo_flag("$(INTDIR)\\\\")%>"
139
140<%if(!type_is_static)%>
141RSC=<%rc("rc.exe")%>
142<%endif%>
143
144<%if(exename || sharedname || staticname)%>
145<%if(type_is_binary)%>
146LINK32=<%link("link.exe")%>
147LINK32_FLAGS=<%systemlibs%><%if(link_options)%> <%link_options%><%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)%>
150LINK32=<%link("link.exe")%> -lib
151LINK32_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%>
153LINK32_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%>
165
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)
172<<
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%>
175
176<%if(prebuild)%>
177__prebuild__:
178	@<%eval(prebuild)%>
179
180<%endif%>
181<%if(postbuild)%>
182__postbuild__:
183	@<%eval(postbuild)%>
184
185<%endif%>
186<%endfor%>
187!ENDIF
188<%endfor%>
189
190CLEAN :
191	-@del /f/s/q "$(INTDIR)"
192
193<%if(exeout)%>
194"$(INSTALLDIR)" :
195    if not exist "$(INSTALLDIR)\$(NULL)" mkdir "$(INSTALLDIR)"
196
197<%endif%>
198"$(OUTDIR)" :
199    if not exist "$(OUTDIR)\$(NULL)" mkdir "$(OUTDIR)"
200
201.c{$(INTDIR)}.obj::
202   $(CPP) @<<
203   $(CPP_PROJ) $<
204<<
205
206.cpp{$(INTDIR)}.obj::
207   $(CPP) @<<
208   $(CPP_PROJ) $<
209<<
210
211.cxx{$(INTDIR)}.obj::
212   $(CPP) @<<
213   $(CPP_PROJ) $<
214<<
215
216.c{$(INTDIR)}.sbr::
217   $(CPP) @<<
218   $(CPP_PROJ) $<
219<<
220
221.cpp{$(INTDIR)}.sbr::
222   $(CPP) @<<
223   $(CPP_PROJ) $<
224<<
225
226.cxx{$(INTDIR)}.sbr::
227   $(CPP) @<<
228   $(CPP_PROJ) $<
229<<
230
231!IF "$(NO_EXTERNAL_DEPS)" != "1"
232!IF EXISTS("<%noextension(project_file)%>.dep")
233!INCLUDE "<%noextension(project_file)%>.dep"
234!ENDIF
235!ENDIF
236
237<%marker(macros)%>
238<%foreach(platforms)%>
239!IF <%foreach(configurations)%>"$(CFG)" == "<%platform%> <%configuration%>" <%fornotlast("|| ")%><%endfor%>
240<%if(pch_source && pch_header)%>
241SOURCE="<%pch_source%>"
242
243<%foreach(configurations)%>
244!<%fornotfirst("ELSE")%>IF  "$(CFG)" == "<%platform%> <%configuration%>"
245
246CPP_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%>/FD /c
247
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)
254<<
255
256<%endfor%>
257!ENDIF
258
259<%endif%>
260<%if(exename || sharedname || staticname)%>
261<%foreach(source_files)%>
262SOURCE="<%source_file%>"
263
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))%>/EHsc- /Gm- /clr <%endif%>/Fo"$(INTDIR)\<%transdir(source_file)%><%basenoextension(source_file)%>.obj" $(SOURCE)
269
270<%endfor%>
271<%endif%>
272<%foreach(custom_types)%>
273<%foreach(custom_type->input_files)%>
274<%if(custom_type->input_file->output_files)%>
275SOURCE="<%custom_type->input_file%>"
276
277InputPath=<%custom_type->input_file%>
278
279<%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%>
280	<<tempfile.bat
281	@echo off
282<%if(custom_type->libpath)%>
283	PATH=%PATH%;<%custom_type->libpath%>
284<%endif%>
285<%if(flag_overrides(custom_type->input_file, gendir))%>
286        if not exist <%flag_overrides(custom_type->input_file, gendir)%> mkdir <%flag_overrides(custom_type->input_file, gendir)%>
287<%endif%>
288	<%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%>
289<%if(flag_overrides(custom_type->input_file, postcommand))%>
290<%foreach(custom_type->input_file)%>
291	<%flag_overrides(custom_type->input_file, postcommand)%>
292<%endfor%>
293<%else%>
294<%if(custom_type->postcommand)%>
295<%foreach(custom_type->input_file)%>
296	<%custom_type->postcommand%>
297<%endfor%>
298<%endif%>
299<%endif%>
300<%if(pch_header)%>
301<%if(custom_type->pch_postrule)%>
302<%foreach(custom_type->input_file->source_output_files)%>
303	echo #include "<%pch_header%>" > temporary.src
304	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
305        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%>"
306<%endfor%>
307<%endif%>
308<%endif%>
309<<
310
311<%endif%>
312<%endfor%>
313<%endfor%>
314<%if(!type_is_static)%>
315<%foreach(resource_files)%>
316SOURCE="<%resource_file%>"
317
318"$(INTDIR)\<%transdir(resource_file)%><%basenoextension(resource_file)%>.res" : $(SOURCE)
319<%if(transdir(resource_file))%>
320	@if not exist "$(INTDIR)\<%transdir(resource_file)%>$(NULL)" mkdir "$(INTDIR)\<%transdir(resource_file)%>"
321<%endif%>
322	$(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)
323
324
325<%endfor%>
326<%endif%>
327<%marker(local)%>
328
329!ENDIF
330<%endfor%>
331
332GENERATED : "$(INTDIR)" "$(OUTDIR)" $(GENERATED_DIRTY)
333	-@rem
334
335DEPENDCHECK :
336!IF "$(NO_EXTERNAL_DEPS)" != "1"
337!IF EXISTS("<%noextension(project_file)%>.dep")
338	@echo Using "<%noextension(project_file)%>.dep"
339<%if(source_files || pch_source)%>
340!ELSE
341	@echo Warning: cannot find "<%noextension(project_file)%>.dep"
342<%endif%>
343!ENDIF
344!ENDIF
345
346<%marker(bottom)%>