Subversion Repositories gelsvn

Rev

Rev 107 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 107 Rev 198
Line 20... Line 20...
20
CPU           = <%cpu%>
20
CPU           = <%cpu%>
21
<%endif%>
21
<%endif%>
22
<%if(pic)%>
22
<%if(pic)%>
23
PICFLAGS      = <%pic%>
23
PICFLAGS      = <%pic%>
24
<%endif%>
24
<%endif%>
25
CPPFLAGS      = $(PICFLAGS) $(GENFLAGS)<%if(compile_flags)%> <%compile_flags%><%endif%><%if(cpu)%> -DCPU=$(CPU)<%endif%><%if(tempinc)%> <%tempincopt%>$(TEMPINCDIR)<%endif%><%if(compilerflags)%> <%compilerflags%><%endif%><%if(build64bit && compilerflags64)%> <%compilerflags64%><%endif%><%if(pch_source && pchsupport)%><%foreach(pch_defines)%> -D<%pch_define%><%endfor%><%endif%><%foreach(platforms)%><%if(extracppflags)%> <%extracppflags%><%endif%><%endfor%><%if(includes)%><%foreach(includes)%> -I<%include%><%endfor%><%endif%><%if(macros)%><%foreach(macros)%> -D<%macro%><%endfor%><%endif%>
25
CPPFLAGS      = $(PICFLAGS) $(GENFLAGS)<%if(compile_flags)%> <%compile_flags%><%endif%><%if(cpu)%> -DCPU=$(CPU)<%endif%><%if(tempincopt)%> <%tempincopt%>$(TEMPINCDIR)<%endif%><%if(compilerflags)%> <%compilerflags%><%endif%><%if(build64bit && compilerflags64)%> <%compilerflags64%><%endif%><%if(pch_source && pchsupport)%><%foreach(pch_defines)%> -D<%pch_define%><%endfor%><%endif%><%foreach(platforms)%><%if(extracppflags)%> <%extracppflags%><%endif%><%endfor%><%if(includes)%><%foreach(includes)%> -I"<%include%>"<%endfor%><%endif%><%if(macros)%><%foreach(macros)%> -D<%macro%><%endfor%><%endif%>
26
OBJEXT        = <%obj_ext%>
26
OBJEXT        = <%obj_ext%>
27
OUTPUT_OPTION = <%output_option(-o \"$@\")%>
27
OUTPUT_OPTION = <%output_option(-o \"$@\")%>
28
COMPILE.cc    = $(CXX) $(CCFLAGS) $(CPPFLAGS) <%compile_option("-c")%>
28
COMPILE.cc    = $(CXX) $(CCFLAGS) $(CPPFLAGS) <%compile_option("-c")%>
29
<%foreach(platforms)%>
29
<%foreach(platforms)%>
30
<%if(build64bit && arflags64)%>
30
<%if(build64bit && arflags64)%>
Line 34... Line 34...
34
ARFLAGS       = <%if(extraarflags)%><%extraarflags%> <%endif%><%arflags%>
34
ARFLAGS       = <%if(extraarflags)%><%extraarflags%> <%endif%><%arflags%>
35
<%endif%>
35
<%endif%>
36
<%endif%>
36
<%endif%>
37
<%endfor%>
37
<%endfor%>
38
<%if(tempinc)%>
38
<%if(tempinc)%>
39
TEMPINCDIR    = <%tempinc%><%slash%><%project_name%>
39
TEMPINCDIR    = <%tempinc%><%if(tempincopt)%><%slash%><%project_name%><%endif%>
40
<%endif%>
40
<%endif%>
41
LDFLAGS       =<%if(libpaths)%><%foreach(libpaths)%> -L<%libpath%><%endfor%><%endif%><%if(linkflags)%> <%linkflags%><%endif%><%if(build64bit && linkflags64)%> <%linkflags64%><%endif%>
41
LDFLAGS       =<%if(libpaths)%><%foreach(libpaths)%> -L"<%libpath%>"<%endfor%><%endif%><%if(linkflags)%> <%linkflags%><%endif%><%if(build64bit && linkflags64)%> <%linkflags64%><%endif%>
42
<%endfor%>
42
<%endfor%>
43
CCC           = $(CXX)
43
CCC           = $(CXX)
44
MAKEFILE      = <%project_file%>
44
MAKEFILE      = <%project_file%>
45
DEPENDENCIES  = .depend.$(MAKEFILE)
45
DEPENDENCIES  = .depend.$(MAKEFILE)
46
<%if(exename)%>
46
<%if(exename)%>
Line 54... Line 54...
54
RM            = <%delete("rm -rf")%>
54
RM            = <%delete("rm -rf")%>
55
CP            = <%copy("cp -p")%>
55
CP            = <%copy("cp -p")%>
56
NUL           = <%devnull("/dev/null")%>
56
NUL           = <%devnull("/dev/null")%>
57
MKDIR         = <%makedir("mkdir -p")%>
57
MKDIR         = <%makedir("mkdir -p")%>
58
EXEEXT        = <%exe_ext%>
58
EXEEXT        = <%exe_ext%>
59
LIBPREFIX     = <%lib_prefix%>
59
LIBPREFIX     = <%lib_prefix%><%libname_prefix%>
60
LDLIBS        =<%foreach(libs lit_libs)%> <%libopt%><%lib%><%endfor%><%foreach(pure_libs)%> <%pure_lib%><%endfor%> <%ldlibs%>
60
LDLIBS        =<%foreach(libs)%> <%libopt%>"<%libname_prefix%><%lib%>"<%endfor%><%foreach(lit_libs)%> <%libopt%>"<%lit_lib%>"<%endfor%><%foreach(pure_libs)%> "<%pure_lib%>"<%endfor%> <%ldlibs%>
61
OBJS          =<%if(pch_source && pchsupport)%> <%targetoutdir%><%noextension(pch_source)%>$(OBJEXT)<%endif%><%foreach(source_files)%> <%targetoutdir%><%noextension(source_file)%>$(OBJEXT)<%endfor%><%if(rc)%><%foreach(resource_files)%> <%targetoutdir%><%resource_file%>$(OBJEXT)<%endfor%><%endif%>
61
OBJS          =<%if(pch_source && pchsupport)%> <%targetoutdir%><%noextension(pch_source)%>$(OBJEXT)<%endif%><%foreach(source_files)%> <%targetoutdir%><%noextension(source_file)%>$(OBJEXT)<%endfor%><%if(rc)%><%foreach(resource_files)%> <%targetoutdir%><%resource_file%>$(OBJEXT)<%endfor%><%endif%>
62
<%if(lib_ext)%>
62
<%if(lib_ext)%>
63
<%if(staticname)%>
63
<%if(staticname)%>
64
AREXT         = <%lib_ext%>
64
AREXT         = <%lib_ext%>
65
LIB           = $(LTARGETDIR)$(LIBPREFIX)<%staticname%>$(AREXT)
65
LIB           = $(LTARGETDIR)$(LIBPREFIX)<%staticname%>$(AREXT)
Line 108... Line 108...
108
<%prelink%>: specialscript $(OBJS)
108
<%prelink%>: specialscript $(OBJS)
109
	@.<%slash%>specialscript $(NM) "$(OBJS)" "$(LDLIBS)" "<%if(libpaths)%><%libpaths%><%else%>.<%endif%>" <%prelink%>
109
	@.<%slash%>specialscript $(NM) "$(OBJS)" "$(LDLIBS)" "<%if(libpaths)%><%libpaths%><%else%>.<%endif%>" <%prelink%>
110
	@$(RM) specialscript
110
	@$(RM) specialscript
111
 
111
 
112
<%targetoutdir%><%noextension(prelink)%>$(OBJEXT): <%prelink%>
112
<%targetoutdir%><%noextension(prelink)%>$(OBJEXT): <%prelink%>
113
	$(COMPILE.cc) <%prelink%> $(OUTPUT_OPTION)
113
	$(COMPILE.cc) $(OUTPUT_OPTION) <%prelink%>
114
	@$(RM) <%prelink%>
114
	@$(RM) <%prelink%>
115
 
115
 
116
<%endif%>
116
<%endif%>
117
<%endfor%>
117
<%endfor%>
118
<%endfor%>
118
<%endfor%>
Line 156... Line 156...
156
<%endfor%>
156
<%endfor%>
157
<%if(staticname)%>
157
<%if(staticname)%>
158
$(LIB): $(LTARGETDIR) <%foreach(configurations)%><%if(tempinc)%>$(TEMPINCDIR) <%endif%><%endfor%>$(OBJS)
158
$(LIB): $(LTARGETDIR) <%foreach(configurations)%><%if(tempinc)%>$(TEMPINCDIR) <%endif%><%endfor%>$(OBJS)
159
<%foreach(configurations)%>
159
<%foreach(configurations)%>
160
<%foreach(platforms)%>
160
<%foreach(platforms)%>
161
	$(AR) $(ARFLAGS) $(LIB) $(OBJS)<%if(tempinc)%> `find $(TEMPINCDIR) -type f`<%endif%>
161
	$(AR) $(ARFLAGS) $(LIB) $(OBJS)<%if(tempinc)%> `find $(TEMPINCDIR) -name \*.o\*`<%endif%>
162
<%if(ranlib)%>
162
<%if(ranlib)%>
163
	ranlib $(LIB)
163
	ranlib $(LIB)
164
<%endif%>
164
<%endif%>
165
<%endfor%>
165
<%endfor%>
166
<%endfor%>
166
<%endfor%>
Line 182... Line 182...
182
<%if(custom_type->input_file->output_files)%>
182
<%if(custom_type->input_file->output_files)%>
183
<%foreach(custom_type->input_file->output_files)%><%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%><%slash%><%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%><%if(flag_overrides(custom_type->input_file, dependent))%> <%flag_overrides(custom_type->input_file, dependent)%><%else%><%if(custom_type->dependent)%> <%custom_type->dependent%><%endif%><%endif%>
183
<%foreach(custom_type->input_file->output_files)%><%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%><%slash%><%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%><%if(flag_overrides(custom_type->input_file, dependent))%> <%flag_overrides(custom_type->input_file, dependent)%><%else%><%if(custom_type->dependent)%> <%custom_type->dependent%><%endif%><%endif%>
184
<%if(flag_overrides(custom_type->input_file, gendir))%>
184
<%if(flag_overrides(custom_type->input_file, gendir))%>
185
	@$(MKDIR) <%flag_overrides(custom_type->input_file, gendir)%>
185
	@$(MKDIR) <%flag_overrides(custom_type->input_file, gendir)%>
186
<%endif%>
186
<%endif%>
187
	<%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%>
187
	<%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%>
188
<%if(flag_overrides(custom_type->input_file, postcommand))%>
188
<%if(flag_overrides(custom_type->input_file, postcommand))%>
189
<%foreach(custom_type->input_file)%>
189
<%foreach(custom_type->input_file)%>
190
	<%flag_overrides(custom_type->input_file, postcommand)%>
190
	<%flag_overrides(custom_type->input_file, postcommand)%>
191
<%endfor%>
191
<%endfor%>
192
<%else%>
192
<%else%>
Line 224... Line 224...
224
	@-test -d $(TEMPINCDIR) || $(MKDIR) $(TEMPINCDIR) 2> $(NUL) || true
224
	@-test -d $(TEMPINCDIR) || $(MKDIR) $(TEMPINCDIR) 2> $(NUL) || true
225
 
225
 
226
<%endif%>
226
<%endif%>
227
<%if(pch_source && pchsupport)%>
227
<%if(pch_source && pchsupport)%>
228
<%targetoutdir%><%noextension(pch_source)%>$(OBJEXT): <%pch_source%>
228
<%targetoutdir%><%noextension(pch_source)%>$(OBJEXT): <%pch_source%>
229
	$(COMPILE.cc) <%if(pchcreate)%><%pchcreate%><%targetoutdir%><%pch_header%>.gch <%endif%>$(EXPORTFLAGS) <%pch_source%><%if(!pchnobj)%> $(OUTPUT_OPTION)<%endif%>
229
	$(COMPILE.cc) <%if(pchcreate)%><%pchcreate%><%targetoutdir%><%pch_header%>.gch <%endif%>$(EXPORTFLAGS)<%if(!pchnobj)%> $(OUTPUT_OPTION)<%endif%> <%pch_source%>
230
<%if(pchnobj)%>
230
<%if(pchnobj)%>
231
	@$(CP) <%pch_header%>.gch <%targetoutdir%><%noextension(pch_source)%>$(OBJEXT)
231
	@$(CP) <%pch_header%>.gch <%targetoutdir%><%noextension(pch_source)%>$(OBJEXT)
232
<%endif%>
232
<%endif%>
233
 
233
 
234
<%endif%>
234
<%endif%>
235
<%foreach(source_files)%>
235
<%foreach(source_files)%>
236
<%targetoutdir%><%noextension(source_file)%>$(OBJEXT): <%source_file%>
236
<%targetoutdir%><%noextension(source_file)%>$(OBJEXT): <%source_file%>
237
<%if(targetoutdir)%>
237
<%if(targetoutdir)%>
238
	@$(MKDIR) <%targetoutdir%><%dirname(source_file)%>
238
	@$(MKDIR) <%targetoutdir%><%dirname(source_file)%>
239
<%endif%>
239
<%endif%>
240
	$(COMPILE.cc) <%if(pchuse && pch_source && pchsupport)%><%pchuse%><%pch_header%>.gch <%endif%>$(EXPORTFLAGS) <%source_file%> $(OUTPUT_OPTION)
240
	$(COMPILE.cc) <%if(pchuse && pch_source && pchsupport)%><%pchuse%><%pch_header%>.gch <%endif%>$(EXPORTFLAGS) $(OUTPUT_OPTION) <%source_file%>
241
 
241
 
242
<%endfor%>
242
<%endfor%>
243
<%endfor%>
243
<%endfor%>
244
<%if(resource_files)%>
244
<%if(resource_files)%>
245
<%foreach(platforms)%>
245
<%foreach(platforms)%>