1 #----------------------------------------------------------------------------
4 # This file was automatically generated by MPC. Any changes made directly to
5 # this file will be lost the next time it is generated.
7 #----------------------------------------------------------------------------
10 !ifdef <%normalize(uc(compiler))%>
12 OPTIMIZE_CFLAGS = <%optimize_flags%>
13 UNICODE_CFLAGS = <%unicode_flags%>
14 PDB_FLAGS = <%pdb_flags%>
15 DEBUG_CFLAGS = <%debug_flags%>
16 RELEASE_CFLAGS = <%release_flags%>
17 CC_CFLAGS = <%ccflags%>
18 STACK_LFLAG = <%stack_flag%>
19 WARN_FLAGS = <%warn_flags%>
20 BINARY_FLAGS = <%binary_flags%>
21 THREAD_FLAGS = <%thr_flags%>
23 COMMON_DEFINES =<%foreach(common_defines)%> -D<%common_define%><%endfor%>
24 COMMON_FLAGS = <%foreach(common_flags)%><%common_flag%><%endfor%>
25 PLATFORM_LIBS_PREFIX = <%platform_libs_prefix%>
27 LINKER_PATHS = <%linker_paths%>
28 LINKER_PASSTHROUGH = <%linker_passthrough%>
29 STARTUP_BITS = <%startup_bits%>
31 COMMON_LIBS = <%common_libs%>
33 DLLFLAGS = <%dllflags%>
34 <%if(pch)%>PCH = 1<%endif%>
35 <%if(objectsearchpath)%>
38 -j"<%libpath%>"<%fornotlast(" \\")%>
41 EXEFLAGS = <%exeflags%>
42 LINKER_DLL_ARGUMENTS = <%linker_dll_arguments%>
43 LINKER_EXE_ARGUMENTS = <%linker_exe_arguments%>
44 DEBUG_EXT = <%debug_ext%>
47 !error You must select one of these compilers:<%foreach(compilers)%> <%normalize(uc(compiler))%><%endfor%>
48 <%foreach(compilers)%>
52 <%foreach(configurations)%>
53 !ifdef <%normalize(uc(configuration))%>
54 OCFLAGS = <%if(optimize)%>$(OPTIMIZE_CFLAGS) <%else%><%if(debug_prj)%>$(DEBUG_CFLAGS)<%foreach(debug_macros)%> -D<%debug_macro%><%endfor%><%endif%><%endif%><%foreach(defines)%> -D<%define%><%endfor%><%if(!debug_prj)%> $(RELEASE_CFLAGS)<%endif%>
55 LFLAGS =<%if(debug_prj)%> $(PDB_FLAGS)<%endif%>
56 CFG_DIR = <%intermediate_dir%>\\
57 LIBMODIFIER = <%if(use_lib_modifier)%><%lib_modifier%><%endif%>
58 EXEMODIFIER = <%if(use_exe_modifier)%><%lib_modifier%><%endif%>
59 <%if(type_is_static)%>
62 <%if(type_is_static || need_staticflags)%>
64 STATIC_FLAGS =<%foreach(staticflags)%> -D<%staticflag%><%endfor%>
68 DYN_FLAGS =<%foreach(dynamicflags)%> -D<%dynamicflag%><%endfor%>
72 EXEOUTPUTDIR = <%if(exeout)%><%exeout%><%if(windows_style)%>\<%output_dir("Debug")%><%endif%><%else%><%if(windows_style)%><%output_dir("Debug")%><%else%><%output_dir(".")%><%endif%><%endif%>\\
76 !error You must define one of these valid configurations:<%foreach(configurations)%> <%normalize(uc(configuration))%><%endfor%>
77 <%foreach(configurations)%>
82 UC_CFLAGS = $(UNICODE_CFLAGS)
83 UNICODE_DIR = Unicode\\
85 ULIBMODIFIER = <%unicode_lib_modifier%>
86 UEXEMODIFIER = <%unicode_lib_modifier%>
97 LIBFLAGS = <%libflags%>
98 CCFLAGS = $(CC_CFLAGS)<%if(type_is_binary)%> $(BINARY_FLAGS)<%endif%><%if(compile_flags)%> <%compile_flags%><%endif%>
101 STARTUP_LETTER = <%if(exename)%>w<%else%><%startup_letter%><%endif%>
103 VCL_CFLAGS = -D_NO_VCL
104 STARTUP_LETTER = <%startup_letter%>
106 STARTUP_OBJ = c0$(STARTUP_LETTER)$(STARTUP_BITS)$(UC_MAIN)$(OBJ_EXT)
108 INTERMEDIATE = $(CFG_DIR)$(UNICODE_DIR)<%noextension(project_name)%>
110 NAME = <%exename%>$(EXEMODIFIER)
113 NAME = <%libname_prefix%><%sharedname%>$(LIBMODIFIER)$(ULIBMODIFIER)
116 NAME = <%libname_prefix%><%staticname%>$(LIBMODIFIER)$(ULIBMODIFIER)
122 <%if(exename || sharedname || staticname)%>
125 <%foreach(source_files)%>
126 "$(INTERMEDIATE)\<%transdir(source_file)%><%basenoextension(source_file)%>$(OBJ_EXT)"<%fornotlast(" \\")%>
141 <%if(StackReserveSize)%>
142 $(STACK_LFLAG)<%StackReserveSize%> \
144 <%if(StackCommitSize)%>
145 /Sc:<%StackCommitSize%> \
148 -v<%if(libpaths)%> \<%endif%>
150 <%foreach(libpaths)%>
157 <%foreach(reverse(libs))%>
158 $(LINKER_PASSTHROUGH) <%libname_prefix%><%lib%>$(LIBMODIFIER)$(ULIBMODIFIER)$(LIB_EXT) \
160 <%foreach(reverse(lit_libs))%>
161 $(LINKER_PASSTHROUGH) <%lit_lib%>$(LIB_EXT) \
163 <%foreach(reverse(platform_libs))%>
164 $(PLATFORM_LIBS_PREFIX)<%platform_libs%> \
166 <%foreach(reverse(pure_libs))%>
171 <%if(resource_files)%>
175 <%foreach(resource_files)%>
176 $(INTERMEDIATE)\<%transdir(resource_file)%><%basenoextension(resource_file)%>.res<%fornotlast(" \\")%>
181 <%foreach(includes)%>
182 -i"<%include%>"<%fornotlast(" \\")%>
189 # Set NO_USE_PCH if you do not want to use precompiled headers.
192 PCH_CFLAGS = <%foreach(pch_defines)%>-D<%pch_define%> <%endfor%>-H=$(INTERMEDIATE)\<%noextension(project_name)%>.csm -Hh=<%pch_header%>
203 <%foreach(macros common_defines)%>
206 <%foreach(includes)%>
214 OUTPUTDIR = $(EXEOUTPUTDIR)
215 all:<%if(prebuild)%> __prebuild__<%endif%> $(OUTPUTDIR)$(NAME)$(EXE_EXT)<%if(postbuild)%> __postbuild__<%endif%>
217 $(OUTPUTDIR)$(NAME)$(EXE_EXT): $(OBJFILES) $(RESOURCE)
218 @if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
223 $(LINKER_EXE_ARGUMENTS)
229 OUTPUTDIR = <%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\\
230 all:<%if(prebuild)%> __prebuild__<%endif%> $(OUTPUTDIR)$(NAME)$(DLL_EXT)<%if(postbuild)%> __postbuild__<%endif%>
232 $(OUTPUTDIR)$(NAME)$(DLL_EXT): $(OBJFILES) $(RESOURCE)
233 @if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
238 $(LINKER_DLL_ARGUMENTS)
245 OUTPUTDIR = <%libout%>\\
246 all:<%if(prebuild)%> __prebuild__<%endif%> $(OUTPUTDIR)$(NAME)$(LIB_EXT)<%if(postbuild)%> __postbuild__<%endif%>
248 $(OUTPUTDIR)$(NAME)$(LIB_EXT): $(OBJFILES)
249 @if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
250 $(TLIB) $(LIBFLAGS) $(OUTPUTDIR)$(NAME)$(LIB_EXT) @&&!
257 <%if(!exename && !sharedname && !staticname)%>
258 all:<%if(prebuild)%> __prebuild__<%endif%><%if(postbuild)%> __postbuild__<%endif%>
263 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)%>\<%basename(custom_type->input_file->output_file)%><%else%><%custom_type->input_file->output_file%><%endif%><%endfor%><%endif%><%endfor%><%endfor%>
264 <%foreach(custom_types)%>
265 <%if(custom_type->libpath)%>
266 PATH = $(PATH);<%custom_type->libpath%>
268 <%foreach(custom_type->input_files)%>
269 <%if(custom_type->input_file->output_files)%>
270 <%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%>: <%custom_type->input_file%><%if(custom_type->input_file->dependencies)%> <%custom_type->input_file->dependencies%><%endif%>
271 <%if(flag_overrides(custom_type->input_file, gendir))%>
272 @if not exist "<%flag_overrides(custom_type->input_file, gendir)%>" mkdir "<%flag_overrides(custom_type->input_file, gendir)%>"
274 <%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%>
275 <%if(flag_overrides(custom_type->input_file, postcommand))%>
276 <%foreach(custom_type->input_file)%>
277 <%flag_overrides(custom_type->input_file, postcommand)%>
280 <%if(custom_type->postcommand)%>
281 <%foreach(custom_type->input_file)%>
282 <%custom_type->postcommand%>
287 <%if(custom_type->pch_postrule)%>
288 <%foreach(custom_type->input_file->source_output_files)%>
289 @echo \#include "<%pch_header%>" > temporary.src
290 @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
291 @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%>
299 <%if(exename || sharedname || staticname)%>
301 $(OBJFILES): $(GENERATED_DIRTY)
303 all:<%if(prebuild)%> __prebuild__<%endif%> $(GENERATED_DIRTY)<%if(postbuild)%> __postbuild__<%endif%>
306 all:<%if(prebuild)%> __prebuild__<%endif%> $(GENERATED_DIRTY)<%if(postbuild)%> __postbuild__<%endif%>
310 generated: $(GENERATED_DIRTY)
313 .path$(OBJ_EXT) = $(INTERMEDIATE)
315 .path.cpp = $(CPPDIR)
317 @if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
318 $(CC) $(DYN_FLAGS) $(STATIC_FLAGS) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREAD_FLAGS) $(CCFLAGS) $(CFLAGS) $(WARN_FLAGS) -c -o $(@D)\$(@F) $<
320 .path.cxx = $(CPPDIR)
322 @if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
323 $(CC) $(DYN_FLAGS) $(STATIC_FLAGS) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREAD_FLAGS) $(CCFLAGS) $(CFLAGS) $(WARN_FLAGS) -c -o $(@D)\$(@F) $<
327 @if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
328 $(CC) $(DYN_FLAGS) $(STATIC_FLAGS) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREAD_FLAGS) $(CCFLAGS) $(CFLAGS) $(WARN_FLAGS) -c -o $(@D)\$(@F) $<
332 @if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
333 $(CC) $(DYN_FLAGS) $(STATIC_FLAGS) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREAD_FLAGS) $(CCFLAGS) $(CFLAGS) $(WARN_FLAGS) -c -o $(@D)\$(@F) $<
337 @if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
338 $(CC) $(DYN_FLAGS) $(STATIC_FLAGS) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREAD_FLAGS) $(CCFLAGS) $(CFLAGS) $(WARN_FLAGS) -c -o $(@D)\$(@F) $<
340 <%foreach(source_files)%>
341 <%if(transdir(source_file) || flag_overrides(source_file, buildflags))%>
342 "$(INTERMEDIATE)\<%transdir(source_file)%><%basenoextension(source_file)%>$(OBJ_EXT)":
343 @if not exist "$(INTERMEDIATE)\<%transdir(source_file)%>" mkdir "$(INTERMEDIATE)\<%transdir(source_file)%>"
344 $(CC) <%if(flag_overrides(source_file, buildflags))%><%flag_overrides(source_file, buildflags)%> <%endif%>$(DYN_FLAGS) $(STATIC_FLAGS) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREAD_FLAGS) $(CCFLAGS) $(CFLAGS) $(WARN_FLAGS) -c -o $(@D)\$(@F) <%source_file%>
347 <%if(resource_files)%>
349 .path.res = $(INTERMEDIATE)
352 @if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
353 $(RC) $(RC_FLAGS) -fo$@ $<
354 <%foreach(resource_files)%>
355 <%if(transdir(resource_file))%>
356 "$(INTERMEDIATE)\<%transdir(resource_file)%><%basenoextension(resource_file)%>.res":
357 @if not exist "$(INTERMEDIATE)\<%transdir(resource_file)%>" mkdir "$(INTERMEDIATE)\<%transdir(resource_file)%>"
358 $(RC) -fo$@ <%resource_file%>
365 @if exist "$(INTERMEDIATE)" rmdir /s/q $(INTERMEDIATE)
368 <%foreach(custom_types)%>
369 <%foreach(custom_type->input_files)%>
370 <%if(custom_type->input_file->output_files)%>
371 <%foreach(custom_type->input_file->output_files)%>
372 <%if(flag_overrides(custom_type->input_file, gendir))%>
373 @del "<%flag_overrides(custom_type->input_file, gendir)%>\<%basename(custom_type->input_file->output_file)%>" 2>NUL
375 @del "<%custom_type->input_file->output_file%>" 2>NUL
382 @del "$(OUTPUTDIR)$(NAME)$(EXE_EXT)" del "$(OUTPUTDIR)$(NAME)$(EXE_EXT)" 2>NUL
385 @del "$(OUTPUTDIR)$(NAME)$(DLL_EXT)" del "$(OUTPUTDIR)$(NAME)$(DLL_EXT)" 2>NUL
388 @del "$(OUTPUTDIR)$(NAME)$(LIB_EXT)" del "$(OUTPUTDIR)$(NAME)$(LIB_EXT)" 2>NUL
391 <%if(exename || sharedname || staticname)%>
392 @del "$(OUTPUTDIR)$(NAME)$(DEBUG_EXT)" 2>NUL