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%><%if(debug_prj)%>-v -y -Od -vi- -k<%foreach(debug_macros)%> -D<%debug_macro%><%endfor%><%endif%><%endif%><%foreach(defines)%> -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)%>
|
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 |
<%if(use_vcl)%>
|
40 |
<%if(use_vcl)%>
|
41 |
STARTUP_LETTER = <%if(exename)%>w<%else%><%startup_letter%><%endif%>
|
41 |
STARTUP_LETTER = <%if(exename)%>w<%else%><%startup_letter%><%endif%>
|
42 |
<%else%>
|
42 |
<%else%>
|
43 |
VCL_CFLAGS = -D_NO_VCL
|
43 |
VCL_CFLAGS = -D_NO_VCL
|
44 |
STARTUP_LETTER = <%startup_letter%>
|
44 |
STARTUP_LETTER = <%startup_letter%>
|
45 |
<%endif%>
|
45 |
<%endif%>
|
46 |
STARTUP_OBJ = c0$(STARTUP_LETTER)32$(UC_MAIN)$(OBJ_EXT)
|
46 |
STARTUP_OBJ = c0$(STARTUP_LETTER)32$(UC_MAIN)$(OBJ_EXT)
|
47 |
|
47 |
|
48 |
<%foreach(compilers)%>
|
48 |
<%foreach(compilers)%>
|
49 |
<%fornotlast("!ifdef")%><%forlast("!else #")%> <%uc(compiler)%>
|
49 |
<%fornotlast("!ifdef")%><%forlast("!else #")%> <%uc(compiler)%>
|
50 |
OBJ_EXT = <%obj_ext%>
|
50 |
OBJ_EXT = <%obj_ext%>
|
51 |
DLL_EXT = <%dll_ext%>
|
51 |
DLL_EXT = <%dll_ext%>
|
52 |
LIB_EXT = <%lib_ext%>
|
52 |
LIB_EXT = <%lib_ext%>
|
53 |
EXE_EXT = <%exe_ext%>
|
53 |
EXE_EXT = <%exe_ext%>
|
54 |
CC = <%cc%>
|
54 |
CC = <%cc%>
|
55 |
RC = <%rc%>
|
55 |
RC = <%rc%>
|
56 |
LINK = <%link%>
|
56 |
LINK = <%link%>
|
57 |
TLIB = <%tlib%>
|
57 |
TLIB = <%tlib%>
|
58 |
THREADFLAGS = <%thflags%>
|
58 |
THREADFLAGS = <%thflags%>
|
59 |
DLLFLAGS = <%dllflags%>
|
59 |
DLLFLAGS = <%dllflags%>
|
60 |
LIBFLAGS = <%libflags%>
|
60 |
LIBFLAGS = <%libflags%>
|
61 |
EXEFLAGS = <%exeflags%>
|
61 |
EXEFLAGS = <%exeflags%>
|
62 |
WARNFLAGS = <%warnflags%>
|
62 |
WARNFLAGS = <%warnflags%>
|
63 |
CCFLAGS = <%ccflags%><%if(type_is_binary)%> <%binary_compile_flags("-tWR -tWD")%><%endif%><%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%>
|
64 |
<%endfor%>
|
64 |
<%endfor%>
|
65 |
!endif
|
65 |
!endif
|
66 |
|
66 |
|
67 |
INTERMEDIATE = $(CFG_DIR)$(UNICODE_DIR)<%noextension(project_name)%>
|
67 |
INTERMEDIATE = $(CFG_DIR)$(UNICODE_DIR)<%noextension(project_name)%>
|
68 |
<%if(exename)%>
|
68 |
<%if(exename)%>
|
69 |
NAME = <%exename%>$(EXEMODIFIER)
|
69 |
NAME = <%exename%>$(EXEMODIFIER)
|
70 |
<%else%>
|
70 |
<%else%>
|
71 |
<%if(sharedname)%>
|
71 |
<%if(sharedname)%>
|
72 |
NAME = <%libname_prefix%><%sharedname%>$(OLIBMODIFIER)
|
72 |
NAME = <%libname_prefix%><%sharedname%>$(OLIBMODIFIER)
|
73 |
<%else%>
|
73 |
<%else%>
|
74 |
<%if(staticname)%>
|
74 |
<%if(staticname)%>
|
75 |
NAME = <%libname_prefix%><%staticname%>$(OLIBMODIFIER)
|
75 |
NAME = <%libname_prefix%><%staticname%>$(OLIBMODIFIER)
|
76 |
<%endif%>
|
76 |
<%endif%>
|
77 |
<%endif%>
|
77 |
<%endif%>
|
78 |
<%endif%>
|
78 |
<%endif%>
|
79 |
CPPDIR = <%cppdir%>
|
79 |
CPPDIR = <%cppdir%>
|
80 |
RESDIR = <%rcdir%>
|
80 |
RESDIR = <%rcdir%>
|
81 |
<%if(exename || sharedname || staticname)%>
|
81 |
<%if(exename || sharedname || staticname)%>
|
82 |
|
82 |
|
83 |
OBJFILES = \
|
83 |
OBJFILES = \
|
84 |
<%foreach(source_files)%>
|
84 |
<%foreach(source_files)%>
|
85 |
"$(INTERMEDIATE)\<%transdir(source_file)%><%basenoextension(source_file)%>$(OBJ_EXT)"<%fornotlast(" \\")%>
|
85 |
"$(INTERMEDIATE)\<%transdir(source_file)%><%basenoextension(source_file)%>$(OBJ_EXT)"<%fornotlast(" \\")%>
|
86 |
<%endfor%>
|
86 |
<%endfor%>
|
87 |
<%endif%>
|
87 |
<%endif%>
|
88 |
<%if(libpaths)%>
|
88 |
<%if(libpaths)%>
|
89 |
|
89 |
|
90 |
LFLAGS = \
|
90 |
LFLAGS = \
|
91 |
<%if(StackReserveSize)%>
|
91 |
<%if(StackReserveSize)%>
|
92 |
/S:<%StackReserveSize%> \
|
92 |
/S:<%StackReserveSize%> \
|
93 |
<%endif%>
|
93 |
<%endif%>
|
94 |
<%if(StackCommitSize)%>
|
94 |
<%if(StackCommitSize)%>
|
95 |
/Sc:<%StackCommitSize%> \
|
95 |
/Sc:<%StackCommitSize%> \
|
96 |
<%endif%>
|
96 |
<%endif%>
|
97 |
<%if(!optimize)%>
|
97 |
<%if(!optimize)%>
|
98 |
-v<%if(libpaths)%> \<%endif%>
|
98 |
-v<%if(libpaths)%> \<%endif%>
|
99 |
<%endif%>
|
99 |
<%endif%>
|
100 |
<%foreach(libpaths)%>
|
100 |
<%foreach(libpaths)%>
|
101 |
-L"<%libpath%>" -j"<%libpath%>"<%fornotlast(" \\")%>
|
101 |
-L"<%libpath%>" -j"<%libpath%>"<%fornotlast(" \\")%>
|
102 |
<%endfor%>
|
102 |
<%endfor%>
|
103 |
<%endif%>
|
103 |
<%endif%>
|
104 |
|
104 |
|
105 |
LIBFILES = \
|
105 |
LIBFILES = \
|
106 |
<%foreach(reverse(libs))%>
|
106 |
<%foreach(reverse(libs))%>
|
107 |
<%libname_prefix%><%lib%>$(ILIBMODIFIER)$(LIB_EXT) \
|
107 |
<%libname_prefix%><%lib%>$(ILIBMODIFIER)$(LIB_EXT) \
|
108 |
<%endfor%>
|
108 |
<%endfor%>
|
109 |
<%foreach(reverse(lit_libs))%>
|
109 |
<%foreach(reverse(lit_libs))%>
|
110 |
<%lit_lib%>$(LIB_EXT) \
|
110 |
<%lit_lib%>$(LIB_EXT) \
|
111 |
<%endfor%>
|
111 |
<%endfor%>
|
112 |
<%foreach(reverse(pure_libs))%>
|
112 |
<%foreach(reverse(pure_libs))%>
|
113 |
<%pure_lib%> \
|
113 |
<%pure_lib%> \
|
114 |
<%endfor%>
|
114 |
<%endfor%>
|
115 |
$(CG_LIB) <%common_libs%>
|
115 |
$(CG_LIB) <%common_libs%>
|
116 |
<%if(resource_files && !type_is_static)%>
|
116 |
<%if(resource_files && !type_is_static)%>
|
117 |
|
117 |
|
118 |
RESOURCE = \
|
118 |
RESOURCE = \
|
119 |
<%foreach(resource_files)%>
|
119 |
<%foreach(resource_files)%>
|
120 |
$(INTERMEDIATE)\<%transdir(resource_file)%><%basenoextension(resource_file)%>.res<%fornotlast(" \\")%>
|
120 |
$(INTERMEDIATE)\<%transdir(resource_file)%><%basenoextension(resource_file)%>.res<%fornotlast(" \\")%>
|
121 |
<%endfor%>
|
121 |
<%endfor%>
|
122 |
<%if(includes)%>
|
122 |
<%if(includes)%>
|
123 |
|
123 |
|
124 |
RC_FLAGS = \
|
124 |
RC_FLAGS = \
|
125 |
<%foreach(includes)%>
|
125 |
<%foreach(includes)%>
|
126 |
-i"<%include%>"<%fornotlast(" \\")%>
|
126 |
-i"<%include%>"<%fornotlast(" \\")%>
|
127 |
<%endfor%>
|
127 |
<%endfor%>
|
128 |
<%endif%>
|
128 |
<%endif%>
|
129 |
<%endif%>
|
129 |
<%endif%>
|
130 |
<%if(pch_header)%>
|
130 |
<%if(pch_header)%>
|
131 |
|
131 |
|
132 |
# Borland precompiled headers can choke on some header files.
|
132 |
# Borland precompiled headers can choke on some header files.
|
133 |
# Set NO_USE_PCH if you do not want to use precompiled headers.
|
133 |
# Set NO_USE_PCH if you do not want to use precompiled headers.
|
134 |
!ifndef NO_USE_PCH
|
134 |
!ifndef NO_USE_PCH
|
135 |
PCH_CFLAGS = \
|
135 |
PCH_CFLAGS = \
|
136 |
<%foreach(pch_defines)%>
|
136 |
<%foreach(pch_defines)%>
|
137 |
-D<%pch_define%> \
|
137 |
-D<%pch_define%> \
|
138 |
<%endfor%>
|
138 |
<%endfor%>
|
139 |
-H=$(INTERMEDIATE)\<%noextension(project_name)%>.csm -Hh=<%pch_header%>
|
139 |
-H=$(INTERMEDIATE)\<%noextension(project_name)%>.csm -Hh=<%pch_header%>
|
140 |
!endif
|
140 |
!endif
|
141 |
<%endif%>
|
141 |
<%endif%>
|
142 |
|
142 |
|
143 |
CFLAGS = \
|
143 |
CFLAGS = \
|
144 |
<%foreach(cc_flags)%>
|
144 |
<%foreach(cc_flags)%>
|
145 |
<%cc_flags%> \
|
145 |
<%cc_flags%> \
|
146 |
<%endfor%>
|
146 |
<%endfor%>
|
147 |
<%foreach(common_flags)%>
|
147 |
<%foreach(common_flags)%>
|
148 |
<%common_flags%> \
|
148 |
<%common_flags%> \
|
149 |
<%endfor%>
|
149 |
<%endfor%>
|
150 |
<%foreach(macros common_defines)%>
|
150 |
<%foreach(macros common_defines)%>
|
151 |
-D<%macro%> \
|
151 |
-D<%macro%> \
|
152 |
<%endfor%>
|
152 |
<%endfor%>
|
153 |
<%if(type_is_static || need_staticflags)%>
|
153 |
<%if(type_is_static || need_staticflags)%>
|
154 |
<%if(staticflags)%>
|
154 |
<%if(staticflags)%>
|
155 |
<%foreach(staticflags)%>
|
155 |
<%foreach(staticflags)%>
|
156 |
-D<%staticflag%> \
|
156 |
-D<%staticflag%> \
|
157 |
<%endfor%>
|
157 |
<%endfor%>
|
158 |
<%endif%>
|
158 |
<%endif%>
|
159 |
<%else%>
|
159 |
<%else%>
|
160 |
<%if(dynamicflags)%>
|
160 |
<%if(dynamicflags)%>
|
161 |
<%foreach(dynamicflags)%>
|
161 |
<%foreach(dynamicflags)%>
|
162 |
-D<%dynamicflag%> \
|
162 |
-D<%dynamicflag%> \
|
163 |
<%endfor%>
|
163 |
<%endfor%>
|
164 |
<%endif%>
|
164 |
<%endif%>
|
165 |
<%endif%>
|
165 |
<%endif%>
|
166 |
<%foreach(includes)%>
|
166 |
<%foreach(includes)%>
|
167 |
-I"<%include%>" \
|
167 |
-I"<%include%>" \
|
168 |
<%endfor%>
|
168 |
<%endfor%>
|
169 |
$(PCH_CFLAGS) \
|
169 |
$(PCH_CFLAGS) \
|
170 |
$(VCL_CFLAGS)
|
170 |
$(VCL_CFLAGS)
|
171 |
|
171 |
|
172 |
<%marker(macros)%>
|
172 |
<%marker(macros)%>
|
173 |
<%if(exename)%>
|
173 |
<%if(exename)%>
|
174 |
OUTPUTDIR = <%if(install)%><%install%>\\<%else%>$(EXEOUTPUTDIR)<%endif%>
|
174 |
OUTPUTDIR = <%if(install)%><%install%>\\<%else%>$(EXEOUTPUTDIR)<%endif%>
|
175 |
all:<%if(prebuild)%> __prebuild__<%endif%> $(OUTPUTDIR)$(NAME)$(EXE_EXT)<%if(postbuild)%> __postbuild__<%endif%>
|
175 |
all:<%if(prebuild)%> __prebuild__<%endif%> $(OUTPUTDIR)$(NAME)$(EXE_EXT)<%if(postbuild)%> __postbuild__<%endif%>
|
176 |
|
176 |
|
177 |
$(OUTPUTDIR)$(NAME)$(EXE_EXT): $(OBJFILES) $(RESOURCE)
|
177 |
$(OUTPUTDIR)$(NAME)$(EXE_EXT): $(OBJFILES) $(RESOURCE)
|
178 |
@if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
|
178 |
@if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
|
179 |
$(LINK) @&&!
|
179 |
$(LINK) @&&!
|
180 |
$(EXEFLAGS) $(LFLAGS) $(STARTUP_OBJ) $(OBJFILES), $(OUTPUTDIR)$(NAME)$(EXE_EXT),, $(LIBFILES),, $(RESOURCE)
|
180 |
$(EXEFLAGS) $(LFLAGS) $(STARTUP_OBJ) $(OBJFILES), $(OUTPUTDIR)$(NAME)$(EXE_EXT),, $(LIBFILES),, $(RESOURCE)
|
181 |
!
|
181 |
!
|
182 |
|
182 |
|
183 |
<%endif%>
|
183 |
<%endif%>
|
184 |
<%if(sharedname)%>
|
184 |
<%if(sharedname)%>
|
185 |
OUTPUTDIR = <%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\\
|
185 |
OUTPUTDIR = <%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\\
|
186 |
all:<%if(prebuild)%> __prebuild__<%endif%> $(OUTPUTDIR)$(NAME)$(DLL_EXT)<%if(postbuild)%> __postbuild__<%endif%>
|
186 |
all:<%if(prebuild)%> __prebuild__<%endif%> $(OUTPUTDIR)$(NAME)$(DLL_EXT)<%if(postbuild)%> __postbuild__<%endif%>
|
187 |
|
187 |
|
188 |
$(OUTPUTDIR)$(NAME)$(DLL_EXT): $(OBJFILES) $(RESOURCE)
|
188 |
$(OUTPUTDIR)$(NAME)$(DLL_EXT): $(OBJFILES) $(RESOURCE)
|
189 |
@if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
|
189 |
@if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
|
190 |
$(LINK) @&&!
|
190 |
$(LINK) @&&!
|
191 |
$(DLLFLAGS) $(LFLAGS) $(STARTUP_OBJ) $(OBJFILES), $(OUTPUTDIR)$(NAME)$(DLL_EXT),, $(LIBFILES),, $(RESOURCE)
|
191 |
$(DLLFLAGS) $(LFLAGS) $(STARTUP_OBJ) $(OBJFILES), $(OUTPUTDIR)$(NAME)$(DLL_EXT),, $(LIBFILES),, $(RESOURCE)
|
192 |
!
|
192 |
!
|
193 |
|
193 |
|
194 |
<%endif%>
|
194 |
<%endif%>
|
195 |
<%if(type_is_static && staticname)%>
|
195 |
<%if(type_is_static && staticname)%>
|
196 |
OUTPUTDIR = <%libout%>\\
|
196 |
OUTPUTDIR = <%libout%>\\
|
197 |
all:<%if(prebuild)%> __prebuild__<%endif%> $(OUTPUTDIR)$(NAME)$(LIB_EXT)<%if(postbuild)%> __postbuild__<%endif%>
|
197 |
all:<%if(prebuild)%> __prebuild__<%endif%> $(OUTPUTDIR)$(NAME)$(LIB_EXT)<%if(postbuild)%> __postbuild__<%endif%>
|
198 |
|
198 |
|
199 |
$(OUTPUTDIR)$(NAME)$(LIB_EXT): $(OBJFILES)
|
199 |
$(OUTPUTDIR)$(NAME)$(LIB_EXT): $(OBJFILES)
|
200 |
@if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
|
200 |
@if not exist "$(OUTPUTDIR)" mkdir "$(OUTPUTDIR)"
|
201 |
$(TLIB) $(LIBFLAGS) $(OUTPUTDIR)$(NAME)$(LIB_EXT) @&&!
|
201 |
$(TLIB) $(LIBFLAGS) $(OUTPUTDIR)$(NAME)$(LIB_EXT) @&&!
|
202 |
+ $(**: = &^
|
202 |
+ $(**: = &^
|
203 |
+ )
|
203 |
+ )
|
204 |
!
|
204 |
!
|
205 |
|
205 |
|
206 |
<%endif%>
|
206 |
<%endif%>
|
207 |
<%if(!exename && !sharedname && !staticname)%>
|
207 |
<%if(!exename && !sharedname && !staticname)%>
|
208 |
all:<%if(prebuild)%> __prebuild__<%endif%><%if(postbuild)%> __postbuild__<%endif%>
|
208 |
all:<%if(prebuild)%> __prebuild__<%endif%><%if(postbuild)%> __postbuild__<%endif%>
|
209 |
@-rem
|
209 |
@-rem
|
210 |
|
210 |
|
211 |
<%endif%>
|
211 |
<%endif%>
|
212 |
<%if(custom_types)%>
|
212 |
<%if(custom_types)%>
|
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%>
|
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%>
|
214 |
<%foreach(custom_types)%>
|
214 |
<%foreach(custom_types)%>
|
215 |
<%if(custom_type->libpath)%>
|
215 |
<%if(custom_type->libpath)%>
|
216 |
PATH = $(PATH);<%custom_type->libpath%>
|
216 |
PATH = $(PATH);<%custom_type->libpath%>
|
217 |
<%endif%>
|
217 |
<%endif%>
|
218 |
<%foreach(custom_type->input_files)%>
|
218 |
<%foreach(custom_type->input_files)%>
|
219 |
<%if(custom_type->input_file->output_files)%>
|
219 |
<%if(custom_type->input_file->output_files)%>
|
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%>
|
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%>
|
221 |
<%if(flag_overrides(custom_type->input_file, gendir))%>
|
221 |
<%if(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)%>"
|
222 |
@if not exist "<%flag_overrides(custom_type->input_file, gendir)%>" mkdir "<%flag_overrides(custom_type->input_file, gendir)%>"
|
223 |
<%endif%>
|
223 |
<%endif%>
|
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%>
|
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%>
|
225 |
<%if(flag_overrides(custom_type->input_file, postcommand))%>
|
225 |
<%if(flag_overrides(custom_type->input_file, postcommand))%>
|
226 |
<%foreach(custom_type->input_file)%>
|
226 |
<%foreach(custom_type->input_file)%>
|
227 |
<%flag_overrides(custom_type->input_file, postcommand)%>
|
227 |
<%flag_overrides(custom_type->input_file, postcommand)%>
|
228 |
<%endfor%>
|
228 |
<%endfor%>
|
229 |
<%else%>
|
229 |
<%else%>
|
230 |
<%if(custom_type->postcommand)%>
|
230 |
<%if(custom_type->postcommand)%>
|
231 |
<%foreach(custom_type->input_file)%>
|
231 |
<%foreach(custom_type->input_file)%>
|
232 |
<%custom_type->postcommand%>
|
232 |
<%custom_type->postcommand%>
|
233 |
<%endfor%>
|
233 |
<%endfor%>
|
234 |
<%endif%>
|
234 |
<%endif%>
|
235 |
<%endif%>
|
235 |
<%endif%>
|
236 |
<%if(pch_header)%>
|
236 |
<%if(pch_header)%>
|
237 |
<%if(custom_type->pch_postrule)%>
|
237 |
<%if(custom_type->pch_postrule)%>
|
238 |
<%foreach(custom_type->input_file->source_output_files)%>
|
238 |
<%foreach(custom_type->input_file->source_output_files)%>
|
239 |
@echo \#include "<%pch_header%>" > temporary.src
|
239 |
@echo \#include "<%pch_header%>" > temporary.src
|
240 |
@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
|
240 |
@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
|
241 |
@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%>
|
241 |
@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%>
|
242 |
<%endfor%>
|
242 |
<%endfor%>
|
243 |
<%endif%>
|
243 |
<%endif%>
|
244 |
<%endif%>
|
244 |
<%endif%>
|
245 |
|
245 |
|
246 |
<%endif%>
|
246 |
<%endif%>
|
247 |
<%endfor%>
|
247 |
<%endfor%>
|
248 |
<%endfor%>
|
248 |
<%endfor%>
|
249 |
<%if(exename || sharedname || staticname)%>
|
249 |
<%if(exename || sharedname || staticname)%>
|
250 |
<%if(source_files)%>
|
250 |
<%if(source_files)%>
|
251 |
$(OBJFILES): $(GENERATED_DIRTY)
|
251 |
$(OBJFILES): $(GENERATED_DIRTY)
|
252 |
<%else%>
|
252 |
<%else%>
|
253 |
all:<%if(prebuild)%> __prebuild__<%endif%> $(GENERATED_DIRTY)<%if(postbuild)%> __postbuild__<%endif%>
|
253 |
all:<%if(prebuild)%> __prebuild__<%endif%> $(GENERATED_DIRTY)<%if(postbuild)%> __postbuild__<%endif%>
|
254 |
<%endif%>
|
254 |
<%endif%>
|
255 |
<%else%>
|
255 |
<%else%>
|
256 |
all:<%if(prebuild)%> __prebuild__<%endif%> $(GENERATED_DIRTY)<%if(postbuild)%> __postbuild__<%endif%>
|
256 |
all:<%if(prebuild)%> __prebuild__<%endif%> $(GENERATED_DIRTY)<%if(postbuild)%> __postbuild__<%endif%>
|
257 |
<%endif%>
|
257 |
<%endif%>
|
258 |
|
258 |
|
259 |
<%endif%>
|
259 |
<%endif%>
|
260 |
generated: $(GENERATED_DIRTY)
|
260 |
generated: $(GENERATED_DIRTY)
|
261 |
@-rem
|
261 |
@-rem
|
262 |
|
262 |
|
263 |
.path$(OBJ_EXT) = $(INTERMEDIATE)
|
263 |
.path$(OBJ_EXT) = $(INTERMEDIATE)
|
264 |
|
264 |
|
265 |
.path.cpp = $(CPPDIR)
|
265 |
.path.cpp = $(CPPDIR)
|
266 |
.cpp$(OBJ_EXT):
|
266 |
.cpp$(OBJ_EXT):
|
267 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
267 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
268 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) $<
|
268 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) $<
|
269 |
|
269 |
|
270 |
.path.cxx = $(CPPDIR)
|
270 |
.path.cxx = $(CPPDIR)
|
271 |
.cxx$(OBJ_EXT):
|
271 |
.cxx$(OBJ_EXT):
|
272 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
272 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
273 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) $<
|
273 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) $<
|
274 |
|
274 |
|
275 |
.path.cc = $(CPPDIR)
|
275 |
.path.cc = $(CPPDIR)
|
276 |
.cc$(OBJ_EXT):
|
276 |
.cc$(OBJ_EXT):
|
277 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
277 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
278 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) $<
|
278 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) $<
|
279 |
|
279 |
|
280 |
.path.C = $(CPPDIR)
|
280 |
.path.C = $(CPPDIR)
|
281 |
.C$(OBJ_EXT):
|
281 |
.C$(OBJ_EXT):
|
282 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
282 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
283 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) $<
|
283 |
$(CC) $(OCFLAGS) $(CG_CFLAGS) $(UC_CFLAGS) $(THREADFLAGS) $(CCFLAGS) $(CFLAGS) $(WARNFLAGS) -c -n$(@D) $<
|
284 |
|
284 |
|
285 |
.path.c = $(CPPDIR)
|
285 |
.path.c = $(CPPDIR)
|
286 |
.c$(OBJ_EXT):
|
286 |
.c$(OBJ_EXT):
|
287 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
287 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
288 |
$(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) $<
|
289 |
|
289 |
|
290 |
<%foreach(source_files)%>
|
290 |
<%foreach(source_files)%>
|
291 |
<%if(transdir(source_file) || flag_overrides(source_file, buildflags))%>
|
291 |
<%if(transdir(source_file) || flag_overrides(source_file, buildflags))%>
|
292 |
"$(INTERMEDIATE)\<%transdir(source_file)%><%basenoextension(source_file)%>$(OBJ_EXT)":
|
292 |
"$(INTERMEDIATE)\<%transdir(source_file)%><%basenoextension(source_file)%>$(OBJ_EXT)":
|
293 |
@if not exist "$(INTERMEDIATE)\<%transdir(source_file)%>" mkdir "$(INTERMEDIATE)\<%transdir(source_file)%>"
|
293 |
@if not exist "$(INTERMEDIATE)\<%transdir(source_file)%>" mkdir "$(INTERMEDIATE)\<%transdir(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%>
|
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%>
|
295 |
|
295 |
|
296 |
<%endif%>
|
296 |
<%endif%>
|
297 |
<%endfor%>
|
297 |
<%endfor%>
|
298 |
<%if(resource_files && !type_is_static)%>
|
298 |
<%if(resource_files && !type_is_static)%>
|
299 |
.path.res = $(INTERMEDIATE)
|
299 |
.path.res = $(INTERMEDIATE)
|
300 |
|
300 |
|
301 |
.path.rc = $(RESDIR)
|
301 |
.path.rc = $(RESDIR)
|
302 |
.rc.res:
|
302 |
.rc.res:
|
303 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
303 |
@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
|
304 |
$(RC) $(RC_FLAGS) -fo$@ $<
|
304 |
$(RC) $(RC_FLAGS) -fo$@ $<
|
305 |
|
305 |
|
306 |
<%foreach(resource_files)%>
|
306 |
<%foreach(resource_files)%>
|
307 |
<%if(transdir(resource_file))%>
|
307 |
<%if(transdir(resource_file))%>
|
308 |
"$(INTERMEDIATE)\<%transdir(resource_file)%><%basenoextension(resource_file)%>.res":
|
308 |
"$(INTERMEDIATE)\<%transdir(resource_file)%><%basenoextension(resource_file)%>.res":
|
309 |
@if not exist "$(INTERMEDIATE)\<%transdir(resource_file)%>" mkdir "$(INTERMEDIATE)\<%transdir(resource_file)%>"
|
309 |
@if not exist "$(INTERMEDIATE)\<%transdir(resource_file)%>" mkdir "$(INTERMEDIATE)\<%transdir(resource_file)%>"
|
310 |
$(RC) -fo$@ <%resource_file%>
|
310 |
$(RC) -fo$@ <%resource_file%>
|
311 |
|
311 |
|
312 |
<%endif%>
|
312 |
<%endif%>
|
313 |
<%endfor%>
|
313 |
<%endfor%>
|
314 |
<%endif%>
|
314 |
<%endif%>
|
315 |
clean:
|
315 |
clean:
|
316 |
-if exist "$(INTERMEDIATE)" rmdir /s/q $(INTERMEDIATE)
|
316 |
-if exist "$(INTERMEDIATE)" rmdir /s/q $(INTERMEDIATE)
|
317 |
|
317 |
|
318 |
realclean: clean
|
318 |
realclean: clean
|
319 |
<%foreach(custom_types)%>
|
319 |
<%foreach(custom_types)%>
|
320 |
<%foreach(custom_type->input_files)%>
|
320 |
<%foreach(custom_type->input_files)%>
|
321 |
<%if(custom_type->input_file->output_files)%>
|
321 |
<%if(custom_type->input_file->output_files)%>
|
322 |
<%foreach(custom_type->input_file->output_files)%>
|
322 |
<%foreach(custom_type->input_file->output_files)%>
|
323 |
<%if(flag_overrides(custom_type->input_file, gendir))%>
|
323 |
<%if(flag_overrides(custom_type->input_file, gendir))%>
|
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)%>"
|
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)%>"
|
325 |
<%else%>
|
325 |
<%else%>
|
326 |
-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%>"
|
327 |
<%endif%>
|
327 |
<%endif%>
|
328 |
<%endfor%>
|
328 |
<%endfor%>
|
329 |
<%endif%>
|
329 |
<%endif%>
|
330 |
<%endfor%>
|
330 |
<%endfor%>
|
331 |
<%endfor%>
|
331 |
<%endfor%>
|
332 |
<%if(exename)%>
|
332 |
<%if(exename)%>
|
333 |
-if exist "$(OUTPUTDIR)$(NAME)$(EXE_EXT)" del "$(OUTPUTDIR)$(NAME)$(EXE_EXT)"
|
333 |
-if exist "$(OUTPUTDIR)$(NAME)$(EXE_EXT)" del "$(OUTPUTDIR)$(NAME)$(EXE_EXT)"
|
334 |
<%else%>
|
334 |
<%else%>
|
335 |
<%if(sharedname)%>
|
335 |
<%if(sharedname)%>
|
336 |
-if exist "$(OUTPUTDIR)$(NAME)$(DLL_EXT)" del "$(OUTPUTDIR)$(NAME)$(DLL_EXT)"
|
336 |
-if exist "$(OUTPUTDIR)$(NAME)$(DLL_EXT)" del "$(OUTPUTDIR)$(NAME)$(DLL_EXT)"
|
337 |
<%endif%>
|
337 |
<%endif%>
|
338 |
<%if(staticname)%>
|
338 |
<%if(staticname)%>
|
339 |
-if exist "$(OUTPUTDIR)$(NAME)$(LIB_EXT)" del "$(OUTPUTDIR)$(NAME)$(LIB_EXT)"
|
339 |
-if exist "$(OUTPUTDIR)$(NAME)$(LIB_EXT)" del "$(OUTPUTDIR)$(NAME)$(LIB_EXT)"
|
340 |
<%endif%>
|
340 |
<%endif%>
|
341 |
<%endif%>
|
341 |
<%endif%>
|
342 |
<%if(exename || sharedname || staticname)%>
|
342 |
<%if(exename || sharedname || staticname)%>
|
343 |
-if exist "$(OUTPUTDIR)$(NAME)$(POSTLINKRM)" del "$(OUTPUTDIR)$(NAME)$(POSTLINKRM)"
|
343 |
-if exist "$(OUTPUTDIR)$(NAME)$(POSTLINKRM)" del "$(OUTPUTDIR)$(NAME)$(POSTLINKRM)"
|
344 |
<%endif%>
|
344 |
<%endif%>
|
345 |
|
345 |
|
346 |
<%if(prebuild)%>
|
346 |
<%if(prebuild)%>
|
347 |
__prebuild__:
|
347 |
__prebuild__:
|
348 |
@<%eval(prebuild)%>
|
348 |
@<%eval(prebuild)%>
|
349 |
|
349 |
|
350 |
<%endif%>
|
350 |
<%endif%>
|
351 |
<%if(postbuild)%>
|
351 |
<%if(postbuild)%>
|
352 |
__postbuild__:
|
352 |
__postbuild__:
|
353 |
@<%eval(postbuild)%>
|
353 |
@<%eval(postbuild)%>
|
354 |
|
354 |
|
355 |
<%endif%>
|
355 |
<%endif%>
|
356 |
<%marker(local)%>
|
356 |
<%marker(local)%>
|
357 |
<%marker(bottom)%>
|
357 |
<%marker(bottom)%>
|
358 |
|
358 |
|