]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/ogl/studio/makefile.gcc
blind fix for Unicode key handling (patch 1615989)
[wxWidgets.git] / contrib / samples / ogl / studio / 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 16WX_RELEASE_NODOT = 29
2d611b5c
VS
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 19LIBDIRNAME = .\..\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
34f7e40f
JS
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
22STUDIO_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
23 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
26 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\..\include -W -Wall -I. \
27 $(__DLLFLAG_p) -I.\..\..\..\..\samples -DNOPCH -I.\..\..\..\include \
28 $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
29 $(CXXFLAGS)
34f7e40f
JS
30STUDIO_OBJECTS = \
31 $(OBJS)\studio_studio.o \
32 $(OBJS)\studio_doc.o \
33 $(OBJS)\studio_shapes.o \
34 $(OBJS)\studio_symbols.o \
35 $(OBJS)\studio_view.o \
36 $(OBJS)\studio_cspalette.o \
37 $(OBJS)\studio_mainfrm.o \
38 $(OBJS)\studio_project.o \
39 $(OBJS)\studio_dialogs.o \
40 $(OBJS)\studio_csprint.o \
41 $(OBJS)\studio_studio_rc.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
b17c1746
DE
83ifeq ($(BUILD),debug)
84__OPTIMIZEFLAG_2 = -O0
2d611b5c
VS
85endif
86ifeq ($(BUILD),release)
b17c1746 87__OPTIMIZEFLAG_2 = -O2
2d611b5c 88endif
8c9f8f91
JS
89ifeq ($(USE_RTTI),0)
90__RTTIFLAG_5 = -fno-rtti
2d611b5c 91endif
8c9f8f91
JS
92ifeq ($(USE_RTTI),1)
93__RTTIFLAG_5 =
2d611b5c 94endif
b17c1746 95ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 96__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
97endif
98ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 99__EXCEPTIONSFLAG_6 =
b17c1746
DE
100endif
101ifeq ($(WXUNIV),1)
102__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
103endif
104ifeq ($(WXUNIV),1)
105__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
2d611b5c
VS
106endif
107ifeq ($(BUILD),debug)
108ifeq ($(DEBUG_FLAG),default)
109__DEBUG_DEFINE_p = -D__WXDEBUG__
110endif
111endif
112ifeq ($(DEBUG_FLAG),1)
113__DEBUG_DEFINE_p = -D__WXDEBUG__
114endif
115ifeq ($(BUILD),debug)
116ifeq ($(DEBUG_FLAG),default)
117__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
118endif
119endif
120ifeq ($(DEBUG_FLAG),1)
121__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
122endif
8c9f8f91
JS
123ifeq ($(USE_EXCEPTIONS),0)
124__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
125endif
126ifeq ($(USE_EXCEPTIONS),0)
127__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
128endif
129ifeq ($(USE_RTTI),0)
130__RTTI_DEFINE_p = -DwxNO_RTTI
131endif
132ifeq ($(USE_RTTI),0)
133__RTTI_DEFINE_p_1 = --define wxNO_RTTI
134endif
135ifeq ($(USE_THREADS),0)
136__THREAD_DEFINE_p = -DwxNO_THREADS
137endif
138ifeq ($(USE_THREADS),0)
139__THREAD_DEFINE_p_1 = --define wxNO_THREADS
140endif
b17c1746
DE
141ifeq ($(UNICODE),1)
142__UNICODE_DEFINE_p = -D_UNICODE
143endif
144ifeq ($(UNICODE),1)
145__UNICODE_DEFINE_p_1 = --define _UNICODE
146endif
2113bc77
MW
147ifeq ($(MSLU),1)
148__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
149endif
150ifeq ($(MSLU),1)
151__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
152endif
3abcf424
RD
153ifeq ($(USE_GDIPLUS),1)
154__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
155endif
156ifeq ($(USE_GDIPLUS),1)
157__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
158endif
2d611b5c
VS
159ifeq ($(SHARED),1)
160__DLLFLAG_p = -DWXUSINGDLL
161endif
162ifeq ($(SHARED),1)
163__DLLFLAG_p_1 = --define WXUSINGDLL
164endif
b17c1746
DE
165ifeq ($(MONOLITHIC),0)
166__WXLIB_ADV_p = \
c33fae85 167 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
a4ad36cd 168endif
b17c1746
DE
169ifeq ($(MONOLITHIC),0)
170__WXLIB_HTML_p = \
c33fae85 171 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
a4ad36cd 172endif
b17c1746 173ifeq ($(MONOLITHIC),0)
ebef1625
MW
174__WXLIB_XML_p = \
175 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
176endif
177ifeq ($(MONOLITHIC),0)
b17c1746 178__WXLIB_CORE_p = \
c33fae85 179 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
a4ad36cd 180endif
b17c1746 181ifeq ($(MONOLITHIC),0)
c33fae85
RN
182__WXLIB_BASE_p = \
183 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
2d611b5c 184endif
b17c1746
DE
185ifeq ($(MONOLITHIC),1)
186__WXLIB_MONO_p = \
c33fae85 187 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
2d611b5c
VS
188endif
189ifeq ($(USE_GUI),1)
9c2d002b 190__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
2d611b5c 191endif
b17c1746 192ifeq ($(USE_GUI),1)
9c2d002b 193__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
2d611b5c 194endif
b17c1746 195ifeq ($(USE_GUI),1)
9c2d002b 196__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
2d611b5c 197endif
19c35fa5
VS
198ifeq ($(MSLU),1)
199__UNICOWS_LIB_p = -lunicows
200endif
3abcf424
RD
201ifeq ($(USE_GDIPLUS),1)
202__GDIPLUS_LIB_p = -lgdiplus
203endif
b17c1746
DE
204ifeq ($(BUILD),debug)
205ifeq ($(DEBUG_INFO),default)
206__DEBUGINFO = -g
2d611b5c 207endif
ec08d395 208endif
b17c1746
DE
209ifeq ($(BUILD),release)
210ifeq ($(DEBUG_INFO),default)
211__DEBUGINFO =
2d611b5c 212endif
2d611b5c 213endif
b17c1746
DE
214ifeq ($(DEBUG_INFO),0)
215__DEBUGINFO =
216endif
217ifeq ($(DEBUG_INFO),1)
218__DEBUGINFO = -g
2d611b5c 219endif
8c9f8f91
JS
220ifeq ($(USE_THREADS),0)
221__THREADSFLAG =
222endif
223ifeq ($(USE_THREADS),1)
224__THREADSFLAG = -mthreads
225endif
2d611b5c 226
2d611b5c
VS
227
228all: $(OBJS)
229$(OBJS):
230 -if not exist $(OBJS) mkdir $(OBJS)
231
232### Targets: ###
233
34f7e40f 234all: $(OBJS)\studio.exe data
2d611b5c 235
b17c1746
DE
236clean:
237 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 238 -if exist $(OBJS)\*.d del $(OBJS)\*.d
b17c1746 239 -if exist $(OBJS)\studio.exe del $(OBJS)\studio.exe
2d611b5c 240
b17c1746 241$(OBJS)\studio.exe: $(STUDIO_OBJECTS) $(OBJS)\studio_studio_rc.o
3abcf424 242 $(CXX) -o $@ $(STUDIO_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated $(__WXLIB_ADV_p) $(__WXLIB_HTML_p) $(__WXLIB_XML_p) $(__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 243
b17c1746
DE
244data:
245 if not exist $(OBJS) mkdir $(OBJS)
246 for %%f in (studio_resources.wxr) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
247
248$(OBJS)\studio_studio.o: ./studio.cpp
0d90d6ea 249 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 250
1c3a6972 251$(OBJS)\studio_doc.o: ./doc.cpp
0d90d6ea 252 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 253
b17c1746 254$(OBJS)\studio_shapes.o: ./shapes.cpp
0d90d6ea 255 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 256
b17c1746 257$(OBJS)\studio_symbols.o: ./symbols.cpp
0d90d6ea 258 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 259
b17c1746 260$(OBJS)\studio_view.o: ./view.cpp
0d90d6ea 261 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 262
b17c1746 263$(OBJS)\studio_cspalette.o: ./cspalette.cpp
0d90d6ea 264 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 265
b17c1746 266$(OBJS)\studio_mainfrm.o: ./mainfrm.cpp
0d90d6ea 267 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 268
b17c1746 269$(OBJS)\studio_project.o: ./project.cpp
0d90d6ea 270 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 271
b17c1746 272$(OBJS)\studio_dialogs.o: ./dialogs.cpp
0d90d6ea 273 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 274
b17c1746 275$(OBJS)\studio_csprint.o: ./csprint.cpp
0d90d6ea 276 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
2d611b5c 277
b17c1746 278$(OBJS)\studio_studio_rc.o: ./studio.rc
3abcf424 279 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 --define NOPCH --include-dir ./../../../include
2d611b5c
VS
280
281.PHONY: all clean data
b14abf14 282
8c9f8f91 283
0d90d6ea
JS
284# Dependencies tracking:
285-include $(OBJS)/*.d