Line 6... |
Line 6... |
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%><%if(debug_prj)%>-v -y -Od -vi- -k<%foreach(debug_macros)%> -D<%debug_macro%><%endfor%><%endif%><%endif%><%foreach(defines)%> -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)%>
|
Line 35... |
Line 35... |
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 |
<%if(use_vcl)%>
|
- |
|
41 |
STARTUP_LETTER = <%if(exename)%>w<%else%><%startup_letter%><%endif%>
|
- |
|
42 |
<%else%>
|
- |
|
43 |
VCL_CFLAGS = -D_NO_VCL
|
- |
|
44 |
STARTUP_LETTER = <%startup_letter%>
|
- |
|
45 |
<%endif%>
|
- |
|
46 |
STARTUP_OBJ = c0$(STARTUP_LETTER)32$(UC_MAIN)$(OBJ_EXT)
|
- |
|
47 |
|
40 |
<%foreach(compilers)%>
|
48 |
<%foreach(compilers)%>
|
41 |
<%fornotlast("!ifdef")%><%forlast("!else #")%> <%uc(compiler)%>
|
49 |
<%fornotlast("!ifdef")%><%forlast("!else #")%> <%uc(compiler)%>
|
42 |
OBJ_EXT = <%obj_ext%>
|
50 |
OBJ_EXT = <%obj_ext%>
|
43 |
DLL_EXT = <%dll_ext%>
|
51 |
DLL_EXT = <%dll_ext%>
|
44 |
LIB_EXT = <%lib_ext%>
|
52 |
LIB_EXT = <%lib_ext%>
|
Line 50... |
Line 58... |
50 |
THREADFLAGS = <%thflags%>
|
58 |
THREADFLAGS = <%thflags%>
|
51 |
DLLFLAGS = <%dllflags%>
|
59 |
DLLFLAGS = <%dllflags%>
|
52 |
LIBFLAGS = <%libflags%>
|
60 |
LIBFLAGS = <%libflags%>
|
53 |
EXEFLAGS = <%exeflags%>
|
61 |
EXEFLAGS = <%exeflags%>
|
54 |
WARNFLAGS = <%warnflags%>
|
62 |
WARNFLAGS = <%warnflags%>
|
55 |
CCFLAGS = <%ccflags%><%if(compile_flags)%> <%compile_flags%><%endif%>
|
63 |
CCFLAGS = <%ccflags%><%if(type_is_binary)%> <%binary_compile_flags("-tWR -tWD")%><%endif%><%if(compile_flags)%> <%compile_flags%><%endif%>
|
56 |
<%endfor%>
|
64 |
<%endfor%>
|
57 |
!endif
|
65 |
!endif
|
58 |
|
66 |
|
59 |
INTERMEDIATE = $(CFG_DIR)$(UNICODE_DIR)<%noextension(project_name)%>
|
67 |
INTERMEDIATE = $(CFG_DIR)$(UNICODE_DIR)<%noextension(project_name)%>
|
60 |
<%if(exename)%>
|
68 |
<%if(exename)%>
|
Line 72... |
Line 80... |
72 |
RESDIR = <%rcdir%>
|
80 |
RESDIR = <%rcdir%>
|
73 |
<%if(exename || sharedname || staticname)%>
|
81 |
<%if(exename || sharedname || staticname)%>
|
74 |
|
82 |
|
75 |
OBJFILES = \
|
83 |
OBJFILES = \
|
76 |
<%foreach(source_files)%>
|
84 |
<%foreach(source_files)%>
|
77 |
"$(INTERMEDIATE)\<%if(dirname(source_file))%><%noextension(source_file)%><%else%><%basenoextension(source_file)%><%endif%>$(OBJ_EXT)"<%fornotlast(" \\")%>
|
85 |
"$(INTERMEDIATE)\<%transdir(source_file)%><%basenoextension(source_file)%>$(OBJ_EXT)"<%fornotlast(" \\")%>
|
78 |
<%endfor%>
|
86 |
<%endfor%>
|
79 |
<%endif%>
|
87 |
<%endif%>
|
80 |
<%if(libpaths)%>
|
88 |
<%if(libpaths)%>
|
81 |
|
89 |
|
82 |
LFLAGS = \
|
90 |
LFLAGS = \
|
Line 107... |
Line 115... |
107 |
$(CG_LIB) <%common_libs%>
|
115 |
$(CG_LIB) <%common_libs%>
|
108 |
<%if(resource_files && !type_is_static)%>
|
116 |
<%if(resource_files && !type_is_static)%>
|
109 |
|
117 |
|
110 |
RESOURCE = \
|
118 |
RESOURCE = \
|
111 |
<%foreach(resource_files)%>
|
119 |
<%foreach(resource_files)%>
|
112 |
$(INTERMEDIATE)\<%noextension(resource_file)%>.res<%fornotlast(" \\")%>
|
120 |
$(INTERMEDIATE)\<%transdir(resource_file)%><%basenoextension(resource_file)%>.res<%fornotlast(" \\")%>
|
113 |
<%endfor%>
|
121 |
<%endfor%>
|
114 |
<%if(includes)%>
|
122 |
<%if(includes)%>
|
115 |
|
123 |
|
116 |
RC_FLAGS = \
|
124 |
RC_FLAGS = \
|
117 |
<%foreach(includes)%>
|
125 |
<%foreach(includes)%>
|
Line 131... |
Line 139... |
131 |
-H=$(INTERMEDIATE)\<%noextension(project_name)%>.csm -Hh=<%pch_header%>
|
139 |
-H=$(INTERMEDIATE)\<%noextension(project_name)%>.csm -Hh=<%pch_header%>
|
132 |
!endif
|
140 |
!endif
|
133 |
<%endif%>
|
141 |
<%endif%>
|
134 |
|
142 |
|
135 |
CFLAGS = \
|
143 |
CFLAGS = \
|
136 |
$(PCH_CFLAGS) \
|
- |
|
137 |
<%foreach(cc_flags)%>
|
144 |
<%foreach(cc_flags)%>
|
138 |
<%cc_flags%> \
|
145 |
<%cc_flags%> \
|
139 |
<%endfor%>
|
146 |
<%endfor%>
|
140 |
<%foreach(common_flags)%>
|
147 |
<%foreach(common_flags)%>
|
141 |
<%common_flags%> \
|
148 |
<%common_flags%> \
|
Line 157... |
Line 164... |
157 |
<%endif%>
|
164 |
<%endif%>
|
158 |
<%endif%>
|
165 |
<%endif%>
|
159 |
<%foreach(includes)%>
|
166 |
<%foreach(includes)%>
|
160 |
-I"<%include%>" \
|
167 |
-I"<%include%>" \
|
161 |
<%endfor%>
|
168 |
<%endfor%>
|
- |
|
169 |
$(PCH_CFLAGS) \
|
162 |
$(DUMMY_VALUE_NOT_ENDING_IN_BACKSLASH)
|
170 |
$(VCL_CFLAGS)
|
163 |
|
171 |
|
164 |
<%marker(macros)%>
|
172 |
<%marker(macros)%>
|
165 |
<%if(exename)%>
|
173 |
<%if(exename)%>
|
166 |
OUTPUTDIR = <%if(install)%><%install%>\\<%else%>$(EXEOUTPUTDIR)<%endif%>
|
174 |
OUTPUTDIR = <%if(install)%><%install%>\\<%else%>$(EXEOUTPUTDIR)<%endif%>
|
167 |
all: $(OUTPUTDIR)$(NAME)$(EXE_EXT)<%if(postbuild)%> __postbuild__<%endif%>
|
175 |
all:<%if(prebuild)%> __prebuild__<%endif%> $(OUTPUTDIR)$(NAME)$(EXE_EXT)<%if(postbuild)%> __postbuild__<%endif%>
|
168 |
|
176 |
|
169 |
$(OUTPUTDIR)$(NAME)$(EXE_EXT): $(OBJFILES) $(RESOURCE)
|
177 |
$(OUTPUTDIR)$(NAME)$(EXE_EXT): $(OBJFILES) $(RESOURCE)
|
170 |
@if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
|
178 |
@if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
|
171 |
$(LINK) @&&!
|
179 |
$(LINK) @&&!
|
172 |
$(EXEFLAGS) $(LFLAGS) <%startup_obj%>$(UC_MAIN)$(OBJ_EXT) $(OBJFILES), $(OUTPUTDIR)$(NAME)$(EXE_EXT),, $(LIBFILES),, $(RESOURCE)
|
180 |
$(EXEFLAGS) $(LFLAGS) $(STARTUP_OBJ) $(OBJFILES), $(OUTPUTDIR)$(NAME)$(EXE_EXT),, $(LIBFILES),, $(RESOURCE)
|
173 |
!
|
181 |
!
|
174 |
|
182 |
|
175 |
<%endif%>
|
183 |
<%endif%>
|
176 |
<%if(sharedname)%>
|
184 |
<%if(sharedname)%>
|
177 |
OUTPUTDIR = <%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\\
|
185 |
OUTPUTDIR = <%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\\
|
178 |
all: $(OUTPUTDIR)$(NAME)$(DLL_EXT)<%if(postbuild)%> __postbuild__<%endif%>
|
186 |
all:<%if(prebuild)%> __prebuild__<%endif%> $(OUTPUTDIR)$(NAME)$(DLL_EXT)<%if(postbuild)%> __postbuild__<%endif%>
|
179 |
|
187 |
|
180 |
$(OUTPUTDIR)$(NAME)$(DLL_EXT): $(OBJFILES) $(RESOURCE)
|
188 |
$(OUTPUTDIR)$(NAME)$(DLL_EXT): $(OBJFILES) $(RESOURCE)
|
181 |
@if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
|
189 |
@if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
|
182 |
$(LINK) @&&!
|
190 |
$(LINK) @&&!
|
183 |
$(DLLFLAGS) $(LFLAGS) <%startup_obj%>$(UC_MAIN)$(OBJ_EXT) $(OBJFILES), $(OUTPUTDIR)$(NAME)$(DLL_EXT),, $(LIBFILES),, $(RESOURCE)
|
191 |
$(DLLFLAGS) $(LFLAGS) $(STARTUP_OBJ) $(OBJFILES), $(OUTPUTDIR)$(NAME)$(DLL_EXT),, $(LIBFILES),, $(RESOURCE)
|
184 |
!
|
192 |
!
|
185 |
|
193 |
|
186 |
<%endif%>
|
194 |
<%endif%>
|
187 |
<%if(type_is_static && staticname)%>
|
195 |
<%if(type_is_static && staticname)%>
|
188 |
OUTPUTDIR = <%libout%>\\
|
196 |
OUTPUTDIR = <%libout%>\\
|
189 |
all: $(OUTPUTDIR)$(NAME)$(LIB_EXT)<%if(postbuild)%> __postbuild__<%endif%>
|
197 |
all:<%if(prebuild)%> __prebuild__<%endif%> $(OUTPUTDIR)$(NAME)$(LIB_EXT)<%if(postbuild)%> __postbuild__<%endif%>
|
190 |
|
198 |
|
191 |
$(OUTPUTDIR)$(NAME)$(LIB_EXT): $(OBJFILES)
|
199 |
$(OUTPUTDIR)$(NAME)$(LIB_EXT): $(OBJFILES)
|
192 |
@if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
|
200 |
@if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
|
193 |
$(TLIB) $(LIBFLAGS) $(OUTPUTDIR)$(NAME)$(LIB_EXT) @&&!
|
201 |
$(TLIB) $(LIBFLAGS) $(OUTPUTDIR)$(NAME)$(LIB_EXT) @&&!
|
194 |
+ $(**: = &^
|
202 |
+ $(**: = &^
|
195 |
+ )
|
203 |
+ )
|
196 |
!
|
204 |
!
|
197 |
|
205 |
|
198 |
<%endif%>
|
206 |
<%endif%>
|
199 |
<%if(!exename && !sharedname && !staticname)%>
|
207 |
<%if(!exename && !sharedname && !staticname)%>
|
200 |
all:<%if(postbuild)%> __postbuild__<%endif%>
|
208 |
all:<%if(prebuild)%> __prebuild__<%endif%><%if(postbuild)%> __postbuild__<%endif%>
|
201 |
@-rem
|
209 |
@-rem
|
202 |
|
210 |
|
203 |
<%endif%>
|
211 |
<%endif%>
|
204 |
<%if(custom_types)%>
|
212 |
<%if(custom_types)%>
|
205 |
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%>
|
213 |
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%>
|
206 |
<%foreach(custom_types)%>
|
214 |
<%foreach(custom_types)%>
|
- |
|
215 |
<%if(custom_type->libpath)%>
|
- |
|
216 |
PATH = $(PATH);<%custom_type->libpath%>
|
- |
|
217 |
<%endif%>
|
207 |
<%foreach(custom_type->input_files)%>
|
218 |
<%foreach(custom_type->input_files)%>
|
208 |
<%if(custom_type->input_file->output_files)%>
|
219 |
<%if(custom_type->input_file->output_files)%>
|
209 |
<%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%>
|
220 |
<%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%>
|
210 |
<%if(flag_overrides(custom_type->input_file, gendir))%>
|
221 |
<%if(flag_overrides(custom_type->input_file, gendir))%>
|
211 |
@if not exist <%flag_overrides(custom_type->input_file, gendir)%> mkdir <%flag_overrides(custom_type->input_file, gendir)%>
|
222 |
@if not exist "<%flag_overrides(custom_type->input_file, gendir)%>" mkdir "<%flag_overrides(custom_type->input_file, gendir)%>"
|
212 |
<%endif%>
|
223 |
<%endif%>
|
213 |
<%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->output_option%> $@<%endif%> <%custom_type->input_file%>
|
224 |
<%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->output_option%> $@<%endif%> <%custom_type->input_file%>
|
214 |
<%if(flag_overrides(custom_type->input_file, postcommand))%>
|
225 |
<%if(flag_overrides(custom_type->input_file, postcommand))%>
|
215 |
<%foreach(custom_type->input_file)%>
|
226 |
<%foreach(custom_type->input_file)%>
|
216 |
<%flag_overrides(custom_type->input_file, postcommand)%>
|
227 |
<%flag_overrides(custom_type->input_file, postcommand)%>
|
Line 237... |
Line 248... |
237 |
<%endfor%>
|
248 |
<%endfor%>
|
238 |
<%if(exename || sharedname || staticname)%>
|
249 |
<%if(exename || sharedname || staticname)%>
|
239 |
<%if(source_files)%>
|
250 |
<%if(source_files)%>
|
240 |
$(OBJFILES): $(GENERATED_DIRTY)
|
251 |
$(OBJFILES): $(GENERATED_DIRTY)
|
241 |
<%else%>
|
252 |
<%else%>
|
242 |
all: $(GENERATED_DIRTY)<%if(postbuild)%> __postbuild__<%endif%>
|
253 |
all:<%if(prebuild)%> __prebuild__<%endif%> $(GENERATED_DIRTY)<%if(postbuild)%> __postbuild__<%endif%>
|
243 |
<%endif%>
|
254 |
<%endif%>
|
244 |
<%else%>
|
255 |
<%else%>
|
245 |
all: $(GENERATED_DIRTY)<%if(postbuild)%> __postbuild__<%endif%>
|
256 |
all:<%if(prebuild)%> __prebuild__<%endif%> $(GENERATED_DIRTY)<%if(postbuild)%> __postbuild__<%endif%>
|
246 |
<%endif%>
|
257 |
<%endif%>
|
247 |
|
258 |
|
248 |
<%endif%>
|
259 |
<%endif%>
|
249 |
generated: $(GENERATED_DIRTY)
|
260 |
generated: $(GENERATED_DIRTY)
|
250 |
@-rem
|
261 |
@-rem
|
Line 275... |
Line 286... |
275 |
.c$(OBJ_EXT):
|
286 |
.c$(OBJ_EXT):
|
276 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
287 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
277 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) $<
|
288 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) $<
|
278 |
|
289 |
|
279 |
<%foreach(source_files)%>
|
290 |
<%foreach(source_files)%>
|
280 |
<%if(dirname(source_file))%>
|
291 |
<%if(transdir(source_file) || flag_overrides(source_file, buildflags))%>
|
281 |
"$(INTERMEDIATE)\<%noextension(source_file)%>$(OBJ_EXT)":
|
292 |
"$(INTERMEDIATE)\<%transdir(source_file)%><%basenoextension(source_file)%>$(OBJ_EXT)":
|
282 |
@if not exist "$(INTERMEDIATE)\<%dirname(source_file)%>" mkdir "$(INTERMEDIATE)\<%dirname(source_file)%>"
|
293 |
@if not exist "$(INTERMEDIATE)\<%transdir(source_file)%>" mkdir "$(INTERMEDIATE)\<%transdir(source_file)%>"
|
283 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) <%source_file%>
|
294 |
$(CC) <%if(flag_overrides(source_file, buildflags))%><%flag_overrides(source_file, buildflags)%> <%endif%>$(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) <%source_file%>
|
284 |
|
295 |
|
285 |
<%endif%>
|
296 |
<%endif%>
|
286 |
<%endfor%>
|
297 |
<%endfor%>
|
287 |
<%if(resource_files && !type_is_static)%>
|
298 |
<%if(resource_files && !type_is_static)%>
|
288 |
.path.res = $(INTERMEDIATE)
|
299 |
.path.res = $(INTERMEDIATE)
|
Line 291... |
Line 302... |
291 |
.rc.res:
|
302 |
.rc.res:
|
292 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
303 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
293 |
$(RC) $(RC_FLAGS) -fo$@ $<
|
304 |
$(RC) $(RC_FLAGS) -fo$@ $<
|
294 |
|
305 |
|
295 |
<%foreach(resource_files)%>
|
306 |
<%foreach(resource_files)%>
|
296 |
<%if(dirname(resource_file))%>
|
307 |
<%if(transdir(resource_file))%>
|
297 |
"$(INTERMEDIATE)\<%noextension(resource_file)%>.res":
|
308 |
"$(INTERMEDIATE)\<%transdir(resource_file)%><%basenoextension(resource_file)%>.res":
|
298 |
@if not exist "$(INTERMEDIATE)\<%dirname(resource_file)%>" mkdir "$(INTERMEDIATE)\<%dirname(resource_file)%>"
|
309 |
@if not exist "$(INTERMEDIATE)\<%transdir(resource_file)%>" mkdir "$(INTERMEDIATE)\<%transdir(resource_file)%>"
|
299 |
$(RC) -fo$@ <%resource_file%>
|
310 |
$(RC) -fo$@ <%resource_file%>
|
300 |
|
311 |
|
301 |
<%endif%>
|
312 |
<%endif%>
|
302 |
<%endfor%>
|
313 |
<%endfor%>
|
303 |
<%endif%>
|
314 |
<%endif%>
|
304 |
clean:
|
315 |
clean:
|
305 |
if exist "$(INTERMEDIATE)" rmdir /s/q $(INTERMEDIATE)
|
316 |
-if exist "$(INTERMEDIATE)" rmdir /s/q $(INTERMEDIATE)
|
306 |
|
317 |
|
307 |
realclean: clean
|
318 |
realclean: clean
|
308 |
<%foreach(custom_types)%>
|
319 |
<%foreach(custom_types)%>
|
309 |
<%foreach(custom_type->input_files)%>
|
320 |
<%foreach(custom_type->input_files)%>
|
310 |
<%if(custom_type->input_file->output_files)%>
|
321 |
<%if(custom_type->input_file->output_files)%>
|
311 |
<%foreach(custom_type->input_file->output_files)%>
|
322 |
<%foreach(custom_type->input_file->output_files)%>
|
312 |
<%if(flag_overrides(custom_type->input_file, gendir))%>
|
323 |
<%if(flag_overrides(custom_type->input_file, gendir))%>
|
313 |
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)%>
|
324 |
-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)%>"
|
314 |
<%else%>
|
325 |
<%else%>
|
315 |
if exist "<%custom_type->input_file->output_file%>" del <%custom_type->input_file->output_file%>
|
326 |
-if exist "<%custom_type->input_file->output_file%>" del "<%custom_type->input_file->output_file%>"
|
316 |
<%endif%>
|
327 |
<%endif%>
|
317 |
<%endfor%>
|
328 |
<%endfor%>
|
318 |
<%endif%>
|
329 |
<%endif%>
|
319 |
<%endfor%>
|
330 |
<%endfor%>
|
320 |
<%endfor%>
|
331 |
<%endfor%>
|
321 |
<%if(exename)%>
|
332 |
<%if(exename)%>
|
322 |
if exist "$(OUTPUTDIR)$(NAME)$(EXE_EXT)" del $(OUTPUTDIR)$(NAME)$(EXE_EXT)
|
333 |
-if exist "$(OUTPUTDIR)$(NAME)$(EXE_EXT)" del "$(OUTPUTDIR)$(NAME)$(EXE_EXT)"
|
323 |
<%else%>
|
334 |
<%else%>
|
324 |
<%if(sharedname)%>
|
335 |
<%if(sharedname)%>
|
325 |
if exist "$(OUTPUTDIR)$(NAME)$(DLL_EXT)" del $(OUTPUTDIR)$(NAME)$(DLL_EXT)
|
336 |
-if exist "$(OUTPUTDIR)$(NAME)$(DLL_EXT)" del "$(OUTPUTDIR)$(NAME)$(DLL_EXT)"
|
326 |
<%endif%>
|
337 |
<%endif%>
|
327 |
<%if(staticname)%>
|
338 |
<%if(staticname)%>
|
328 |
if exist "$(OUTPUTDIR)$(NAME)$(LIB_EXT)" del $(OUTPUTDIR)$(NAME)$(LIB_EXT)
|
339 |
-if exist "$(OUTPUTDIR)$(NAME)$(LIB_EXT)" del "$(OUTPUTDIR)$(NAME)$(LIB_EXT)"
|
329 |
<%endif%>
|
340 |
<%endif%>
|
330 |
<%endif%>
|
341 |
<%endif%>
|
331 |
<%if(exename || sharedname || staticname)%>
|
342 |
<%if(exename || sharedname || staticname)%>
|
332 |
if exist "$(OUTPUTDIR)$(NAME)$(POSTLINKRM)" del $(OUTPUTDIR)$(NAME)$(POSTLINKRM)
|
343 |
-if exist "$(OUTPUTDIR)$(NAME)$(POSTLINKRM)" del "$(OUTPUTDIR)$(NAME)$(POSTLINKRM)"
|
333 |
<%endif%>
|
344 |
<%endif%>
|
334 |
|
345 |
|
- |
|
346 |
<%if(prebuild)%>
|
- |
|
347 |
__prebuild__:
|
- |
|
348 |
@<%eval(prebuild)%>
|
- |
|
349 |
|
- |
|
350 |
<%endif%>
|
335 |
<%if(postbuild)%>
|
351 |
<%if(postbuild)%>
|
336 |
__postbuild__:
|
352 |
__postbuild__:
|
337 |
@<%eval(postbuild)%>
|
353 |
@<%eval(postbuild)%>
|
338 |
|
354 |
|
339 |
<%endif%>
|
355 |
<%endif%>
|