Subversion Repositories gelsvn

Rev

Rev 107 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 107 Rev 198
Line 59... Line 59...
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         = <%libname_prefix%><%sharedname%>$(OLIBMODIFIER)
65
<%else%>
65
<%else%>
66
<%if(staticname)%>
66
<%if(staticname)%>
67
NAME         = <%staticname%>$(OLIBMODIFIER)
67
NAME         = <%libname_prefix%><%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%>
Line 94... Line 94...
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
           <%libname_prefix%><%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))%>
Line 109... Line 109...
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
<%if(includes)%>
115
 
115
 
-
 
116
RC_FLAGS = \
-
 
117
<%foreach(includes)%>
-
 
118
        -i"<%include%>"<%fornotlast(" \\")%>
-
 
119
<%endfor%>
-
 
120
<%endif%>
-
 
121
<%endif%>
116
<%if(pch_header)%>
122
<%if(pch_header)%>
-
 
123
 
117
# Borland precompiled headers can choke on some header files.
124
# Borland precompiled headers can choke on some header files.
118
# Set NO_USE_PCH if you do not want to use precompiled headers.
125
# Set NO_USE_PCH if you do not want to use precompiled headers.
119
!ifndef NO_USE_PCH
126
!ifndef NO_USE_PCH
120
PCH_CFLAGS = \
127
PCH_CFLAGS = \
121
<%foreach(pch_defines)%>
128
<%foreach(pch_defines)%>
Line 201... Line 208...
201
<%if(custom_type->input_file->output_files)%>
208
<%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%>
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%>
203
<%if(flag_overrides(custom_type->input_file, gendir))%>
210
<%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)%>
211
        @if not exist <%flag_overrides(custom_type->input_file, gendir)%> mkdir <%flag_overrides(custom_type->input_file, gendir)%>
205
<%endif%>
212
<%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%>
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%>
207
<%if(flag_overrides(custom_type->input_file, postcommand))%>
214
<%if(flag_overrides(custom_type->input_file, postcommand))%>
208
<%foreach(custom_type->input_file)%>
215
<%foreach(custom_type->input_file)%>
209
	<%flag_overrides(custom_type->input_file, postcommand)%>
216
	<%flag_overrides(custom_type->input_file, postcommand)%>
210
<%endfor%>
217
<%endfor%>
211
<%else%>
218
<%else%>
Line 281... Line 288...
281
.path.res = $(INTERMEDIATE)
288
.path.res = $(INTERMEDIATE)
282
 
289
 
283
.path.rc = $(RESDIR)
290
.path.rc = $(RESDIR)
284
.rc.res:
291
.rc.res:
285
	@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
292
	@if not exist "$(INTERMEDIATE)" mkdir "$(INTERMEDIATE)"
286
	$(RC) -fo$@ $<
293
        $(RC) $(RC_FLAGS) -fo$@ $<
287
 
294
 
288
<%foreach(resource_files)%>
295
<%foreach(resource_files)%>
289
<%if(dirname(resource_file))%>
296
<%if(dirname(resource_file))%>
290
"$(INTERMEDIATE)\<%noextension(resource_file)%>.res":
297
"$(INTERMEDIATE)\<%noextension(resource_file)%>.res":
291
	@if not exist "$(INTERMEDIATE)\<%dirname(resource_file)%>" mkdir "$(INTERMEDIATE)\<%dirname(resource_file)%>"
298
	@if not exist "$(INTERMEDIATE)\<%dirname(resource_file)%>" mkdir "$(INTERMEDIATE)\<%dirname(resource_file)%>"