]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/render/makefile.gcc
Allow displaying Japanese character with wxMotif/ANSI under a
[wxWidgets.git] / samples / render / makefile.gcc
... / ...
CommitLineData
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
7include ../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15CPPDEPS = -MT$@ -MF$@.d -MD
16WX_RELEASE_NODOT = 26
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22RENDER_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)
28RENDER_OBJECTS = \
29 $(OBJS)\render_sample_rc.o \
30 $(OBJS)\render_render.o
31RENDDLL_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)
37RENDDLL_OBJECTS = \
38 $(OBJS)\renddll_renddll.o
39
40### Conditionally set variables: ###
41
42ifeq ($(GCC_VERSION),2.95)
43GCCFLAGS = -fvtable-thunks
44endif
45ifeq ($(USE_GUI),0)
46PORTNAME = base
47endif
48ifeq ($(USE_GUI),1)
49PORTNAME = msw
50endif
51ifeq ($(BUILD),debug)
52ifeq ($(DEBUG_FLAG),default)
53WXDEBUGFLAG = d
54endif
55endif
56ifeq ($(DEBUG_FLAG),1)
57WXDEBUGFLAG = d
58endif
59ifeq ($(UNICODE),1)
60WXUNICODEFLAG = u
61endif
62ifeq ($(WXUNIV),1)
63WXUNIVNAME = univ
64endif
65ifeq ($(SHARED),1)
66WXDLLFLAG = dll
67endif
68ifeq ($(SHARED),0)
69LIBTYPE_SUFFIX = lib
70endif
71ifeq ($(SHARED),1)
72LIBTYPE_SUFFIX = dll
73endif
74ifeq ($(MONOLITHIC),0)
75EXTRALIBS_FOR_BASE =
76endif
77ifeq ($(MONOLITHIC),1)
78EXTRALIBS_FOR_BASE =
79endif
80ifeq ($(BUILD),debug)
81ifeq ($(UNICODE),0)
82PLUGINSUFFIX = d
83endif
84endif
85ifeq ($(BUILD),debug)
86ifeq ($(UNICODE),1)
87PLUGINSUFFIX = ud
88endif
89endif
90ifeq ($(BUILD),release)
91ifeq ($(UNICODE),0)
92PLUGINSUFFIX =
93endif
94endif
95ifeq ($(BUILD),release)
96ifeq ($(UNICODE),1)
97PLUGINSUFFIX = u
98endif
99endif
100ifeq ($(WXUNIV),1)
101__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
102endif
103ifeq ($(BUILD),debug)
104ifeq ($(DEBUG_FLAG),default)
105__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
106endif
107endif
108ifeq ($(DEBUG_FLAG),1)
109__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
110endif
111ifeq ($(USE_EXCEPTIONS),0)
112__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
113endif
114ifeq ($(USE_RTTI),0)
115__RTTI_DEFINE_p_1 = --define wxNO_RTTI
116endif
117ifeq ($(USE_THREADS),0)
118__THREAD_DEFINE_p_1 = --define wxNO_THREADS
119endif
120ifeq ($(UNICODE),1)
121__UNICODE_DEFINE_p_1 = --define _UNICODE
122endif
123ifeq ($(SHARED),1)
124__DLLFLAG_p = -DWXUSINGDLL
125endif
126ifeq ($(SHARED),1)
127__DLLFLAG_p_1 = --define WXUSINGDLL
128endif
129ifeq ($(SHARED),1)
130__renddll___depname = \
131 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll
132endif
133ifeq ($(BUILD),debug)
134__OPTIMIZEFLAG = -O0
135endif
136ifeq ($(BUILD),release)
137__OPTIMIZEFLAG = -O2
138endif
139ifeq ($(USE_RTTI),0)
140__RTTIFLAG = -fno-rtti
141endif
142ifeq ($(USE_RTTI),1)
143__RTTIFLAG =
144endif
145ifeq ($(USE_EXCEPTIONS),0)
146__EXCEPTIONSFLAG = -fno-exceptions
147endif
148ifeq ($(USE_EXCEPTIONS),1)
149__EXCEPTIONSFLAG =
150endif
151ifeq ($(WXUNIV),1)
152__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
153endif
154ifeq ($(BUILD),debug)
155ifeq ($(DEBUG_FLAG),default)
156__DEBUG_DEFINE_p = -D__WXDEBUG__
157endif
158endif
159ifeq ($(DEBUG_FLAG),1)
160__DEBUG_DEFINE_p = -D__WXDEBUG__
161endif
162ifeq ($(USE_EXCEPTIONS),0)
163__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
164endif
165ifeq ($(USE_RTTI),0)
166__RTTI_DEFINE_p = -DwxNO_RTTI
167endif
168ifeq ($(USE_THREADS),0)
169__THREAD_DEFINE_p = -DwxNO_THREADS
170endif
171ifeq ($(UNICODE),1)
172__UNICODE_DEFINE_p = -D_UNICODE
173endif
174ifeq ($(MONOLITHIC),0)
175__WXLIB_CORE_p = \
176 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
177endif
178ifeq ($(MONOLITHIC),0)
179__WXLIB_BASE_p = \
180 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
181endif
182ifeq ($(MONOLITHIC),1)
183__WXLIB_MONO_p = \
184 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
185endif
186ifeq ($(USE_GUI),1)
187__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
188endif
189ifeq ($(USE_GUI),1)
190__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
191endif
192ifeq ($(USE_GUI),1)
193__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
194endif
195ifeq ($(MSLU),1)
196__UNICOWS_LIB_p = -lunicows
197endif
198ifeq ($(BUILD),debug)
199ifeq ($(DEBUG_INFO),default)
200__DEBUGINFO = -g
201endif
202endif
203ifeq ($(BUILD),release)
204ifeq ($(DEBUG_INFO),default)
205__DEBUGINFO =
206endif
207endif
208ifeq ($(DEBUG_INFO),0)
209__DEBUGINFO =
210endif
211ifeq ($(DEBUG_INFO),1)
212__DEBUGINFO = -g
213endif
214ifeq ($(USE_THREADS),0)
215__THREADSFLAG =
216endif
217ifeq ($(USE_THREADS),1)
218__THREADSFLAG = -mthreads
219endif
220
221
222all: $(OBJS)
223$(OBJS):
224 -if not exist $(OBJS) mkdir $(OBJS)
225
226### Targets: ###
227
228all: $(OBJS)\render.exe $(__renddll___depname)
229
230clean:
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
239ifeq ($(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
242endif
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