]>
Commit | Line | Data |
---|---|---|
00eef16d VZ |
1 | # =========================================================================\r |
2 | # This makefile was generated by\r | |
3 | # Bakefile 0.2.9 (http://www.bakefile.org)\r | |
4 | # Do not modify, all changes will be overwritten!\r | |
5 | # =========================================================================\r | |
6 | \r | |
7 | include ../../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 | |
15 | CPPDEPS = -MT$@ -MF$@.d -MD -MP\r | |
16 | WX_RELEASE_NODOT = 29\r | |
17 | COMPILER_PREFIX = gcc\r | |
18 | OBJS = \\r | |
14b682f7 VZ |
19 | $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) |
20 | LIBDIRNAME = \ | |
21 | .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG) | |
00eef16d VZ |
22 | SETUPHDIR = \\r |
23 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r | |
24 | XTI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) $(GCCFLAGS) \\r | |
22a3b6e4 | 25 | -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
00eef16d VZ |
26 | $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r |
27 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r | |
28 | -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W \\r | |
29 | -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \\r | |
22a3b6e4 VZ |
30 | $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) \ |
31 | $(CPPFLAGS) $(CXXFLAGS) | |
00eef16d VZ |
32 | XTI_OBJECTS = \\r |
33 | $(OBJS)\xti_sample_rc.o \\r | |
34 | $(OBJS)\xti_xti.o \\r | |
35 | $(OBJS)\xti_classlist.o \\r | |
36 | $(OBJS)\xti_codereadercallback.o\r | |
37 | \r | |
38 | ### Conditionally set variables: ###\r | |
39 | \r | |
22a3b6e4 VZ |
40 | ifeq ($(TOOLKIT),GTK) |
41 | WIN32_TOOLKIT_LOWERCASE = gtk | |
42 | endif | |
43 | ifeq ($(TOOLKIT),MSW) | |
44 | WIN32_TOOLKIT_LOWERCASE = msw | |
45 | endif | |
00eef16d VZ |
46 | ifeq ($(GCC_VERSION),2.95)\r |
47 | GCCFLAGS = -fvtable-thunks\r | |
48 | endif\r | |
49 | ifeq ($(USE_GUI),0)\r | |
50 | PORTNAME = base\r | |
51 | endif\r | |
52 | ifeq ($(USE_GUI),1)\r | |
22a3b6e4 VZ |
53 | PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION) |
54 | endif | |
55 | ifeq ($(TOOLKIT),MAC) | |
56 | WXBASEPORT = _carbon | |
57 | endif | |
14b682f7 VZ |
58 | ifeq ($(OFFICIAL_BUILD),1) |
59 | COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD | |
22a3b6e4 | 60 | endif\r |
00eef16d VZ |
61 | ifeq ($(BUILD),debug)\r |
62 | WXDEBUGFLAG = d\r | |
63 | endif\r | |
64 | ifeq ($(UNICODE),1)\r | |
65 | WXUNICODEFLAG = u\r | |
66 | endif\r | |
67 | ifeq ($(WXUNIV),1)\r | |
68 | WXUNIVNAME = univ\r | |
69 | endif\r | |
70 | ifeq ($(SHARED),1)\r | |
71 | WXDLLFLAG = dll\r | |
72 | endif\r | |
73 | ifeq ($(SHARED),0)\r | |
74 | LIBTYPE_SUFFIX = lib\r | |
75 | endif\r | |
76 | ifeq ($(SHARED),1)\r | |
77 | LIBTYPE_SUFFIX = dll\r | |
78 | endif\r | |
79 | ifeq ($(MONOLITHIC),0)\r | |
80 | EXTRALIBS_FOR_BASE = \r | |
81 | endif\r | |
82 | ifeq ($(MONOLITHIC),1)\r | |
51ec29ea | 83 | EXTRALIBS_FOR_BASE = \r |
00eef16d | 84 | endif\r |
22a3b6e4 VZ |
85 | ifeq ($(TOOLKIT),GTK) |
86 | CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields | |
87 | endif | |
88 | ifeq ($(TOOLKIT),GTK) | |
89 | ifeq ($(TOOLKIT_VERSION),2) | |
90 | LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \ | |
91 | gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \ | |
92 | glib-2.0.lib | |
93 | endif | |
94 | endif | |
00eef16d VZ |
95 | ifeq ($(BUILD),debug)\r |
96 | __OPTIMIZEFLAG_2 = -O0\r | |
97 | endif\r | |
98 | ifeq ($(BUILD),release)\r | |
99 | __OPTIMIZEFLAG_2 = -O2\r | |
100 | endif\r | |
101 | ifeq ($(USE_RTTI),0)\r | |
102 | __RTTIFLAG_5 = -fno-rtti\r | |
103 | endif\r | |
104 | ifeq ($(USE_RTTI),1)\r | |
105 | __RTTIFLAG_5 = \r | |
106 | endif\r | |
107 | ifeq ($(USE_EXCEPTIONS),0)\r | |
108 | __EXCEPTIONSFLAG_6 = -fno-exceptions\r | |
109 | endif\r | |
110 | ifeq ($(USE_EXCEPTIONS),1)\r | |
111 | __EXCEPTIONSFLAG_6 = \r | |
112 | endif\r | |
113 | ifeq ($(WXUNIV),1)\r | |
114 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r | |
115 | endif\r | |
116 | ifeq ($(WXUNIV),1)\r | |
117 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__\r | |
118 | endif\r | |
119 | ifeq ($(DEBUG_FLAG),0)\r | |
120 | __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r | |
121 | endif\r | |
122 | ifeq ($(DEBUG_FLAG),0)\r | |
123 | __DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0\r | |
124 | endif\r | |
125 | ifeq ($(BUILD),release)\r | |
126 | __NDEBUG_DEFINE_p = -DNDEBUG\r | |
127 | endif\r | |
128 | ifeq ($(BUILD),release)\r | |
129 | __NDEBUG_DEFINE_p_1 = --define NDEBUG\r | |
130 | endif\r | |
131 | ifeq ($(USE_EXCEPTIONS),0)\r | |
132 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r | |
133 | endif\r | |
134 | ifeq ($(USE_EXCEPTIONS),0)\r | |
135 | __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS\r | |
136 | endif\r | |
137 | ifeq ($(USE_RTTI),0)\r | |
138 | __RTTI_DEFINE_p = -DwxNO_RTTI\r | |
139 | endif\r | |
140 | ifeq ($(USE_RTTI),0)\r | |
141 | __RTTI_DEFINE_p_1 = --define wxNO_RTTI\r | |
142 | endif\r | |
143 | ifeq ($(USE_THREADS),0)\r | |
144 | __THREAD_DEFINE_p = -DwxNO_THREADS\r | |
145 | endif\r | |
146 | ifeq ($(USE_THREADS),0)\r | |
147 | __THREAD_DEFINE_p_1 = --define wxNO_THREADS\r | |
148 | endif\r | |
149 | ifeq ($(UNICODE),0)\r | |
150 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r | |
151 | endif\r | |
152 | ifeq ($(UNICODE),1)\r | |
153 | __UNICODE_DEFINE_p = -D_UNICODE\r | |
154 | endif\r | |
155 | ifeq ($(UNICODE),0)\r | |
156 | __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0\r | |
157 | endif\r | |
158 | ifeq ($(UNICODE),1)\r | |
159 | __UNICODE_DEFINE_p_1 = --define _UNICODE\r | |
160 | endif\r | |
161 | ifeq ($(MSLU),1)\r | |
162 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r | |
163 | endif\r | |
164 | ifeq ($(MSLU),1)\r | |
165 | __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1\r | |
166 | endif\r | |
167 | ifeq ($(USE_CAIRO),1)\r | |
168 | ____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo\r | |
169 | endif\r | |
170 | ifeq ($(USE_CAIRO),1)\r | |
171 | __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo\r | |
172 | endif\r | |
173 | ifeq ($(SHARED),1)\r | |
174 | __DLLFLAG_p = -DWXUSINGDLL\r | |
175 | endif\r | |
176 | ifeq ($(SHARED),1)\r | |
177 | __DLLFLAG_p_1 = --define WXUSINGDLL\r | |
178 | endif\r | |
179 | ifeq ($(MONOLITHIC),0)\r | |
180 | __WXLIB_CORE_p = \\r | |
181 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r | |
182 | endif\r | |
183 | ifeq ($(MONOLITHIC),0)\r | |
184 | __WXLIB_XML_p = \\r | |
22a3b6e4 | 185 | -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml |
00eef16d VZ |
186 | endif\r |
187 | ifeq ($(MONOLITHIC),0)\r | |
188 | __WXLIB_BASE_p = \\r | |
22a3b6e4 | 189 | -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
00eef16d VZ |
190 | endif\r |
191 | ifeq ($(MONOLITHIC),1)\r | |
192 | __WXLIB_MONO_p = \\r | |
193 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r | |
194 | endif\r | |
195 | ifeq ($(USE_GUI),1)\r | |
196 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r | |
197 | endif\r | |
198 | ifeq ($(USE_GUI),1)\r | |
199 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r | |
200 | endif\r | |
201 | ifeq ($(USE_GUI),1)\r | |
202 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r | |
203 | endif\r | |
204 | ifeq ($(MSLU),1)\r | |
205 | __UNICOWS_LIB_p = -lunicows\r | |
206 | endif\r | |
207 | ifeq ($(USE_CAIRO),1)\r | |
208 | __CAIRO_LIB_p = -lcairo\r | |
209 | endif\r | |
210 | ifeq ($(USE_CAIRO),1)\r | |
211 | ____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r | |
212 | endif\r | |
213 | ifeq ($(BUILD),debug)\r | |
214 | ifeq ($(DEBUG_INFO),default)\r | |
215 | __DEBUGINFO = -g\r | |
216 | endif\r | |
217 | endif\r | |
218 | ifeq ($(BUILD),release)\r | |
219 | ifeq ($(DEBUG_INFO),default)\r | |
220 | __DEBUGINFO = \r | |
221 | endif\r | |
222 | endif\r | |
223 | ifeq ($(DEBUG_INFO),0)\r | |
224 | __DEBUGINFO = \r | |
225 | endif\r | |
226 | ifeq ($(DEBUG_INFO),1)\r | |
227 | __DEBUGINFO = -g\r | |
228 | endif\r | |
229 | ifeq ($(USE_THREADS),0)\r | |
230 | __THREADSFLAG = \r | |
231 | endif\r | |
232 | ifeq ($(USE_THREADS),1)\r | |
233 | __THREADSFLAG = -mthreads\r | |
234 | endif\r | |
235 | \r | |
236 | \r | |
237 | all: $(OBJS)\r | |
238 | $(OBJS):\r | |
239 | -if not exist $(OBJS) mkdir $(OBJS)\r | |
240 | \r | |
241 | ### Targets: ###\r | |
242 | \r | |
243 | all: $(OBJS)\xti.exe\r | |
244 | \r | |
245 | clean: \r | |
246 | -if exist $(OBJS)\*.o del $(OBJS)\*.o\r | |
247 | -if exist $(OBJS)\*.d del $(OBJS)\*.d\r | |
248 | -if exist $(OBJS)\xti.exe del $(OBJS)\xti.exe\r | |
249 | \r | |
250 | $(OBJS)\xti.exe: $(XTI_OBJECTS) $(OBJS)\xti_sample_rc.o\r | |
22a3b6e4 | 251 | $(CXX) -o $@ $(XTI_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_XML_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(LIB_GTK) -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 |
00eef16d VZ |
252 | \r |
253 | $(OBJS)\xti_sample_rc.o: ./../../samples/sample.rc\r | |
22a3b6e4 | 254 | windres --use-temp-file -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__NDEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH |
00eef16d VZ |
255 | \r |
256 | $(OBJS)\xti_xti.o: ./xti.cpp\r | |
257 | $(CXX) -c -o $@ $(XTI_CXXFLAGS) $(CPPDEPS) $<\r | |
258 | \r | |
259 | $(OBJS)\xti_classlist.o: ./classlist.cpp\r | |
260 | $(CXX) -c -o $@ $(XTI_CXXFLAGS) $(CPPDEPS) $<\r | |
261 | \r | |
262 | $(OBJS)\xti_codereadercallback.o: ./codereadercallback.cpp\r | |
263 | $(CXX) -c -o $@ $(XTI_CXXFLAGS) $(CPPDEPS) $<\r | |
264 | \r | |
265 | .PHONY: all clean\r | |
266 | \r | |
267 | \r | |
268 | SHELL := $(COMSPEC)\r | |
269 | \r | |
270 | # Dependencies tracking:\r | |
271 | -include $(OBJS)/*.d\r |