Subversion Repositories gelsvn

Rev

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

Rev 198 Rev 217
Line 1... Line 1...
1
#----------------------------------------------------------------------------
1
#----------------------------------------------------------------------------
2
#       Macros
2
#       Macros
3
#----------------------------------------------------------------------------
3
#----------------------------------------------------------------------------
4
<%marker(top)%>
4
<%marker(top)%>
5
<%foreach(configurations)%>
5
<%foreach(compilers)%>
-
 
6
<%foreach(platforms)%>
6
CXX           = <%cxx%>
7
CXX           = <%cxx%>
7
<%if(ld)%>
8
<%if(ld)%>
8
LD            = <%ld%>
9
LD            = <%ld%>
9
<%else%>
10
<%else%>
10
LD            = $(CXX) $(CCFLAGS) $(CPPFLAGS)
11
LD            = $(CXX) $(CCFLAGS) $(CPPFLAGS)
11
<%endif%>
12
<%endif%>
12
AR            = <%if(ar)%><%ar%><%else%>ar<%endif%>
13
AR            = <%ar("ar")%>
13
<%if(nm)%>
14
<%if(nm)%>
14
NM            = <%nm%>
15
NM            = <%nm%>
15
<%endif%>
16
<%endif%>
16
<%if(cputype)%>
17
<%if(cputype)%>
17
CPUTYPE       = <%cputype%>
18
CPUTYPE       = <%cputype%>
18
<%endif%>
19
<%endif%>
19
<%if(cpu)%>
20
<%if(cpu)%>
20
CPU           = <%cpu%>
21
CPU           = <%cpu%>
21
<%endif%>
22
<%endif%>
22
<%if(pic)%>
23
<%if(dll_ext && pic)%>
23
PICFLAGS      = <%pic%>
24
PICFLAGS      = <%pic%>
24
<%endif%>
25
<%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
CPPFLAGS      = <%if(visibility && visopt)%><%visopt%> <%endif%>$(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%><%if(extracppflags)%> <%extracppflags%><%endif%><%if(includes)%><%foreach(includes)%> -I"<%include%>"<%endfor%><%endif%><%if(macros)%><%foreach(macros)%> -D<%macro%><%endfor%><%endif%>
26
OBJEXT        = <%obj_ext%>
27
OBJEXT        = <%obj_ext%>
27
OUTPUT_OPTION = <%output_option(-o \"$@\")%>
28
OUTPUT_OPTION = <%output_option(-o \"$@\")%>
28
COMPILE.cc    = $(CXX) $(CCFLAGS) $(CPPFLAGS) <%compile_option("-c")%>
29
COMPILE.cc    = $(CXX) $(CCFLAGS) $(CPPFLAGS) <%compile_option("-c")%>
29
<%foreach(platforms)%>
30
<%if(rc)%>
-
 
31
RESEXT        = <%res_ext%>
-
 
32
<%endif%>
30
<%if(build64bit && arflags64)%>
33
<%if(build64bit && arflags64)%>
31
ARFLAGS       = <%if(extraarflags)%><%extraarflags%> <%endif%><%arflags64%>
34
ARFLAGS       = <%if(extraarflags)%><%extraarflags%> <%endif%><%arflags64%>
32
<%else%>
35
<%else%>
33
<%if(arflags)%>
36
<%if(arflags)%>
34
ARFLAGS       = <%if(extraarflags)%><%extraarflags%> <%endif%><%arflags%>
37
ARFLAGS       = <%if(extraarflags)%><%extraarflags%> <%endif%><%arflags%>
35
<%endif%>
38
<%endif%>
36
<%endif%>
39
<%endif%>
37
<%endfor%>
-
 
38
<%if(tempinc)%>
40
<%if(tempinc)%>
39
TEMPINCDIR    = <%tempinc%><%if(tempincopt)%><%slash%><%project_name%><%endif%>
41
TEMPINCDIR    = <%tempinc%><%if(tempincopt)%><%slash%><%project_name%><%endif%>
40
<%endif%>
42
<%endif%>
41
LDFLAGS       =<%if(libpaths)%><%foreach(libpaths)%> -L"<%libpath%>"<%endfor%><%endif%><%if(linkflags)%> <%linkflags%><%endif%><%if(build64bit && linkflags64)%> <%linkflags64%><%endif%>
43
LDFLAGS       =<%if(libpaths)%><%foreach(libpaths)%> <%libpathopt(-L)%>"<%libpath%>"<%endfor%><%endif%><%if(linkflags)%> <%linkflags%><%endif%><%if(build64bit && linkflags64)%> <%linkflags64%><%endif%>
42
<%endfor%>
-
 
43
CCC           = $(CXX)
44
CCC           = $(CXX)
44
MAKEFILE      = <%project_file%>
45
MAKEFILE      = <%project_file%>
45
DEPENDENCIES  = .depend.$(MAKEFILE)
46
DEPENDENCIES  = .depend.$(MAKEFILE)
46
<%if(exename)%>
47
<%if(exename)%>
47
BTARGETDIR    = <%if(install)%><%install%><%else%>.<%endif%><%slash%><%targetoutdir%>
48
BTARGETDIR    = <%if(install)%><%install%><%else%>.<%endif%><%slash%><%targetoutdir%>
48
BIN           = $(BTARGETDIR)<%exename%>$(EXEEXT)
49
BIN           = $(BTARGETDIR)<%exename%>$(EXESUFFIX)$(EXEEXT)
49
<%else%>
50
<%else%>
50
LTARGETDIR    = <%libout%><%slash%><%targetoutdir%>
51
LTARGETDIR    = <%libout%><%slash%><%targetoutdir%>
51
<%endif%>
52
<%endif%>
52
<%foreach(configurations)%>
53
CAT           = <%type("cat")%>
53
<%foreach(platforms)%>
54
MV            = <%move("mv -f")%>
54
RM            = <%delete("rm -rf")%>
55
RM            = <%delete("rm -rf")%>
55
CP            = <%copy("cp -p")%>
56
CP            = <%copy("cp -p")%>
56
NUL           = <%devnull("/dev/null")%>
57
NUL           = <%devnull("/dev/null")%>
57
MKDIR         = <%makedir("mkdir -p")%>
58
MKDIR         = <%makedir("mkdir -p")%>
58
EXEEXT        = <%exe_ext%>
59
EXEEXT        = <%exe_ext%>
59
LIBPREFIX     = <%lib_prefix%><%libname_prefix%>
60
LIBPREFIX     = <%lib_prefix%><%libname_prefix%>
-
 
61
<%foreach(configurations)%>
-
 
62
LIBSUFFIX     = <%lib_modifier%>
-
 
63
<%if(use_modifier)%>
-
 
64
EXESUFFIX     = <%lib_modifier%>
-
 
65
<%endif%>
-
 
66
<%if(optimize)%>
-
 
67
GENFLAGS      = <%genflags("-O")%>
-
 
68
<%else%>
-
 
69
GENFLAGS      = <%genflags("-g")%>
-
 
70
<%endif%>
-
 
71
<%endfor%>
60
LDLIBS        =<%foreach(libs)%> <%libopt%>"<%libname_prefix%><%lib%>"<%endfor%><%foreach(lit_libs)%> <%libopt%>"<%lit_lib%>"<%endfor%><%foreach(pure_libs)%> "<%pure_lib%>"<%endfor%> <%ldlibs%>
72
LDLIBS        =<%foreach(libs)%> <%libopt%>"<%libname_prefix%><%lib%>$(LIBSUFFIX)"<%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%>
73
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%>$(RESEXT)<%endfor%><%endif%>
62
<%if(lib_ext)%>
74
<%if(lib_ext)%>
63
<%if(staticname)%>
75
<%if(staticname)%>
64
AREXT         = <%lib_ext%>
76
AREXT         = <%lib_ext%>
65
LIB           = $(LTARGETDIR)$(LIBPREFIX)<%staticname%>$(AREXT)
77
LIB           = $(LTARGETDIR)$(LIBPREFIX)<%staticname%>$(LIBSUFFIX)$(AREXT)
66
<%endif%>
78
<%endif%>
67
<%endif%>
79
<%endif%>
68
<%if(dll_ext)%>
-
 
69
<%if(sharedname)%>
80
<%if(dll_ext && sharedname)%>
70
SOEXT         = <%dll_ext%>
81
SOEXT         = <%dll_ext%>
71
SHTARGETDIR   = <%if(dllout)%><%dllout%><%else%><%libout%><%endif%><%slash%><%targetoutdir%>
82
SHTARGETDIR   = <%if(dllout)%><%dllout%><%else%><%libout%><%endif%><%slash%><%targetoutdir%>
-
 
83
<%if(version && versupport)%>
-
 
84
SHLIB_BASE    = $(LIBPREFIX)<%sharedname%>$(LIBSUFFIX)$(SOEXT)
-
 
85
<%endif%>
72
SHLIB         = $(SHTARGETDIR)$(LIBPREFIX)<%sharedname%>$(SOEXT)
86
SHLIB         = $(SHTARGETDIR)$(LIBPREFIX)<%sharedname%>$(LIBSUFFIX)$(SOEXT)
73
<%if(shflags)%>
87
<%if(shflags)%>
74
SHFLAGS       = <%shflags%>
88
SHFLAGS       = <%shflags%>
75
<%endif%>
89
<%endif%>
76
<%endif%>
90
<%endif%>
77
<%endif%>
-
 
78
<%endfor%>
-
 
79
<%endfor%>
-
 
80
GENFLAGS      = <%genflags(-g)%>
-
 
81
SRC           =<%if(pch_source && pchsupport)%> <%pch_source%><%endif%> <%source_files%>
91
SRC           =<%if(pch_source && pchsupport)%> <%pch_source%><%endif%> <%source_files%>
82
LINK.cc       = $(LD) $(LDFLAGS)
92
LINK.cc       = $(LD) $(LDFLAGS)
83
<%if(dynamicflags)%>
93
<%if(dynamicflags)%>
84
DYNAMICFLAGS  =<%foreach(dynamicflags)%> -D<%dynamicflag%><%endfor%>
94
DYNAMICFLAGS  =<%foreach(dynamicflags)%> -D<%dynamicflag%><%endfor%>
85
<%endif%>
95
<%endif%>
86
<%if(staticflags)%>
96
<%if(staticflags)%>
87
STATICFLAGS   =<%foreach(staticflags)%> -D<%staticflag%><%endfor%>
97
STATICFLAGS   =<%foreach(staticflags)%> -D<%staticflag%><%endfor%>
88
<%endif%>
98
<%endif%>
89
EXPORTFLAGS   = <%if(exename)%><%if(need_staticflags)%>$(STATICFLAGS)<%endif%><%else%><%foreach(configurations)%><%foreach(platforms)%><%if(dll_ext && sharedname)%>$(DYNAMICFLAGS)<%else%>$(STATICFLAGS)<%endif%><%endfor%><%endfor%><%endif%>
99
EXPORTFLAGS   = <%if(exename)%><%if(need_staticflags)%>$(STATICFLAGS)<%endif%><%else%><%if(dll_ext && sharedname)%>$(DYNAMICFLAGS)<%else%>$(STATICFLAGS)<%endif%><%endif%>
90
<%marker(macros)%>
100
<%marker(macros)%>
91
 
101
 
92
#----------------------------------------------------------------------------
102
#----------------------------------------------------------------------------
93
#       Local targets
103
#       Local targets
94
#----------------------------------------------------------------------------
104
#----------------------------------------------------------------------------
95
 
105
 
96
<%if(exename)%>
106
<%if(exename)%>
97
all: $(BIN)<%if(postbuild)%> __postbuild__<%endif%>
107
all:<%if(prebuild)%> __prebuild__<%endif%> $(BIN)<%if(postbuild)%> __postbuild__<%endif%>
98
 
108
 
99
<%foreach(configurations)%>
-
 
100
<%foreach(platforms)%>
-
 
101
<%if(specialscript)%>
109
<%if(specialscript)%>
102
specialscript:
110
specialscript:
103
	@echo '<%specialscript%>' > specialscript
111
	@echo '<%specialscript%>' > specialscript
104
	@chmod 755 specialscript
112
	@<%chmod("chmod")%> 755 specialscript
105
 
113
 
106
<%endif%>
114
<%endif%>
107
<%if(prelink)%>
115
<%if(prelink)%>
108
<%prelink%>: specialscript $(OBJS)
116
<%prelink%>: specialscript $(OBJS)
109
	@.<%slash%>specialscript $(NM) "$(OBJS)" "$(LDLIBS)" "<%if(libpaths)%><%libpaths%><%else%>.<%endif%>" <%prelink%>
117
	@specialscript $(NM) "$(OBJS)" "$(LDLIBS)" "<%if(libpaths)%><%libpaths%><%else%>.<%endif%>" <%prelink%>
110
	@$(RM) specialscript
118
	@$(RM) specialscript
111
 
119
 
112
<%targetoutdir%><%noextension(prelink)%>$(OBJEXT): <%prelink%>
120
<%targetoutdir%><%noextension(prelink)%>$(OBJEXT): <%prelink%>
113
	$(COMPILE.cc) $(OUTPUT_OPTION) <%prelink%>
121
	$(COMPILE.cc) $(OUTPUT_OPTION) <%prelink%>
114
	@$(RM) <%prelink%>
122
	@$(RM) <%prelink%>
115
 
123
 
116
<%endif%>
124
<%endif%>
117
<%endfor%>
-
 
118
<%endfor%>
-
 
119
$(BTARGETDIR):
125
$(BTARGETDIR):
120
	@$(MKDIR) "$@"
126
	@$(MKDIR) "$@"
121
 
127
 
122
$(BIN): $(BTARGETDIR)<%foreach(configurations)%><%if(tempinc)%> $(TEMPINCDIR)<%endif%><%foreach(platforms)%><%if(prelink)%> <%targetoutdir%><%noextension(prelink)%>$(OBJEXT)<%endif%><%endfor%><%endfor%> $(OBJS)
128
$(BIN): $(BTARGETDIR)<%if(tempinc)%> $(TEMPINCDIR)<%endif%><%if(prelink)%> <%targetoutdir%><%noextension(prelink)%>$(OBJEXT)<%endif%> $(OBJS)
123
	$(LINK.cc) $(OUTPUT_OPTION) $(OBJS) $(LDLIBS)
129
	$(LINK.cc) $(OBJS) $(LDLIBS) $(OUTPUT_OPTION)
124
 
130
 
125
<%else%>
-
 
126
$(LTARGETDIR):
-
 
127
	@$(MKDIR) "$@"
-
 
128
<%endif%>
131
<%endif%>
129
 
-
 
130
<%foreach(configurations)%>
-
 
131
<%foreach(platforms)%>
-
 
132
<%if(dll_ext)%>
-
 
133
<%if(sharedname)%>
132
<%if(dll_ext && sharedname)%>
134
all: $(SHLIB)<%if(postbuild)%> __postbuild__<%endif%>
133
all:<%if(prebuild)%> __prebuild__<%endif%><%if(version && versupport)%> $(SHLIB).<%version%><%endif%> $(SHLIB)<%if(postbuild)%> __postbuild__<%endif%>
135
 
134
 
136
<%if(dllout)%>
135
<%if(dllout)%>
137
$(SHTARGETDIR):
136
$(SHTARGETDIR):
138
	@$(MKDIR) "$@"
137
	@$(MKDIR) "$@"
139
 
138
 
140
<%endif%>
139
<%endif%>
141
$(SHLIB): $(SHTARGETDIR) <%foreach(configurations)%><%if(tempinc)%>$(TEMPINCDIR) <%endif%><%endfor%>$(OBJS)
-
 
142
	<%foreach(configurations)%><%foreach(platforms)%><%if(dld)%><%dld%> $(LDFLAGS)<%else%>$(LINK.cc)<%endif%><%endfor%><%endfor%> $(SHFLAGS) $(OUTPUT_OPTION) $(OBJS) $(LDLIBS)
-
 
143
<%else%>
140
<%if(version && versupport)%>
144
<%if(staticname)%>
141
$(SHLIB):
145
all: $(LIB)<%if(postbuild)%> __postbuild__<%endif%>
142
	cd $(SHTARGETDIR) && ln -s $(SHLIB_BASE).<%version%> $(SHLIB_BASE)
-
 
143
 
146
<%endif%>
144
<%endif%>
-
 
145
$(SHLIB)<%if(version && versupport)%>.<%version%><%endif%>: $(SHTARGETDIR) <%if(tempinc)%>$(TEMPINCDIR) <%endif%>$(OBJS)
-
 
146
<%if(dmclink)%>
-
 
147
	link /impl <%if(pch_source && pchsupport)%><%targetoutdir%><%noextension(pch_source)%>$(OBJEXT)+<%endif%><%foreach(source_files)%><%targetoutdir%><%noextension(source_file)%>$(OBJEXT)<%fornotlast("+")%><%endfor%>,$@,<%foreach(platforms)%><%ldlibs%><%endfor%><%if(rc)%><%foreach(resource_files)%><%forfirst(",,")%><%targetoutdir%><%resource_file%>$(RESEXT)<%fornotlast("+")%><%endfor%><%endif%>
-
 
148
<%else%>
-
 
149
	<%foreach(platforms)%><%if(dld)%><%dld%> $(LDFLAGS)<%else%>$(LINK.cc)<%endif%><%endfor%> $(SHFLAGS) $(OBJS) $(LDLIBS) $(OUTPUT_OPTION)
147
<%endif%>
150
<%endif%>
148
 
151
 
149
<%else%>
152
<%else%>
150
<%if(staticname)%>
153
<%if(staticname)%>
151
all: $(LIB)<%if(postbuild)%> __postbuild__<%endif%>
154
all:<%if(prebuild)%> __prebuild__<%endif%> $(LIB)<%if(postbuild)%> __postbuild__<%endif%>
152
 
155
 
153
<%endif%>
156
<%endif%>
154
<%endif%>
157
<%endif%>
155
<%endfor%>
158
<%if(!exename)%>
-
 
159
$(LTARGETDIR):
-
 
160
	@$(MKDIR) "$@"
-
 
161
 
156
<%endfor%>
162
<%endif%>
157
<%if(staticname)%>
163
<%if(staticname)%>
158
$(LIB): $(LTARGETDIR) <%foreach(configurations)%><%if(tempinc)%>$(TEMPINCDIR) <%endif%><%endfor%>$(OBJS)
164
$(LIB): $(LTARGETDIR) <%if(tempinc)%>$(TEMPINCDIR) <%endif%>$(OBJS)
159
<%foreach(configurations)%>
-
 
160
<%foreach(platforms)%>
-
 
161
	$(AR) $(ARFLAGS) $(LIB) $(OBJS)<%if(tempinc)%> `find $(TEMPINCDIR) -name \*.o\*`<%endif%>
165
	$(AR) $(ARFLAGS) <%libgenopt%>$(LIB) $(OBJS)<%if(tempinc)%> `find $(TEMPINCDIR) -name \*.o\*`<%endif%>
162
<%if(ranlib)%>
166
<%if(ranlib)%>
163
	ranlib $(LIB)
167
	ranlib $(LIB)
164
<%endif%>
168
<%endif%>
165
<%endfor%>
-
 
166
<%endfor%>
-
 
167
 
169
 
168
<%endif%>
170
<%endif%>
169
<%if(custom_types)%>
171
<%if(custom_types)%>
170
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)%><%slash%><%basename(custom_type->input_file->output_file)%><%else%><%custom_type->input_file->output_file%><%endif%><%endfor%><%endif%><%endfor%><%endfor%>
172
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)%><%slash%><%basename(custom_type->input_file->output_file)%><%else%><%custom_type->input_file->output_file%><%endif%><%endfor%><%endif%><%endfor%><%endfor%>
171
<%foreach(custom_types)%>
173
<%foreach(custom_types)%>
172
<%if(custom_type->libpath)%>
174
<%if(expanded_variable_assignment && custom_type->libpath)%>
173
# These may be needed, but some versions of make do not accept this syntax
-
 
174
#DYLD_LIBRARY_PATH := $(DYLD_LIBRARY_PATH):<%custom_type->libpath%>
175
DYLD_LIBRARY_PATH := $(DYLD_LIBRARY_PATH):<%custom_type->libpath%>
175
#LD_LIBRARY_PATH   := $(LD_LIBRARY_PATH):<%custom_type->libpath%>
176
LD_LIBRARY_PATH   := $(LD_LIBRARY_PATH):<%custom_type->libpath%>
176
#SHLIB_PATH        := $(SHLIB_PATH):<%custom_type->libpath%>
177
SHLIB_PATH        := $(SHLIB_PATH):<%custom_type->libpath%>
177
#LIBPATH           := $(LIBPATH):<%custom_type->libpath%>
178
LIBPATH           := $(LIBPATH):<%custom_type->libpath%>
178
#PATH              := $(PATH):<%custom_type->libpath%>
179
PATH              := $(PATH):<%custom_type->libpath%>
179
 
180
 
180
<%endif%>
181
<%endif%>
181
<%foreach(custom_type->input_files)%>
182
<%foreach(custom_type->input_files)%>
182
<%if(custom_type->input_file->output_files)%>
183
<%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%>
184
<%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%>
Line 197... Line 198...
197
<%endif%>
198
<%endif%>
198
<%endif%>
199
<%endif%>
199
<%if(pch_header)%>
200
<%if(pch_header)%>
200
<%if(custom_type->pch_postrule)%>
201
<%if(custom_type->pch_postrule)%>
201
<%foreach(custom_type->input_file->source_output_files)%>
202
<%foreach(custom_type->input_file->source_output_files)%>
202
	@echo '#include "<%pch_header%>"' > temp.$$$$ && cat <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%><%slash%><%basename(custom_type->input_file->source_output_file)%><%else%><%custom_type->input_file->source_output_file%><%endif%> >> temp.$$$$ && mv temp.$$$$ <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%><%slash%><%basename(custom_type->input_file->source_output_file)%><%else%><%custom_type->input_file->source_output_file%><%endif%>
203
	@echo '#include "<%pch_header%>"' > temp.$$$$ && $(CAT) <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%><%slash%><%basename(custom_type->input_file->source_output_file)%><%else%><%custom_type->input_file->source_output_file%><%endif%> >> temp.$$$$ && $(MV) temp.$$$$ <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%><%slash%><%basename(custom_type->input_file->source_output_file)%><%else%><%custom_type->input_file->source_output_file%><%endif%>
203
<%endfor%>
204
<%endfor%>
204
<%endif%>
205
<%endif%>
205
<%endif%>
206
<%endif%>
206
 
207
 
207
<%endif%>
208
<%endif%>
Line 209... Line 210...
209
<%endfor%>
210
<%endfor%>
210
.PRECIOUS: $(GENERATED_DIRTY)
211
.PRECIOUS: $(GENERATED_DIRTY)
211
<%if(source_files)%>
212
<%if(source_files)%>
212
$(OBJS): $(GENERATED_DIRTY)
213
$(OBJS): $(GENERATED_DIRTY)
213
<%else%>
214
<%else%>
214
all: $(GENERATED_DIRTY)<%if(postbuild)%> __postbuild__<%endif%>
215
all:<%if(prebuild)%> __prebuild__<%endif%> $(GENERATED_DIRTY)<%if(postbuild)%> __postbuild__<%endif%>
215
<%endif%>
216
<%endif%>
216
 
217
 
217
<%endif%>
218
<%endif%>
218
generated: $(GENERATED_DIRTY)
219
generated: $(GENERATED_DIRTY)
219
	@-:
220
	@-:
220
 
221
 
221
<%foreach(configurations)%>
-
 
222
<%if(tempinc)%>
222
<%if(tempinc)%>
223
$(TEMPINCDIR):
223
$(TEMPINCDIR):
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)<%if(!pchnobj)%> $(OUTPUT_OPTION)<%endif%> <%pch_source%>
229
	$(COMPILE.cc) <%if(pchcreate)%><%pchcreate%><%targetoutdir%><%pch_header%><%pchext%> <%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%><%pchext%> <%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) $(OUTPUT_OPTION) <%source_file%>
