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