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