240
	$(COMPILE.cc) <%if(flag_overrides(source_file, buildflags))%><%flag_overrides(source_file, buildflags)%> <%endif%><%if(pchuse && pch_source && pchsupport)%><%pchuse%><%pch_header%><%pchext%> <%if(pchstop)%><%pchstop%><%pch_header%><%endif%><%endif%>$(EXPORTFLAGS) $(OUTPUT_OPTION) <%source_file%>
241
 
241
 
242
<%endfor%>
242
<%endfor%>
243
<%endfor%>
-
 
244
<%if(resource_files)%>
243
<%if(resource_files)%>
245
<%foreach(platforms)%>
-
 
246
<%if(rc)%>
244
<%if(rc)%>
247
<%foreach(resource_files)%>
245
<%foreach(resource_files)%>
248
<%targetoutdir%><%resource_file%>$(OBJEXT):
246
<%targetoutdir%><%resource_file%>$(RESEXT):
249
	<%rc%><%foreach(includes)%> -I<%include%><%endfor%> <%resource_file%> <%targetoutdir%><%resource_file%>$(OBJEXT)
247
	<%rc%><%foreach(includes)%> -I<%include%><%endfor%> <%resource_file%> <%targetoutdir%><%resource_file%>$(RESEXT)
250
 
248
 
