]> git.saurik.com Git - wxWidgets.git/blame - samples/xrc/makefile.gcc
disabled wxStackWalker and wxCrashReport for Win64
[wxWidgets.git] / samples / xrc / makefile.gcc
CommitLineData
250700e4
RD
1# =========================================================================
2# This makefile was generated by
0d90d6ea 3# Bakefile 0.1.9 (http://bakefile.sourceforge.net)
250700e4
RD
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
c33fae85 7include ../../build/msw/config.gcc
250700e4
RD
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
0d90d6ea 15CPPDEPS = -MT$@ -MF$@.d -MD
4818141b 16WX_RELEASE_NODOT = 26
3f55f5b8
VS
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 19LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
75a0a7b7
VS
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
22XRCDEMO_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) \
25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
26 -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
27 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
3f55f5b8
VS
28XRCDEMO_OBJECTS = \
29 $(OBJS)\xrcdemo_xrcdemo.o \
30 $(OBJS)\xrcdemo_myframe.o \
31 $(OBJS)\xrcdemo_derivdlg.o \
32 $(OBJS)\xrcdemo_custclas.o \
33 $(OBJS)\xrcdemo_xrcdemo_rc.o
250700e4
RD
34
35### Conditionally set variables: ###
36
37ifeq ($(GCC_VERSION),2.95)
38GCCFLAGS = -fvtable-thunks
39endif
40ifeq ($(USE_GUI),0)
41PORTNAME = base
42endif
43ifeq ($(USE_GUI),1)
44PORTNAME = msw
45endif
46ifeq ($(BUILD),debug)
3f55f5b8
VS
47ifeq ($(DEBUG_FLAG),default)
48WXDEBUGFLAG = d
49endif
50endif
51ifeq ($(DEBUG_FLAG),1)
250700e4
RD
52WXDEBUGFLAG = d
53endif
250700e4
RD
54ifeq ($(UNICODE),1)
55WXUNICODEFLAG = u
56endif
57ifeq ($(WXUNIV),1)
58WXUNIVNAME = univ
59endif
b17c1746
DE
60ifeq ($(SHARED),1)
61WXDLLFLAG = dll
3f55f5b8 62endif
b14abf14
JS
63ifeq ($(SHARED),0)
64LIBTYPE_SUFFIX = lib
65endif
66ifeq ($(SHARED),1)
67LIBTYPE_SUFFIX = dll
68endif
dd65d8c8
RN
69ifeq ($(MONOLITHIC),0)
70EXTRALIBS_FOR_BASE =
71endif
72ifeq ($(MONOLITHIC),1)
73EXTRALIBS_FOR_BASE =
74endif
b17c1746
DE
75ifeq ($(BUILD),debug)
76__OPTIMIZEFLAG_2 = -O0
250700e4
RD
77endif
78ifeq ($(BUILD),release)
b17c1746 79__OPTIMIZEFLAG_2 = -O2
3f55f5b8 80endif
8c9f8f91
JS
81ifeq ($(USE_RTTI),0)
82__RTTIFLAG_5 = -fno-rtti
3f55f5b8 83endif
8c9f8f91
JS
84ifeq ($(USE_RTTI),1)
85__RTTIFLAG_5 =
3f55f5b8 86endif
b17c1746 87ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 88__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
89endif
90ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 91__EXCEPTIONSFLAG_6 =
b17c1746
DE
92endif
93ifeq ($(WXUNIV),1)
94__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
95endif
96ifeq ($(WXUNIV),1)
97__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
250700e4
RD
98endif
99ifeq ($(BUILD),debug)
3f55f5b8
VS
100ifeq ($(DEBUG_FLAG),default)
101__DEBUG_DEFINE_p = -D__WXDEBUG__
102endif
103endif
104ifeq ($(DEBUG_FLAG),1)
250700e4
RD
105__DEBUG_DEFINE_p = -D__WXDEBUG__
106endif
107ifeq ($(BUILD),debug)
3f55f5b8
VS
108ifeq ($(DEBUG_FLAG),default)
109__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
110endif
111endif
112ifeq ($(DEBUG_FLAG),1)
250700e4
RD
113__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
114endif
8c9f8f91
JS
115ifeq ($(USE_EXCEPTIONS),0)
116__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
117endif
118ifeq ($(USE_EXCEPTIONS),0)
119__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
120endif
121ifeq ($(USE_RTTI),0)
122__RTTI_DEFINE_p = -DwxNO_RTTI
123endif
124ifeq ($(USE_RTTI),0)
125__RTTI_DEFINE_p_1 = --define wxNO_RTTI
126endif
127ifeq ($(USE_THREADS),0)
128__THREAD_DEFINE_p = -DwxNO_THREADS
129endif
130ifeq ($(USE_THREADS),0)
131__THREAD_DEFINE_p_1 = --define wxNO_THREADS
132endif
b17c1746
DE
133ifeq ($(UNICODE),1)
134__UNICODE_DEFINE_p = -D_UNICODE
135endif
136ifeq ($(UNICODE),1)
137__UNICODE_DEFINE_p_1 = --define _UNICODE
138endif
250700e4
RD
139ifeq ($(SHARED),1)
140__DLLFLAG_p = -DWXUSINGDLL
141endif
142ifeq ($(SHARED),1)
143__DLLFLAG_p_1 = --define WXUSINGDLL
144endif
b17c1746 145ifeq ($(MONOLITHIC),0)
c33fae85
RN
146__WXLIB_XRC_p = \
147 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xrc
148endif
149ifeq ($(MONOLITHIC),0)
b17c1746 150__WXLIB_HTML_p = \
c33fae85 151 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
a4ad36cd 152endif
b17c1746
DE
153ifeq ($(MONOLITHIC),0)
154__WXLIB_ADV_p = \
c33fae85 155 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
a4ad36cd 156endif
b17c1746
DE
157ifeq ($(MONOLITHIC),0)
158__WXLIB_CORE_p = \
c33fae85 159 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
a4ad36cd 160endif
b17c1746 161ifeq ($(MONOLITHIC),0)
c33fae85
RN
162__WXLIB_XML_p = \
163 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
a4ad36cd 164endif
b17c1746 165ifeq ($(MONOLITHIC),0)
c33fae85
RN
166__WXLIB_BASE_p = \
167 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
3f55f5b8 168endif
b17c1746
DE
169ifeq ($(MONOLITHIC),1)
170__WXLIB_MONO_p = \
c33fae85 171 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
3f55f5b8
VS
172endif
173ifeq ($(USE_GUI),1)
9c2d002b 174__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
3f55f5b8 175endif
b17c1746 176ifeq ($(USE_GUI),1)
9c2d002b 177__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
250700e4 178endif
b17c1746 179ifeq ($(USE_GUI),1)
9c2d002b 180__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
250700e4 181endif
2265a2d5
VS
182ifeq ($(MSLU),1)
183__UNICOWS_LIB_p = -lunicows
184endif
b17c1746
DE
185ifeq ($(BUILD),debug)
186ifeq ($(DEBUG_INFO),default)
187__DEBUGINFO = -g
250700e4 188endif
250700e4 189endif
b17c1746
DE
190ifeq ($(BUILD),release)
191ifeq ($(DEBUG_INFO),default)
192__DEBUGINFO =
3f55f5b8 193endif
250700e4 194endif
b17c1746
DE
195ifeq ($(DEBUG_INFO),0)
196__DEBUGINFO =
250700e4 197endif
b17c1746
DE
198ifeq ($(DEBUG_INFO),1)
199__DEBUGINFO = -g
250700e4 200endif
8c9f8f91
JS
201ifeq ($(USE_THREADS),0)
202__THREADSFLAG =
203endif
204ifeq ($(USE_THREADS),1)
205__THREADSFLAG = -mthreads
206endif
250700e4
RD
207
208
209all: $(OBJS)
210$(OBJS):
211 -if not exist $(OBJS) mkdir $(OBJS)
212
213### Targets: ###
214
215all: $(OBJS)\xrcdemo.exe data
216
b17c1746
DE
217clean:
218 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 219 -if exist $(OBJS)\*.d del $(OBJS)\*.d
b17c1746 220 -if exist $(OBJS)\xrcdemo.exe del $(OBJS)\xrcdemo.exe
250700e4 221
b17c1746 222$(OBJS)\xrcdemo.exe: $(XRCDEMO_OBJECTS) $(OBJS)\xrcdemo_xrcdemo_rc.o
8c9f8f91 223 $(CXX) -o $@ $(XRCDEMO_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_XRC_p) $(__WXLIB_HTML_p) $(__WXLIB_ADV_p) $(__WXLIB_CORE_p) $(__WXLIB_XML_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
DE
224
225data:
226 if not exist $(OBJS)\rc mkdir $(OBJS)\rc
93ccce60 227 for %%f in (appicon.ico appicon.xpm artprov.xpm artprov.xrc basicdlg.xpm basicdlg.xrc controls.xpm controls.xrc custclas.xpm custclas.xrc derivdlg.xpm derivdlg.xrc fileopen.gif filesave.gif frame.xrc fuzzy.gif menu.xrc platform.xpm platform.xrc quotes.gif resource.xrc toolbar.xrc uncenter.xpm uncenter.xrc update.gif variable.xpm variable.xrc) do if not exist $(OBJS)\rc\%%f copy .\rc\%%f $(OBJS)\rc
b17c1746
DE
228
229$(OBJS)\xrcdemo_xrcdemo.o: ./xrcdemo.cpp
0d90d6ea 230 $(CXX) -c -o $@ $(XRCDEMO_CXXFLAGS) $(CPPDEPS) $<
250700e4 231
ec08d395 232$(OBJS)\xrcdemo_myframe.o: ./myframe.cpp
0d90d6ea 233 $(CXX) -c -o $@ $(XRCDEMO_CXXFLAGS) $(CPPDEPS) $<
250700e4 234
b17c1746 235$(OBJS)\xrcdemo_derivdlg.o: ./derivdlg.cpp
0d90d6ea 236 $(CXX) -c -o $@ $(XRCDEMO_CXXFLAGS) $(CPPDEPS) $<
b17c1746
DE
237
238$(OBJS)\xrcdemo_custclas.o: ./custclas.cpp
0d90d6ea 239 $(CXX) -c -o $@ $(XRCDEMO_CXXFLAGS) $(CPPDEPS) $<
250700e4 240
ec08d395 241$(OBJS)\xrcdemo_xrcdemo_rc.o: ./xrcdemo.rc
8c9f8f91 242 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 --define NOPCH
250700e4 243
fd9f42b6 244.PHONY: all clean data
b14abf14 245
8c9f8f91 246
0d90d6ea
JS
247# Dependencies tracking:
248-include $(OBJS)/*.d