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