251
<%endfor%>
249
<%endfor%>
252
<%endif%>
250
<%endif%>
253
<%endfor%>
-
 
254
<%endif%>
251
<%endif%>
255
clean:
252
clean:
-
 
253
	-$(RM) $(OBJS)
256
	-$(RM) $(OBJS)<%if(pch_source && pchsupport)%> <%pch_header%>.gch<%endif%>
254
<%if(pch_source && pchsupport)%>
257
<%foreach(configurations)%>
255
	-$(RM) <%pch_header%><%pchext%>
-
 
256
<%endif%>
258
<%if(clean)%>
257
<%if(clean)%>
259
	-$(RM) <%clean%>
258
	-$(RM) <%clean%><%if(sharedname)%><%foreach(dir, clean)%> $(SHTARGETDIR)<%dir%><%endfor%><%endif%><%if(staticname || sharedname)%><%foreach(dir, clean)%> $(LTARGETDIR)<%dir%><%endfor%><%endif%><%if(exename)%><%foreach(dir, clean)%> $(BTARGETDIR)<%dir%><%endfor%><%endif%>
260
<%endif%>
259
<%endif%>
261
<%endfor%>
-
 
262
 
260
 
263
realclean: clean
261
realclean: clean
264
	-$(RM) <%if(exename)%>$(BIN)<%else%>$(SHLIB) $(LIB)<%endif%>
