1 |
#----------------------------------------------------------------------------
|
1 |
#----------------------------------------------------------------------------
|
2 |
# Borland Makefile
|
2 |
# Borland Makefile
|
3 |
#
|
3 |
#
|
4 |
# This file was automatically generated by MPC. Any changes made directly to
|
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.
|
5 |
# this file will be lost the next time it is generated.
|
6 |
#
|
6 |
#
|
7 |
#----------------------------------------------------------------------------
|
7 |
#----------------------------------------------------------------------------
|
8 |
<%marker(top)%>
|
8 |
<%marker(top)%>
|
9 |
<%foreach(configurations)%>
|
9 |
<%foreach(configurations)%>
|
10 |
!ifdef <%uc(configuration)%>
|
10 |
!ifdef <%uc(configuration)%>
|
11 |
OCFLAGS = <%if(optimize)%>-O2<%else%>-v -y -Od -vi- -k<%endif%><%foreach(defines debug_macros)%> -D<%define%><%endfor%>
|
11 |
OCFLAGS = <%if(optimize)%>-O2<%else%>-v -y -Od -vi- -k<%endif%><%foreach(defines debug_macros)%> -D<%define%><%endfor%>
|
12 |
CFG_DIR = <%intermediate_dir%>\\
|
12 |
CFG_DIR = <%intermediate_dir%>\\
|
13 |
ILIBMODIFIER = <%lib_modifier%>
|
13 |
ILIBMODIFIER = <%lib_modifier%>
|
14 |
OLIBMODIFIER = <%if(use_lib_modifier)%><%lib_modifier%><%endif%>
|
14 |
OLIBMODIFIER = <%if(use_lib_modifier)%><%lib_modifier%><%endif%>
|
15 |
EXEMODIFIER = <%if(use_exe_modifier)%><%lib_modifier%><%endif%>
|
15 |
EXEMODIFIER = <%if(use_exe_modifier)%><%lib_modifier%><%endif%>
|
16 |
<%if(postlinkrmext)%>
|
16 |
<%if(postlinkrmext)%>
|
17 |
POSTLINKRM = <%postlinkrmext%>
|
17 |
POSTLINKRM = <%postlinkrmext%>
|
18 |
<%endif%>
|
18 |
<%endif%>
|
19 |
<%if(exename)%>
|
19 |
<%if(exename)%>
|
20 |
EXEOUTPUTDIR = <%exeoutputdir(".")%>\\
|
20 |
EXEOUTPUTDIR = <%exeoutputdir(".")%>\\
|
21 |
<%endif%>
|
21 |
<%endif%>
|
22 |
!else
|
22 |
!else
|
23 |
<%endfor%>
|
23 |
<%endfor%>
|
24 |
!error You must define one of these valid configurations: <%configurations%>
|
24 |
!error You must define one of these valid configurations: <%configurations%>
|
25 |
<%foreach(configurations)%>
|
25 |
<%foreach(configurations)%>
|
26 |
!endif
|
26 |
!endif
|
27 |
<%endfor%>
|
27 |
<%endfor%>
|
28 |
|
28 |
|
29 |
!ifdef UNICODE
|
29 |
!ifdef UNICODE
|
30 |
UC_CFLAGS = <%unicode_flags%>
|
30 |
UC_CFLAGS = <%unicode_flags%>
|
31 |
UNICODE_DIR = Unicode\\
|
31 |
UNICODE_DIR = Unicode\\
|
32 |
UC_MAIN = w
|
32 |
UC_MAIN = w
|
33 |
!endif
|
33 |
!endif
|
34 |
|
34 |
|
35 |
!ifdef CODEGUARD
|
35 |
!ifdef CODEGUARD
|
36 |
CG_CFLAGS = -vG
|
36 |
CG_CFLAGS = -vG
|
37 |
CG_LIB = cg32.lib
|
37 |
CG_LIB = cg32.lib
|
38 |
!endif
|
38 |
!endif
|
39 |
|
39 |
|
40 |
<%foreach(compilers)%>
|
40 |
<%foreach(compilers)%>
|
41 |
<%fornotlast("!ifdef")%><%forlast("!else #")%> <%uc(compiler)%>
|
41 |
<%fornotlast("!ifdef")%><%forlast("!else #")%> <%uc(compiler)%>
|
42 |
OBJ_EXT = <%obj_ext%>
|
42 |
OBJ_EXT = <%obj_ext%>
|
43 |
DLL_EXT = <%dll_ext%>
|
43 |
DLL_EXT = <%dll_ext%>
|
44 |
LIB_EXT = <%lib_ext%>
|
44 |
LIB_EXT = <%lib_ext%>
|
45 |
EXE_EXT = <%exe_ext%>
|
45 |
EXE_EXT = <%exe_ext%>
|
46 |
CC = <%cc%>
|
46 |
CC = <%cc%>
|
47 |
RC = <%rc%>
|
47 |
RC = <%rc%>
|
48 |
LINK = <%link%>
|
48 |
LINK = <%link%>
|
49 |
TLIB = <%tlib%>
|
49 |
TLIB = <%tlib%>
|
50 |
THREADFLAGS = <%thflags%>
|
50 |
THREADFLAGS = <%thflags%>
|
51 |
DLLFLAGS = <%dllflags%>
|
51 |
DLLFLAGS = <%dllflags%>
|
52 |
LIBFLAGS = <%libflags%>
|
52 |
LIBFLAGS = <%libflags%>
|
53 |
EXEFLAGS = <%exeflags%>
|
53 |
EXEFLAGS = <%exeflags%>
|
54 |
WARNFLAGS = <%warnflags%>
|
54 |
WARNFLAGS = <%warnflags%>
|
55 |
CCFLAGS = <%ccflags%><%if(compile_flags)%> <%compile_flags%><%endif%>
|
55 |
CCFLAGS = <%ccflags%><%if(compile_flags)%> <%compile_flags%><%endif%>
|
56 |
<%endfor%>
|
56 |
<%endfor%>
|
57 |
!endif
|
57 |
!endif
|
58 |
|
58 |
|
59 |
INTERMEDIATE = $(CFG_DIR)$(UNICODE_DIR)<%noextension(project_name)%>
|
59 |
INTERMEDIATE = $(CFG_DIR)$(UNICODE_DIR)<%noextension(project_name)%>
|
60 |
<%if(exename)%>
|
60 |
<%if(exename)%>
|
61 |
NAME = <%exename%>$(EXEMODIFIER)
|
61 |
NAME = <%exename%>$(EXEMODIFIER)
|
62 |
<%else%>
|
62 |
<%else%>
|
63 |
<%if(sharedname)%>
|
63 |
<%if(sharedname)%>
|
64 |
NAME = <%sharedname%>$(OLIBMODIFIER)
|
64 |
NAME = <%sharedname%>$(OLIBMODIFIER)
|
65 |
<%else%>
|
65 |
<%else%>
|
66 |
<%if(staticname)%>
|
66 |
<%if(staticname)%>
|
67 |
NAME = <%staticname%>$(OLIBMODIFIER)
|
67 |
NAME = <%staticname%>$(OLIBMODIFIER)
|
68 |
<%endif%>
|
68 |
<%endif%>
|
69 |
<%endif%>
|
69 |
<%endif%>
|
70 |
<%endif%>
|
70 |
<%endif%>
|
71 |
CPPDIR = <%cppdir%>
|
71 |
CPPDIR = <%cppdir%>
|
72 |
RESDIR = <%rcdir%>
|
72 |
RESDIR = <%rcdir%>
|
73 |
<%if(exename || sharedname || staticname)%>
|
73 |
<%if(exename || sharedname || staticname)%>
|
74 |
|
74 |
|
75 |
OBJFILES = \
|
75 |
OBJFILES = \
|
76 |
<%foreach(source_files)%>
|
76 |
<%foreach(source_files)%>
|
77 |
"$(INTERMEDIATE)\<%if(dirname(source_file))%><%noextension(source_file)%><%else%><%basenoextension(source_file)%><%endif%>$(OBJ_EXT)"<%fornotlast(" \\")%>
|
77 |
"$(INTERMEDIATE)\<%if(dirname(source_file))%><%noextension(source_file)%><%else%><%basenoextension(source_file)%><%endif%>$(OBJ_EXT)"<%fornotlast(" \\")%>
|
78 |
<%endfor%>
|
78 |
<%endfor%>
|
79 |
<%endif%>
|
79 |
<%endif%>
|
80 |
<%if(libpaths)%>
|
80 |
<%if(libpaths)%>
|
81 |
|
81 |
|
82 |
LFLAGS = \
|
82 |
LFLAGS = \
|
83 |
<%if(StackReserveSize)%>
|
83 |
<%if(StackReserveSize)%>
|
84 |
/S:<%StackReserveSize%> \
|
84 |
/S:<%StackReserveSize%> \
|
85 |
<%endif%>
|
85 |
<%endif%>
|
86 |
<%if(StackCommitSize)%>
|
86 |
<%if(StackCommitSize)%>
|
87 |
/Sc:<%StackCommitSize%> \
|
87 |
/Sc:<%StackCommitSize%> \
|
88 |
<%endif%>
|
88 |
<%endif%>
|
89 |
<%if(!optimize)%>
|
89 |
<%if(!optimize)%>
|
90 |
-v<%if(libpaths)%> \<%endif%>
|
90 |
-v<%if(libpaths)%> \<%endif%>
|
91 |
<%endif%>
|
91 |
<%endif%>
|
92 |
<%foreach(libpaths)%>
|
92 |
<%foreach(libpaths)%>
|
93 |
-L"<%libpath%>" -j"<%libpath%>"<%fornotlast(" \\")%>
|
93 |
-L"<%libpath%>" -j"<%libpath%>"<%fornotlast(" \\")%>
|
94 |
<%endfor%>
|
94 |
<%endfor%>
|
95 |
<%endif%>
|
95 |
<%endif%>
|
96 |
|
96 |
|
97 |
LIBFILES = \
|
97 |
LIBFILES = \
|
98 |
<%foreach(reverse(libs))%>
|
98 |
<%foreach(reverse(libs))%>
|
99 |
<%lib%>$(ILIBMODIFIER)$(LIB_EXT) \
|
99 |
<%lib%>$(ILIBMODIFIER)$(LIB_EXT) \
|
100 |
<%endfor%>
|
100 |
<%endfor%>
|
101 |
<%foreach(reverse(lit_libs))%>
|
101 |
<%foreach(reverse(lit_libs))%>
|
102 |
<%lit_lib%>$(LIB_EXT) \
|
102 |
<%lit_lib%>$(LIB_EXT) \
|
103 |
<%endfor%>
|
103 |
<%endfor%>
|
104 |
<%foreach(reverse(pure_libs))%>
|
104 |
<%foreach(reverse(pure_libs))%>
|
105 |
<%pure_lib%> \
|
105 |
<%pure_lib%> \
|
106 |
<%endfor%>
|
106 |
<%endfor%>
|
107 |
$(CG_LIB) <%common_libs%>
|
107 |
$(CG_LIB) <%common_libs%>
|
108 |
<%if(resource_files && !type_is_static)%>
|
108 |
<%if(resource_files && !type_is_static)%>
|
109 |
|
109 |
|
110 |
RESOURCE = \
|
110 |
RESOURCE = \
|
111 |
<%foreach(resource_files)%>
|
111 |
<%foreach(resource_files)%>
|
112 |
$(INTERMEDIATE)\<%noextension(resource_file)%>.res<%fornotlast(" \\")%>
|
112 |
$(INTERMEDIATE)\<%noextension(resource_file)%>.res<%fornotlast(" \\")%>
|
113 |
<%endfor%>
|
113 |
<%endfor%>
|
114 |
<%endif%>
|
114 |
<%endif%>
|
115 |
|
115 |
|
116 |
<%if(pch_header)%>
|
116 |
<%if(pch_header)%>
|
117 |
# Borland precompiled headers can choke on some header files.
|
117 |
# Borland precompiled headers can choke on some header files.
|
118 |
# Set NO_USE_PCH if you do not want to use precompiled headers.
|
118 |
# Set NO_USE_PCH if you do not want to use precompiled headers.
|
119 |
!ifndef NO_USE_PCH
|
119 |
!ifndef NO_USE_PCH
|
120 |
PCH_CFLAGS = \
|
120 |
PCH_CFLAGS = \
|
121 |
<%foreach(pch_defines)%>
|
121 |
<%foreach(pch_defines)%>
|
122 |
-D<%pch_define%> \
|
122 |
-D<%pch_define%> \
|
123 |
<%endfor%>
|
123 |
<%endfor%>
|
124 |
-H=$(INTERMEDIATE)\<%noextension(project_name)%>.csm -Hh=<%pch_header%>
|
124 |
-H=$(INTERMEDIATE)\<%noextension(project_name)%>.csm -Hh=<%pch_header%>
|
125 |
!endif
|
125 |
!endif
|
126 |
<%endif%>
|
126 |
<%endif%>
|
127 |
|
127 |
|
128 |
CFLAGS = \
|
128 |
CFLAGS = \
|
129 |
$(PCH_CFLAGS) \
|
129 |
$(PCH_CFLAGS) \
|
130 |
<%foreach(cc_flags)%>
|
130 |
<%foreach(cc_flags)%>
|
131 |
<%cc_flags%> \
|
131 |
<%cc_flags%> \
|
132 |
<%endfor%>
|
132 |
<%endfor%>
|
133 |
<%foreach(common_flags)%>
|
133 |
<%foreach(common_flags)%>
|
134 |
<%common_flags%> \
|
134 |
<%common_flags%> \
|
135 |
<%endfor%>
|
135 |
<%endfor%>
|
136 |
<%foreach(macros common_defines)%>
|
136 |
<%foreach(macros common_defines)%>
|
137 |
-D<%macro%> \
|
137 |
-D<%macro%> \
|
138 |
<%endfor%>
|
138 |
<%endfor%>
|
139 |
<%if(type_is_static || need_staticflags)%>
|
139 |
<%if(type_is_static || need_staticflags)%>
|
140 |
<%if(staticflags)%>
|
140 |
<%if(staticflags)%>
|
141 |
<%foreach(staticflags)%>
|
141 |
<%foreach(staticflags)%>
|
142 |
-D<%staticflag%> \
|
142 |
-D<%staticflag%> \
|
143 |
<%endfor%>
|
143 |
<%endfor%>
|
144 |
<%endif%>
|
144 |
<%endif%>
|
145 |
<%else%>
|
145 |
<%else%>
|
146 |
<%if(dynamicflags)%>
|
146 |
<%if(dynamicflags)%>
|
147 |
<%foreach(dynamicflags)%>
|
147 |
<%foreach(dynamicflags)%>
|
148 |
-D<%dynamicflag%> \
|
148 |
-D<%dynamicflag%> \
|
149 |
<%endfor%>
|
149 |
<%endfor%>
|
150 |
<%endif%>
|
150 |
<%endif%>
|
151 |
<%endif%>
|
151 |
<%endif%>
|
152 |
<%foreach(includes)%>
|
152 |
<%foreach(includes)%>
|
153 |
-I"<%include%>" \
|
153 |
-I"<%include%>" \
|
154 |
<%endfor%>
|
154 |
<%endfor%>
|
155 |
$(DUMMY_VALUE_NOT_ENDING_IN_BACKSLASH)
|
155 |
$(DUMMY_VALUE_NOT_ENDING_IN_BACKSLASH)
|
156 |
|
156 |
|
157 |
<%marker(macros)%>
|
157 |
<%marker(macros)%>
|
158 |
<%if(exename)%>
|
158 |
<%if(exename)%>
|
159 |
OUTPUTDIR = <%if(install)%><%install%>\\<%else%>$(EXEOUTPUTDIR)<%endif%>
|
159 |
OUTPUTDIR = <%if(install)%><%install%>\\<%else%>$(EXEOUTPUTDIR)<%endif%>
|
160 |
all: $(OUTPUTDIR)$(NAME)$(EXE_EXT)<%if(postbuild)%> __postbuild__<%endif%>
|
160 |
all: $(OUTPUTDIR)$(NAME)$(EXE_EXT)<%if(postbuild)%> __postbuild__<%endif%>
|
161 |
|
161 |
|
162 |
$(OUTPUTDIR)$(NAME)$(EXE_EXT): $(OBJFILES) $(RESOURCE)
|
162 |
$(OUTPUTDIR)$(NAME)$(EXE_EXT): $(OBJFILES) $(RESOURCE)
|
163 |
@if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
|
163 |
@if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
|
164 |
$(LINK) @&&!
|
164 |
$(LINK) @&&!
|
165 |
$(EXEFLAGS) $(LFLAGS) <%startup_obj%>$(UC_MAIN)$(OBJ_EXT) $(OBJFILES), $(OUTPUTDIR)$(NAME)$(EXE_EXT),, $(LIBFILES),, $(RESOURCE)
|
165 |
$(EXEFLAGS) $(LFLAGS) <%startup_obj%>$(UC_MAIN)$(OBJ_EXT) $(OBJFILES), $(OUTPUTDIR)$(NAME)$(EXE_EXT),, $(LIBFILES),, $(RESOURCE)
|
166 |
!
|
166 |
!
|
167 |
|
167 |
|
168 |
<%endif%>
|
168 |
<%endif%>
|
169 |
<%if(sharedname)%>
|
169 |
<%if(sharedname)%>
|
170 |
OUTPUTDIR = <%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\\
|
170 |
OUTPUTDIR = <%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\\
|
171 |
all: $(OUTPUTDIR)$(NAME)$(DLL_EXT)<%if(postbuild)%> __postbuild__<%endif%>
|
171 |
all: $(OUTPUTDIR)$(NAME)$(DLL_EXT)<%if(postbuild)%> __postbuild__<%endif%>
|
172 |
|
172 |
|
173 |
$(OUTPUTDIR)$(NAME)$(DLL_EXT): $(OBJFILES) $(RESOURCE)
|
173 |
$(OUTPUTDIR)$(NAME)$(DLL_EXT): $(OBJFILES) $(RESOURCE)
|
174 |
@if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
|
174 |
@if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
|
175 |
$(LINK) @&&!
|
175 |
$(LINK) @&&!
|
176 |
$(DLLFLAGS) $(LFLAGS) <%startup_obj%>$(UC_MAIN)$(OBJ_EXT) $(OBJFILES), $(OUTPUTDIR)$(NAME)$(DLL_EXT),, $(LIBFILES),, $(RESOURCE)
|
176 |
$(DLLFLAGS) $(LFLAGS) <%startup_obj%>$(UC_MAIN)$(OBJ_EXT) $(OBJFILES), $(OUTPUTDIR)$(NAME)$(DLL_EXT),, $(LIBFILES),, $(RESOURCE)
|
177 |
!
|
177 |
!
|
178 |
|
178 |
|
179 |
<%endif%>
|
179 |
<%endif%>
|
180 |
<%if(type_is_static && staticname)%>
|
180 |
<%if(type_is_static && staticname)%>
|
181 |
OUTPUTDIR = <%libout%>\\
|
181 |
OUTPUTDIR = <%libout%>\\
|
182 |
all: $(OUTPUTDIR)$(NAME)$(LIB_EXT)<%if(postbuild)%> __postbuild__<%endif%>
|
182 |
all: $(OUTPUTDIR)$(NAME)$(LIB_EXT)<%if(postbuild)%> __postbuild__<%endif%>
|
183 |
|
183 |
|
184 |
$(OUTPUTDIR)$(NAME)$(LIB_EXT): $(OBJFILES)
|
184 |
$(OUTPUTDIR)$(NAME)$(LIB_EXT): $(OBJFILES)
|
185 |
@if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
|
185 |
@if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
|
186 |
$(TLIB) $(LIBFLAGS) $(OUTPUTDIR)$(NAME)$(LIB_EXT) @&&!
|
186 |
$(TLIB) $(LIBFLAGS) $(OUTPUTDIR)$(NAME)$(LIB_EXT) @&&!
|
187 |
+ $(**: = &^
|
187 |
+ $(**: = &^
|
188 |
+ )
|
188 |
+ )
|
189 |
!
|
189 |
!
|
190 |
|
190 |
|
191 |
<%endif%>
|
191 |
<%endif%>
|
192 |
<%if(!exename && !sharedname && !staticname)%>
|
192 |
<%if(!exename && !sharedname && !staticname)%>
|
193 |
all:<%if(postbuild)%> __postbuild__<%endif%>
|
193 |
all:<%if(postbuild)%> __postbuild__<%endif%>
|
194 |
@-rem
|
194 |
@-rem
|
195 |
|
195 |
|
196 |
<%endif%>
|
196 |
<%endif%>
|
197 |
<%if(custom_types)%>
|
197 |
<%if(custom_types)%>
|
198 |
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%>
|
198 |
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%>
|
199 |
<%foreach(custom_types)%>
|
199 |
<%foreach(custom_types)%>
|
200 |
<%foreach(custom_type->input_files)%>
|
200 |
<%foreach(custom_type->input_files)%>
|
201 |
<%if(custom_type->input_file->output_files)%>
|
201 |
<%if(custom_type->input_file->output_files)%>
|
202 |
<%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%>
|
202 |
<%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%>
|
203 |
<%if(flag_overrides(custom_type->input_file, gendir))%>
|
203 |
<%if(flag_overrides(custom_type->input_file, gendir))%>
|
204 |
@if not exist <%flag_overrides(custom_type->input_file, gendir)%> mkdir <%flag_overrides(custom_type->input_file, gendir)%>
|
204 |
@if not exist <%flag_overrides(custom_type->input_file, gendir)%> mkdir <%flag_overrides(custom_type->input_file, gendir)%>
|
205 |
<%endif%>
|
205 |
<%endif%>
|
206 |
<%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%> <%custom_type->input_file%> <%if(custom_type->output_option)%><%custom_type->output_option%> $@<%endif%>
|
206 |
<%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%> <%custom_type->input_file%> <%if(custom_type->output_option)%><%custom_type->output_option%> $@<%endif%>
|
207 |
<%if(flag_overrides(custom_type->input_file, postcommand))%>
|
207 |
<%if(flag_overrides(custom_type->input_file, postcommand))%>
|
208 |
<%foreach(custom_type->input_file)%>
|
208 |
<%foreach(custom_type->input_file)%>
|
209 |
<%flag_overrides(custom_type->input_file, postcommand)%>
|
209 |
<%flag_overrides(custom_type->input_file, postcommand)%>
|
210 |
<%endfor%>
|
210 |
<%endfor%>
|
211 |
<%else%>
|
211 |
<%else%>
|
212 |
<%if(custom_type->postcommand)%>
|
212 |
<%if(custom_type->postcommand)%>
|
213 |
<%foreach(custom_type->input_file)%>
|
213 |
<%foreach(custom_type->input_file)%>
|
214 |
<%custom_type->postcommand%>
|
214 |
<%custom_type->postcommand%>
|
215 |
<%endfor%>
|
215 |
<%endfor%>
|
216 |
<%endif%>
|
216 |
<%endif%>
|
217 |
<%endif%>
|
217 |
<%endif%>
|
218 |
<%if(pch_header)%>
|
218 |
<%if(pch_header)%>
|
219 |
<%if(custom_type->pch_postrule)%>
|
219 |
<%if(custom_type->pch_postrule)%>
|
220 |
<%foreach(custom_type->input_file->source_output_files)%>
|
220 |
<%foreach(custom_type->input_file->source_output_files)%>
|
221 |
@echo \#include "<%pch_header%>" > temporary.src
|
221 |
@echo \#include "<%pch_header%>" > temporary.src
|
222 |
@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
|
222 |
@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
|
223 |
@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%>
|
223 |
@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%>
|
224 |
<%endfor%>
|
224 |
<%endfor%>
|
225 |
<%endif%>
|
225 |
<%endif%>
|
226 |
<%endif%>
|
226 |
<%endif%>
|
227 |
|
227 |
|
228 |
<%endif%>
|
228 |
<%endif%>
|
229 |
<%endfor%>
|
229 |
<%endfor%>
|
230 |
<%endfor%>
|
230 |
<%endfor%>
|
231 |
<%if(exename || sharedname || staticname)%>
|
231 |
<%if(exename || sharedname || staticname)%>
|
232 |
<%if(source_files)%>
|
232 |
<%if(source_files)%>
|
233 |
$(OBJFILES): $(GENERATED_DIRTY)
|
233 |
$(OBJFILES): $(GENERATED_DIRTY)
|
234 |
<%else%>
|
234 |
<%else%>
|
235 |
all: $(GENERATED_DIRTY)<%if(postbuild)%> __postbuild__<%endif%>
|
235 |
all: $(GENERATED_DIRTY)<%if(postbuild)%> __postbuild__<%endif%>
|
236 |
<%endif%>
|
236 |
<%endif%>
|
237 |
<%else%>
|
237 |
<%else%>
|
238 |
all: $(GENERATED_DIRTY)<%if(postbuild)%> __postbuild__<%endif%>
|
238 |
all: $(GENERATED_DIRTY)<%if(postbuild)%> __postbuild__<%endif%>
|
239 |
<%endif%>
|
239 |
<%endif%>
|
240 |
|
240 |
|
241 |
<%endif%>
|
241 |
<%endif%>
|
242 |
generated: $(GENERATED_DIRTY)
|
242 |
generated: $(GENERATED_DIRTY)
|
243 |
@-rem
|
243 |
@-rem
|
244 |
|
244 |
|
245 |
.path$(OBJ_EXT) = $(INTERMEDIATE)
|
245 |
.path$(OBJ_EXT) = $(INTERMEDIATE)
|
246 |
|
246 |
|
247 |
.path.cpp = $(CPPDIR)
|
247 |
.path.cpp = $(CPPDIR)
|
248 |
.cpp$(OBJ_EXT):
|
248 |
.cpp$(OBJ_EXT):
|
249 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
249 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
250 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) $<
|
250 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) $<
|
251 |
|
251 |
|
252 |
.path.cxx = $(CPPDIR)
|
252 |
.path.cxx = $(CPPDIR)
|
253 |
.cxx$(OBJ_EXT):
|
253 |
.cxx$(OBJ_EXT):
|
254 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
254 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
255 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) $<
|
255 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) $<
|
256 |
|
256 |
|
257 |
.path.cc = $(CPPDIR)
|
257 |
.path.cc = $(CPPDIR)
|
258 |
.cc$(OBJ_EXT):
|
258 |
.cc$(OBJ_EXT):
|
259 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
259 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
260 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) $<
|
260 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) $<
|
261 |
|
261 |
|
262 |
.path.C = $(CPPDIR)
|
262 |
.path.C = $(CPPDIR)
|
263 |
.C$(OBJ_EXT):
|
263 |
.C$(OBJ_EXT):
|
264 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
264 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
265 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) $<
|
265 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) $<
|
266 |
|
266 |
|
267 |
.path.c = $(CPPDIR)
|
267 |
.path.c = $(CPPDIR)
|
268 |
.c$(OBJ_EXT):
|
268 |
.c$(OBJ_EXT):
|
269 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
269 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
270 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) $<
|
270 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) $<
|
271 |
|
271 |
|
272 |
<%foreach(source_files)%>
|
272 |
<%foreach(source_files)%>
|
273 |
<%if(dirname(source_file))%>
|
273 |
<%if(dirname(source_file))%>
|
274 |
"$(INTERMEDIATE)\<%noextension(source_file)%>$(OBJ_EXT)":
|
274 |
"$(INTERMEDIATE)\<%noextension(source_file)%>$(OBJ_EXT)":
|
275 |
@if not exist "$(INTERMEDIATE)\<%dirname(source_file)%>" mkdir "$(INTERMEDIATE)\<%dirname(source_file)%>"
|
275 |
@if not exist "$(INTERMEDIATE)\<%dirname(source_file)%>" mkdir "$(INTERMEDIATE)\<%dirname(source_file)%>"
|
276 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) <%source_file%>
|
276 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) <%source_file%>
|
277 |
|
277 |
|
278 |
<%endif%>
|
278 |
<%endif%>
|
279 |
<%endfor%>
|
279 |
<%endfor%>
|
280 |
<%if(resource_files && !type_is_static)%>
|
280 |
<%if(resource_files && !type_is_static)%>
|
281 |
.path.res = $(INTERMEDIATE)
|
281 |
.path.res = $(INTERMEDIATE)
|
282 |
|
282 |
|
283 |
.path.rc = $(RESDIR)
|
283 |
.path.rc = $(RESDIR)
|
284 |
.rc.res:
|
284 |
.rc.res:
|
285 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
285 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
286 |
$(RC) -fo$@ $<
|
286 |
$(RC) -fo$@ $<
|
287 |
|
287 |
|
288 |
<%foreach(resource_files)%>
|
288 |
<%foreach(resource_files)%>
|
289 |
<%if(dirname(resource_file))%>
|
289 |
<%if(dirname(resource_file))%>
|
290 |
"$(INTERMEDIATE)\<%noextension(resource_file)%>.res":
|
290 |
"$(INTERMEDIATE)\<%noextension(resource_file)%>.res":
|
291 |
@if not exist "$(INTERMEDIATE)\<%dirname(resource_file)%>" mkdir "$(INTERMEDIATE)\<%dirname(resource_file)%>"
|
291 |
@if not exist "$(INTERMEDIATE)\<%dirname(resource_file)%>" mkdir "$(INTERMEDIATE)\<%dirname(resource_file)%>"
|
292 |
$(RC) -fo$@ <%resource_file%>
|
292 |
$(RC) -fo$@ <%resource_file%>
|
293 |
|
293 |
|
294 |
<%endif%>
|
294 |
<%endif%>
|
295 |
<%endfor%>
|
295 |
<%endfor%>
|
296 |
<%endif%>
|
296 |
<%endif%>
|
297 |
clean:
|
297 |
clean:
|
298 |
if exist "$(INTERMEDIATE)" rmdir /s/q $(INTERMEDIATE)
|
298 |
if exist "$(INTERMEDIATE)" rmdir /s/q $(INTERMEDIATE)
|
299 |
|
299 |
|
300 |
realclean: clean
|
300 |
realclean: clean
|
301 |
<%foreach(custom_types)%>
|
301 |
<%foreach(custom_types)%>
|
302 |
<%foreach(custom_type->input_files)%>
|
302 |
<%foreach(custom_type->input_files)%>
|
303 |
<%if(custom_type->input_file->output_files)%>
|
303 |
<%if(custom_type->input_file->output_files)%>
|
304 |
<%foreach(custom_type->input_file->output_files)%>
|
304 |
<%foreach(custom_type->input_file->output_files)%>
|
305 |
<%if(flag_overrides(custom_type->input_file, gendir))%>
|
305 |
<%if(flag_overrides(custom_type->input_file, gendir))%>
|
306 |
if exist "<%flag_overrides(custom_type->input_file, gendir)%>\<%basename(custom_type->input_file->output_file)%>" del <%flag_overrides(custom_type->input_file, gendir)%>\<%basename(custom_type->input_file->output_file)%>
|
306 |
if exist "<%flag_overrides(custom_type->input_file, gendir)%>\<%basename(custom_type->input_file->output_file)%>" del <%flag_overrides(custom_type->input_file, gendir)%>\<%basename(custom_type->input_file->output_file)%>
|
307 |
<%else%>
|
307 |
<%else%>
|
308 |
if exist "<%custom_type->input_file->output_file%>" del <%custom_type->input_file->output_file%>
|
308 |
if exist "<%custom_type->input_file->output_file%>" del <%custom_type->input_file->output_file%>
|
309 |
<%endif%>
|
309 |
<%endif%>
|
310 |
<%endfor%>
|
310 |
<%endfor%>
|
311 |
<%endif%>
|
311 |
<%endif%>
|
312 |
<%endfor%>
|
312 |
<%endfor%>
|
313 |
<%endfor%>
|
313 |
<%endfor%>
|
314 |
<%if(exename)%>
|
314 |
<%if(exename)%>
|
315 |
if exist "$(OUTPUTDIR)$(NAME)$(EXE_EXT)" del $(OUTPUTDIR)$(NAME)$(EXE_EXT)
|
315 |
if exist "$(OUTPUTDIR)$(NAME)$(EXE_EXT)" del $(OUTPUTDIR)$(NAME)$(EXE_EXT)
|
316 |
<%else%>
|
316 |
<%else%>
|
317 |
<%if(sharedname)%>
|
317 |
<%if(sharedname)%>
|
318 |
if exist "$(OUTPUTDIR)$(NAME)$(DLL_EXT)" del $(OUTPUTDIR)$(NAME)$(DLL_EXT)
|
318 |
if exist "$(OUTPUTDIR)$(NAME)$(DLL_EXT)" del $(OUTPUTDIR)$(NAME)$(DLL_EXT)
|
319 |
<%endif%>
|
319 |
<%endif%>
|
320 |
<%if(staticname)%>
|
320 |
<%if(staticname)%>
|
321 |
if exist "$(OUTPUTDIR)$(NAME)$(LIB_EXT)" del $(OUTPUTDIR)$(NAME)$(LIB_EXT)
|
321 |
if exist "$(OUTPUTDIR)$(NAME)$(LIB_EXT)" del $(OUTPUTDIR)$(NAME)$(LIB_EXT)
|
322 |
<%endif%>
|
322 |
<%endif%>
|
323 |
<%endif%>
|
323 |
<%endif%>
|
324 |
<%if(exename || sharedname || staticname)%>
|
324 |
<%if(exename || sharedname || staticname)%>
|
325 |
if exist "$(OUTPUTDIR)$(NAME)$(POSTLINKRM)" del $(OUTPUTDIR)$(NAME)$(POSTLINKRM)
|
325 |
if exist "$(OUTPUTDIR)$(NAME)$(POSTLINKRM)" del $(OUTPUTDIR)$(NAME)$(POSTLINKRM)
|
326 |
<%endif%>
|
326 |
<%endif%>
|
327 |
|
327 |
|
328 |
<%if(postbuild)%>
|
328 |
<%if(postbuild)%>
|
329 |
__postbuild__:
|
329 |
__postbuild__:
|
330 |
@<%eval(postbuild)%>
|
330 |
@<%eval(postbuild)%>
|
331 |
|
331 |
|
332 |
<%endif%>
|
332 |
<%endif%>
|
333 |
<%marker(local)%>
|
333 |
<%marker(local)%>
|
334 |
<%marker(bottom)%>
|
334 |
<%marker(bottom)%>
|
335 |
|
335 |
|