]> git.saurik.com Git - wxWidgets.git/blob - samples/render/makefile.gcc
1f56bade32f0a68353a76a230cfa7da045a5cc8a
[wxWidgets.git] / samples / render / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.9 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 include ../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 CPPDEPS = -MT$@ -MF$@.d -MD
16 WX_RELEASE_NODOT = 26
17 OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22 RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
23 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
24 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
25 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
26 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
27 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
28 RENDER_OBJECTS = \
29 $(OBJS)\render_sample_rc.o \
30 $(OBJS)\render_render.o
31 RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
32 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
33 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
34 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
35 -W -Wall -DWXUSINGDLL $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
36 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
37 RENDDLL_OBJECTS = \
38 $(OBJS)\renddll_renddll.o
39
40 ### Conditionally set variables: ###
41
42 ifeq ($(GCC_VERSION),2.95)
43 GCCFLAGS = -fvtable-thunks
44 endif
45 ifeq ($(USE_GUI),0)
46 PORTNAME = base
47 endif
48 ifeq ($(USE_GUI),1)
49 PORTNAME = msw
50 endif
51 ifeq ($(BUILD),debug)
52 ifeq ($(DEBUG_FLAG),default)
53 WXDEBUGFLAG = d
54 endif
55 endif
56 ifeq ($(DEBUG_FLAG),1)
57 WXDEBUGFLAG = d
58 endif
59 ifeq ($(UNICODE),1)
60 WXUNICODEFLAG = u
61 endif
62 ifeq ($(WXUNIV),1)
63 WXUNIVNAME = univ
64 endif
65 ifeq ($(SHARED),1)
66 WXDLLFLAG = dll
67 endif
68 ifeq ($(SHARED),0)
69 LIBTYPE_SUFFIX = lib
70 endif
71 ifeq ($(SHARED),1)
72 LIBTYPE_SUFFIX = dll
73 endif
74 ifeq ($(MONOLITHIC),0)
75 EXTRALIBS_FOR_BASE =
76 endif
77 ifeq ($(MONOLITHIC),1)
78 EXTRALIBS_FOR_BASE =
79 endif
80 ifeq ($(BUILD),debug)
81 ifeq ($(UNICODE),0)
82 PLUGINSUFFIX = d
83 endif
84 endif
85 ifeq ($(BUILD),debug)
86 ifeq ($(UNICODE),1)
87 PLUGINSUFFIX = ud
88 endif
89 endif
90 ifeq ($(BUILD),release)
91 ifeq ($(UNICODE),0)
92 PLUGINSUFFIX =
93 endif
94 endif
95 ifeq ($(BUILD),release)
96 ifeq ($(UNICODE),1)
97 PLUGINSUFFIX = u
98 endif
99 endif
100 ifeq ($(WXUNIV),1)
101 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
102 endif
103 ifeq ($(BUILD),debug)
104 ifeq ($(DEBUG_FLAG),default)
105 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
106 endif
107 endif
108 ifeq ($(DEBUG_FLAG),1)
109 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
110 endif
111 ifeq ($(USE_EXCEPTIONS),0)
112 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
113 endif
114 ifeq ($(USE_RTTI),0)
115 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
116 endif
117 ifeq ($(USE_THREADS),0)
118 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
119 endif
120 ifeq ($(UNICODE),1)
121 __UNICODE_DEFINE_p_1 = --define _UNICODE
122 endif
123 ifeq ($(SHARED),1)
124 __DLLFLAG_p = -DWXUSINGDLL
125 endif
126 ifeq ($(SHARED),1)
127 __DLLFLAG_p_1 = --define WXUSINGDLL
128 endif
129 ifeq ($(SHARED),1)
130 __renddll___depname = \
131 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll
132 endif
133 ifeq ($(BUILD),debug)
134 __OPTIMIZEFLAG = -O0
135 endif
136 ifeq ($(BUILD),release)
137 __OPTIMIZEFLAG = -O2
138 endif
139 ifeq ($(USE_RTTI),0)
140 __RTTIFLAG = -fno-rtti
141 endif
142 ifeq ($(USE_RTTI),1)
143 __RTTIFLAG =
144 endif
145 ifeq ($(USE_EXCEPTIONS),0)
146 __EXCEPTIONSFLAG = -fno-exceptions
147 endif
148 ifeq ($(USE_EXCEPTIONS),1)
149 __EXCEPTIONSFLAG =
150 endif
151 ifeq ($(WXUNIV),1)
152 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
153 endif
154 ifeq ($(BUILD),debug)
155 ifeq ($(DEBUG_FLAG),default)
156 __DEBUG_DEFINE_p = -D__WXDEBUG__
157 endif
158 endif
159 ifeq ($(DEBUG_FLAG),1)
160 __DEBUG_DEFINE_p = -D__WXDEBUG__
161 endif
162 ifeq ($(USE_EXCEPTIONS),0)
163 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
164 endif
165 ifeq ($(USE_RTTI),0)
166 __RTTI_DEFINE_p = -DwxNO_RTTI
167 endif
168 ifeq ($(USE_THREADS),0)
169 __THREAD_DEFINE_p = -DwxNO_THREADS
170 endif
171 ifeq ($(UNICODE),1)
172 __UNICODE_DEFINE_p = -D_UNICODE
173 endif
174 ifeq ($(MONOLITHIC),0)
175 __WXLIB_CORE_p = \
176 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
177 endif
178 ifeq ($(MONOLITHIC),0)
179 __WXLIB_BASE_p = \
180 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
181 endif
182 ifeq ($(MONOLITHIC),1)
183 __WXLIB_MONO_p = \
184 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
185 endif
186 ifeq ($(USE_GUI),1)
187 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
188 endif
189 ifeq ($(USE_GUI),1)
190 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
191 endif
192 ifeq ($(USE_GUI),1)
193 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
194 endif
195 ifeq ($(MSLU),1)
196 __UNICOWS_LIB_p = -lunicows
197 endif
198 ifeq ($(BUILD),debug)
199 ifeq ($(DEBUG_INFO),default)
200 __DEBUGINFO = -g
201 endif
202 endif
203 ifeq ($(BUILD),release)
204 ifeq ($(DEBUG_INFO),default)
205 __DEBUGINFO =
206 endif
207 endif
208 ifeq ($(DEBUG_INFO),0)
209 __DEBUGINFO =
210 endif
211 ifeq ($(DEBUG_INFO),1)
212 __DEBUGINFO = -g
213 endif
214 ifeq ($(USE_THREADS),0)
215 __THREADSFLAG =
216 endif
217 ifeq ($(USE_THREADS),1)
218 __THREADSFLAG = -mthreads
219 endif
220
221
222 all: $(OBJS)
223 $(OBJS):
224 -if not exist $(OBJS) mkdir $(OBJS)
225
226 ### Targets: ###
227
228 all: $(OBJS)\render.exe $(__renddll___depname)
229
230 clean:
231 -if exist $(OBJS)\*.o del $(OBJS)\*.o
232 -if exist $(OBJS)\*.d del $(OBJS)\*.d
233 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
234 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll
235
236 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
237 $(CXX) -o $@ $(RENDER_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
238
239 ifeq ($(SHARED),1)
240 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
241 $(CXX) -shared -fPIC -o $@ $(RENDDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
242 endif
243
244 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
245 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples
246
247 $(OBJS)\render_render.o: ./render.cpp
248 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<
249
250 $(OBJS)\renddll_renddll.o: ./renddll.cpp
251 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<
252
253 .PHONY: all clean
254
255
256 # Dependencies tracking:
257 -include $(OBJS)/*.d