262
	-$(RM) <%if(exename)%>$(BIN)<%else%><%if(dll_ext && sharedname && version && versupport)%>$(SHLIB).<%version%> <%endif%>$(SHLIB) $(LIB)<%endif%>
265
<%if(custom_types)%>
263
<%if(custom_types)%>
266
	-$(RM) $(GENERATED_DIRTY)
264
	-$(RM) $(GENERATED_DIRTY)
267
<%endif%>
265
<%endif%>
268
 
266
 
-
 
267
<%if(prebuild)%>
-
 
268
__prebuild__:
-
 
269
	@<%eval(prebuild)%>
-
 
270
 
-
 
271
<%endif%>
269
<%if(postbuild)%>
272
<%if(postbuild)%>
270
__postbuild__:
273
__postbuild__:
271
	@<%eval(postbuild)%>
274
	@<%eval(postbuild)%>
272
 
275
 
273
<%endif%>
276
<%endif%>
Line 284... Line 287...
284
	-<%depgen("makedepend -Y")%> $(CFLAGS) $(CCFLAGS) $(CPPFLAGS) -f $(DEPENDENCIES) $(SRC) 2> $(NUL)
287
	-<%depgen("makedepend -Y")%> $(CFLAGS) $(CCFLAGS) $(CPPFLAGS) -f $(DEPENDENCIES) $(SRC) 2> $(NUL)
285
<%else%>
288
<%else%>
286
	@-:
289
	@-:
287
<%endif%>
290
<%endif%>
288
 
291
 
-
 
292
<%if(dependencies)%>
289
include $(DEPENDENCIES)
293
include $(DEPENDENCIES)
-
 
294
<%endif%>
-
 
295
<%endfor%>
-
 
296
<%endfor%>
290
<%marker(bottom)%>
297
<%marker(bottom)%>