PageRenderTime 49ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/templates/nmake.mpd

https://bitbucket.org/snaewe/mpc
Unknown | 355 lines | 309 code | 46 blank | 0 comment | 0 complexity | 9db5e200ac38b546579cb2f040b880e7 MD5 | raw file
  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
  9. <%foreach(platforms)%>
  10. !IF <%foreach(configurations)%>"$(CFG)" == "<%platform%> <%configuration%>"<%fornotlast(" || ")%><%endfor%>
  11. !ELSE
  12. <%endfor%>
  13. !MESSAGE Invalid configuration "$(CFG)" specified.
  14. !MESSAGE You can specify a configuration when running NMAKE
  15. !MESSAGE by defining the macro CFG on the command line. For example:
  16. !MESSAGE
  17. <%foreach(platforms)%>
  18. !MESSAGE NMAKE /f "<%project_file%>" CFG="<%platform%> <%default_configuration%>"
  19. <%endfor%>
  20. !MESSAGE
  21. !MESSAGE Possible choices for configuration are:
  22. !MESSAGE
  23. <%foreach(platforms)%>
  24. <%foreach(configurations)%>
  25. !MESSAGE "<%platform%> <%configuration%>" (based on "<%platform%> (<%machine_description%>) <%type_description("Dynamic-Link Library")%>")
  26. <%endfor%>
  27. <%endfor%>
  28. !MESSAGE
  29. !ERROR An invalid configuration was specified.
  30. <%foreach(platforms)%>
  31. !ENDIF
  32. <%endfor%>
  33. !IF "$(OS)" == "Windows_NT"
  34. NULL=
  35. !ELSE
  36. NULL=nul
  37. !ENDIF
  38. !IF "$(DEPGEN)" == ""
  39. !IF EXISTS("$(MPC_ROOT)/depgen.pl")
  40. DEPGEN=perl $(MPC_ROOT)/depgen.pl -i -t nmake
  41. !ELSEIF EXISTS("$(DEPGEN_ROOT)/depgen.pl")
  42. DEPGEN=perl $(DEPGEN_ROOT)/depgen.pl -i -t nmake
  43. !ELSEIF EXISTS("$(ACE_ROOT)/bin/depgen.pl")
  44. DEPGEN=perl $(ACE_ROOT)/bin/depgen.pl -i -t nmake
  45. !ENDIF
  46. !ENDIF
  47. 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%>
  48. <%foreach(platforms)%>
  49. <%foreach(configurations)%>
  50. !<%fornotfirst("ELSE")%>IF "$(CFG)" == "<%platform%> <%configuration%>"
  51. <%if(exename)%>
  52. OUTDIR=<%if(windows_style)%><%output_dir("Debug")%><%else%><%output_dir(".")%><%endif%>
  53. INSTALLDIR=<%if(exeout)%><%exeout%><%if(windows_style)%>\<%output_dir%><%endif%><%else%><%output_dir%><%endif%>
  54. <%else%>
  55. <%if(type_is_static)%>
  56. OUTDIR=<%libout%>
  57. <%else%>
  58. <%if(type_is_dynamic)%>
  59. OUTDIR=<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>
  60. <%endif%>
  61. <%endif%>
  62. <%endif%>
  63. INTDIR=<%intermediate_dir%>\<%project_name%>\<%machine%>
  64. 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%>
  65. DEPEND :
  66. !IF "$(DEPGEN)" == ""
  67. @echo No suitable dependency generator could be found.
  68. @echo One comes with MPC, just set the MPC_ROOT environment variable
  69. @echo to the full path of MPC. You can download MPC from
  70. @echo http://www.ociweb.com/products/mpc/down.html
  71. !ELSE
  72. <%if(source_files || pch_source)%>
  73. $(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%>
  74. <%else%>
  75. -@rem
  76. <%endif%>
  77. !ENDIF
  78. REALCLEAN : CLEAN
  79. <%if(pdbl && exename)%>
  80. -@del /f/q "$(INSTALLDIR)\<%exename%><%if(use_exe_modifier)%><%lib_modifier%><%endif%>.pdb"
  81. <%endif%>
  82. <%if(sharedname && type_is_dynamic)%>
  83. <%if(pdbl)%>
  84. -@del /f/q "$(OUTDIR)\<%libname_prefix%><%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.pdb"
  85. <%endif%>
  86. -@del /f/q "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%libname_prefix%><%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%dll_ext%>"
  87. -@del /f/q "$(OUTDIR)\<%libname_prefix%><%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%lib_ext%>"
  88. -@del /f/q "$(OUTDIR)\<%libname_prefix%><%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.exp"
  89. -@del /f/q "$(OUTDIR)\<%libname_prefix%><%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.ilk"
  90. <%else%>
  91. <%if(staticname && type_is_dynamic)%>
  92. <%if(pdbl || pdbc)%>
  93. -@del /f/q "$(OUTDIR)\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.pdb"
  94. <%endif%>
  95. -@del /f/q "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%dll_ext%>"
  96. <%endif%>
  97. <%endif%>
  98. <%if(staticname && type_is_static || !sharedname && type_is_dynamic)%>
  99. -@del /f/q "$(OUTDIR)\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%lib_ext%>"
  100. -@del /f/q "$(OUTDIR)\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.exp"
  101. -@del /f/q "$(OUTDIR)\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.ilk"
  102. <%endif%>
  103. <%if(pdbc && type_is_static)%>
  104. -@del /f/q "<%libout%>\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%>.pdb"
  105. <%endif%>
  106. <%if(exename)%>
  107. -@del /f/q "$(INSTALLDIR)\<%exename%><%if(use_exe_modifier)%><%lib_modifier%><%endif%><%exe_ext%>"
  108. -@del /f/q "$(INSTALLDIR)\<%exename%><%if(use_exe_modifier)%><%lib_modifier%><%endif%>.ilk"
  109. <%endif%>
  110. <%foreach(custom_types)%>
  111. <%foreach(custom_type->input_files)%>
  112. <%foreach(custom_type->input_file->output_files)%>
  113. -@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%>"
  114. <%endfor%>
  115. <%endfor%>
  116. <%endfor%>
  117. <%if(postclean)%>
  118. -<%eval(postclean)%>
  119. <%endif%>
  120. "$(INTDIR)" :
  121. if not exist "<%intermediate_dir%>\$(NULL)" mkdir "<%intermediate_dir%>"
  122. if not exist "<%intermediate_dir%>\<%project_name%>\$(NULL)" mkdir "<%intermediate_dir%>\<%project_name%>"
  123. if not exist "$(INTDIR)\$(NULL)" mkdir "$(INTDIR)"
  124. CPP=<%cc("cl.exe")%>
  125. 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%> /FD /c
  126. <%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%>
  127. CPP_PROJ=$(CPP_COMMON) <%if(pch_header)%>$(CPP_PCH) <%endif%>/Fo"<%fo_flag("$(INTDIR)\\\\")%>"
  128. <%if(!type_is_static)%>
  129. RSC=<%rc("rc.exe")%>
  130. <%endif%>
  131. <%if(exename || sharedname || staticname)%>
  132. <%if(type_is_binary)%>
  133. LINK32=<%link("link.exe")%>
  134. 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%>
  135. <%endif%>
  136. <%if(type_is_static)%>
  137. LINK32=<%link("link.exe")%> -lib
  138. 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%>"
  139. <%endif%>
  140. LINK32_OBJS= \
  141. <%if(!type_is_static)%>
  142. <%foreach(resource_files)%>
  143. "$(INTDIR)\<%transdir(resource_file)%><%basenoextension(resource_file)%>.res" \
  144. <%endfor%>
  145. <%endif%>
  146. <%if(pch_source)%>
  147. "$(INTDIR)\<%transdir(pch_source)%><%basenoextension(pch_source)%>.obj" \
  148. <%endif%>
  149. <%foreach(source_files)%>
  150. "$(INTDIR)\<%transdir(source_file)%><%basenoextension(source_file)%>.obj"<%fornotlast(" \\")%>
  151. <%endfor%>
  152. "<%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)
  153. <%if(prelink)%>
  154. <%eval(prelink)%>
  155. <%endif%>
  156. $(LINK32) @<<
  157. $(LINK32_FLAGS) $(LINK32_OBJS)
  158. <<
  159. 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%>
  160. <%endif%>
  161. <%if(prebuild)%>
  162. __prebuild__:
  163. @<%eval(prebuild)%>
  164. <%endif%>
  165. <%if(postbuild)%>
  166. __postbuild__:
  167. @<%eval(postbuild)%>
  168. <%endif%>
  169. <%endfor%>
  170. !ENDIF
  171. <%endfor%>
  172. CLEAN :
  173. -@del /f/s/q "$(INTDIR)"
  174. <%if(exeout)%>
  175. "$(INSTALLDIR)" :
  176. if not exist "$(INSTALLDIR)\$(NULL)" mkdir "$(INSTALLDIR)"
  177. <%endif%>
  178. "$(OUTDIR)" :
  179. if not exist "$(OUTDIR)\$(NULL)" mkdir "$(OUTDIR)"
  180. .c{$(INTDIR)}.obj::
  181. $(CPP) @<<
  182. $(CPP_PROJ) $<
  183. <<
  184. .cpp{$(INTDIR)}.obj::
  185. $(CPP) @<<
  186. $(CPP_PROJ) $<
  187. <<
  188. .cxx{$(INTDIR)}.obj::
  189. $(CPP) @<<
  190. $(CPP_PROJ) $<
  191. <<
  192. .c{$(INTDIR)}.sbr::
  193. $(CPP) @<<
  194. $(CPP_PROJ) $<
  195. <<
  196. .cpp{$(INTDIR)}.sbr::
  197. $(CPP) @<<
  198. $(CPP_PROJ) $<
  199. <<
  200. .cxx{$(INTDIR)}.sbr::
  201. $(CPP) @<<
  202. $(CPP_PROJ) $<
  203. <<
  204. !IF "$(NO_EXTERNAL_DEPS)" != "1"
  205. !IF EXISTS("<%noextension(project_file)%>.dep")
  206. !INCLUDE "<%noextension(project_file)%>.dep"
  207. !ENDIF
  208. !ENDIF
  209. <%marker(macros)%>
  210. <%foreach(platforms)%>
  211. !IF <%foreach(configurations)%>"$(CFG)" == "<%platform%> <%configuration%>" <%fornotlast("|| ")%><%endfor%>
  212. <%if(pch_source && pch_header)%>
  213. SOURCE="<%pch_source%>"
  214. <%foreach(configurations)%>
  215. !<%fornotfirst("ELSE")%>IF "$(CFG)" == "<%platform%> <%configuration%>"
  216. 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%>/FD /c
  217. "$(INTDIR)\<%transdir(pch_source)%><%basenoextension(pch_source)%>.obj" "$(INTDIR)\<%transdir(pch_header)%><%basenoextension(pch_header)%>.pch" : $(SOURCE)
  218. <%if(transdir(pch_source))%>
  219. @if not exist "$(INTDIR)\<%transdir(pch_source)%>$(NULL)" mkdir "$(INTDIR)\<%transdir(pch_source)%>"
  220. <%endif%>
  221. $(CPP) @<<
  222. $(CPP_SWITCHES) /Fo"$(INTDIR)\<%transdir(pch_source)%><%basenoextension(pch_source)%>.obj" $(SOURCE)
  223. <<
  224. <%endfor%>
  225. !ENDIF
  226. <%endif%>
  227. <%if(exename || sharedname || staticname)%>
  228. <%foreach(source_files)%>
  229. SOURCE="<%source_file%>"
  230. "$(INTDIR)\<%transdir(source_file)%><%basenoextension(source_file)%>.obj" : $(SOURCE)
  231. <%if(transdir(source_file))%>
  232. @if not exist "$(INTDIR)\<%transdir(source_file)%>$(NULL)" mkdir "$(INTDIR)\<%transdir(source_file)%>"
  233. <%endif%>
  234. $(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)
  235. <%endfor%>
  236. <%endif%>
  237. <%if(custom_types)%>
  238. <%foreach(platforms)%>
  239. <%foreach(configurations)%>
  240. !<%fornotfirst("ELSE")%>IF "$(CFG)" == "<%platform%> <%configuration%>"
  241. <%foreach(custom_types)%>
  242. <%foreach(custom_type->input_files)%>
  243. <%if(custom_type->input_file->output_files)%>
  244. SOURCE="<%custom_type->input_file%>"
  245. InputPath=<%custom_type->input_file%>
  246. <%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%>
  247. <<tempfile-<%normalize(platform)%>-<%normalize(configuration)%>-<%normalize(custom_type)%>-<%normalize(custom_type->input_file)%>.bat
  248. @echo off
  249. <%if(custom_type->libpath)%>
  250. PATH=%PATH%;<%custom_type->libpath%>
  251. <%endif%>
  252. <%if(flag_overrides(custom_type->input_file, gendir))%>
  253. if not exist <%flag_overrides(custom_type->input_file, gendir)%> mkdir <%flag_overrides(custom_type->input_file, gendir)%>
  254. <%endif%>
  255. <%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%>
  256. <%if(flag_overrides(custom_type->input_file, postcommand))%>
  257. <%foreach(custom_type->input_file)%>
  258. <%flag_overrides(custom_type->input_file, postcommand)%>
  259. <%endfor%>
  260. <%else%>
  261. <%if(custom_type->postcommand)%>
  262. <%foreach(custom_type->input_file)%>
  263. <%custom_type->postcommand%>
  264. <%endfor%>
  265. <%endif%>
  266. <%endif%>
  267. <%if(pch_header)%>
  268. <%if(custom_type->pch_postrule)%>
  269. <%foreach(custom_type->input_file->source_output_files)%>
  270. echo #include "<%pch_header%>" > temporary.src
  271. 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
  272. 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%>"
  273. <%endfor%>
  274. <%endif%>
  275. <%endif%>
  276. <<
  277. <%endif%>
  278. <%endfor%>
  279. <%endfor%>
  280. <%endfor%>
  281. <%endfor%>
  282. !ENDIF
  283. <%endif%>
  284. <%if(!type_is_static)%>
  285. <%foreach(resource_files)%>
  286. SOURCE="<%resource_file%>"
  287. "$(INTDIR)\<%transdir(resource_file)%><%basenoextension(resource_file)%>.res" : $(SOURCE)
  288. <%if(transdir(resource_file))%>
  289. @if not exist "$(INTDIR)\<%transdir(resource_file)%>$(NULL)" mkdir "$(INTDIR)\<%transdir(resource_file)%>"
  290. <%endif%>
  291. $(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)
  292. <%endfor%>
  293. <%endif%>
  294. <%marker(local)%>
  295. !ENDIF
  296. <%endfor%>
  297. GENERATED : "$(INTDIR)" "$(OUTDIR)" $(GENERATED_DIRTY)
  298. -@rem
  299. DEPENDCHECK :
  300. !IF "$(NO_EXTERNAL_DEPS)" != "1"
  301. !IF EXISTS("<%noextension(project_file)%>.dep")
  302. @echo Using "<%noextension(project_file)%>.dep"
  303. <%if(source_files || pch_source)%>
  304. !ELSE
  305. @echo Warning: cannot find "<%noextension(project_file)%>.dep"
  306. <%endif%>
  307. !ENDIF
  308. !ENDIF
  309. <%marker(bottom)%>