]> git.saurik.com Git - wxWidgets.git/blame - samples/console/makefile.gcc
Fix wrong configure test for abi::__forced_unwind in previous commit.
[wxWidgets.git] / samples / console / makefile.gcc
CommitLineData
f82b7036
KO
1# =========================================================================\r
2# This makefile was generated by\r
00eef16d 3# Bakefile 0.2.9 (http://www.bakefile.org)\r
f82b7036
KO
4# Do not modify, all changes will be overwritten!\r
5# =========================================================================\r
6\r
7include ../../build/msw/config.gcc\r
8\r
9# -------------------------------------------------------------------------\r
10# Do not modify the rest of this file!\r
11# -------------------------------------------------------------------------\r
12\r
13### Variables: ###\r
14\r
15CPPDEPS = -MT$@ -MF$@.d -MD -MP\r
16WX_RELEASE_NODOT = 29\r
17COMPILER_PREFIX = gcc\r
18OBJS = \\r
14b682f7
VZ
19 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = \
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
f82b7036
KO
22SETUPHDIR = \\r
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
24CONSOLE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \\r
25 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
00fb97de
KO
26 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
27 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
b796194b 28 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
f82b7036
KO
29 $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \\r
30 $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) \\r
31 $(CXXFLAGS)\r
32CONSOLE_OBJECTS = \\r
33 $(OBJS)\console_console.o\r
34\r
35### Conditionally set variables: ###\r
36\r
37ifeq ($(GCC_VERSION),2.95)\r
38GCCFLAGS = -fvtable-thunks\r
39endif\r
40ifeq ($(USE_GUI),0)\r
41PORTNAME = base\r
42endif\r
43ifeq ($(USE_GUI),1)\r
44PORTNAME = msw\r
45endif\r
14b682f7
VZ
46ifeq ($(OFFICIAL_BUILD),1)
47COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
48endif
f82b7036
KO
49ifeq ($(BUILD),debug)\r
50WXDEBUGFLAG = d\r
51endif\r
52ifeq ($(UNICODE),1)\r
53WXUNICODEFLAG = u\r
54endif\r
55ifeq ($(WXUNIV),1)\r
56WXUNIVNAME = univ\r
57endif\r
58ifeq ($(SHARED),1)\r
59WXDLLFLAG = dll\r
60endif\r
61ifeq ($(SHARED),0)\r
62LIBTYPE_SUFFIX = lib\r
63endif\r
64ifeq ($(SHARED),1)\r
65LIBTYPE_SUFFIX = dll\r
66endif\r
67ifeq ($(MONOLITHIC),0)\r
68EXTRALIBS_FOR_BASE = \r
69endif\r
70ifeq ($(MONOLITHIC),1)\r
51ec29ea 71EXTRALIBS_FOR_BASE = \r
f82b7036
KO
72endif\r
73ifeq ($(BUILD),debug)\r
74__OPTIMIZEFLAG_2 = -O0\r
75endif\r
76ifeq ($(BUILD),release)\r
77__OPTIMIZEFLAG_2 = -O2\r
78endif\r
79ifeq ($(USE_RTTI),0)\r
80__RTTIFLAG_5 = -fno-rtti\r
81endif\r
82ifeq ($(USE_RTTI),1)\r
83__RTTIFLAG_5 = \r
84endif\r
85ifeq ($(USE_EXCEPTIONS),0)\r
86__EXCEPTIONSFLAG_6 = -fno-exceptions\r
87endif\r
88ifeq ($(USE_EXCEPTIONS),1)\r
89__EXCEPTIONSFLAG_6 = \r
90endif\r
91ifeq ($(WXUNIV),1)\r
92__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
93endif\r
94ifeq ($(DEBUG_FLAG),0)\r
95__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
96endif\r
00fb97de
KO
97ifeq ($(BUILD),release)\r
98__NDEBUG_DEFINE_p = -DNDEBUG\r
99endif\r
f82b7036
KO
100ifeq ($(USE_EXCEPTIONS),0)\r
101__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
102endif\r
103ifeq ($(USE_RTTI),0)\r
104__RTTI_DEFINE_p = -DwxNO_RTTI\r
105endif\r
106ifeq ($(USE_THREADS),0)\r
107__THREAD_DEFINE_p = -DwxNO_THREADS\r
108endif\r
109ifeq ($(UNICODE),0)\r
110__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
111endif\r
112ifeq ($(UNICODE),1)\r
113__UNICODE_DEFINE_p = -D_UNICODE\r
114endif\r
115ifeq ($(MSLU),1)\r
116__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
117endif\r
f82b7036
KO
118ifeq ($(USE_CAIRO),1)\r
119____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo\r
120endif\r
121ifeq ($(SHARED),1)\r
122__DLLFLAG_p = -DWXUSINGDLL\r
123endif\r
124ifeq ($(MONOLITHIC),0)\r
125__WXLIB_NET_p = \\r
126 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net\r
127endif\r
128ifeq ($(MONOLITHIC),0)\r
129__WXLIB_BASE_p = \\r
130 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
131endif\r
132ifeq ($(MONOLITHIC),1)\r
133__WXLIB_MONO_p = \\r
134 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
135endif\r
57c74474
VZ
136ifeq ($(MONOLITHIC),1)\r
137__LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)\r
138endif\r
139ifeq ($(USE_GUI),1)\r
140__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
141endif\r
f82b7036
KO
142ifeq ($(MSLU),1)\r
143__UNICOWS_LIB_p = -lunicows\r
144endif\r
f82b7036
KO
145ifeq ($(USE_CAIRO),1)\r
146__CAIRO_LIB_p = -lcairo\r
147endif\r
148ifeq ($(USE_CAIRO),1)\r
149____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r
150endif\r
151ifeq ($(BUILD),debug)\r
152ifeq ($(DEBUG_INFO),default)\r
153__DEBUGINFO = -g\r
154endif\r
155endif\r
156ifeq ($(BUILD),release)\r
157ifeq ($(DEBUG_INFO),default)\r
158__DEBUGINFO = \r
159endif\r
160endif\r
161ifeq ($(DEBUG_INFO),0)\r
162__DEBUGINFO = \r
163endif\r
164ifeq ($(DEBUG_INFO),1)\r
165__DEBUGINFO = -g\r
166endif\r
167ifeq ($(USE_THREADS),0)\r
168__THREADSFLAG = \r
169endif\r
170ifeq ($(USE_THREADS),1)\r
171__THREADSFLAG = -mthreads\r
172endif\r
173\r
174\r
175all: $(OBJS)\r
176$(OBJS):\r
177 -if not exist $(OBJS) mkdir $(OBJS)\r
178\r
179### Targets: ###\r
180\r
a05e050b 181all: $(OBJS)\console.exe\r
f82b7036
KO
182\r
183clean: \r
184 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
185 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
186 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe\r
187\r
188$(OBJS)\console.exe: $(CONSOLE_OBJECTS)\r
57c74474 189 $(CXX) -o $@ $(CONSOLE_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r
f82b7036 190\r
f82b7036
KO
191$(OBJS)\console_console.o: ./console.cpp\r
192 $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $(CPPDEPS) $<\r
193\r
a05e050b 194.PHONY: all clean\r
f82b7036
KO
195\r
196\r
197SHELL := $(COMSPEC)\r
198\r
199# Dependencies tracking:\r
200-include $(OBJS)/*.d\r