]>
Commit | Line | Data |
---|---|---|
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 | |
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 | |
08670ea8 | 17 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)4\r |
f82b7036 KO |
18 | COMPILER_PREFIX = gcc\r |
19 | OBJS = \\r | |
20 | $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r | |
21 | LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)\r | |
22 | SETUPHDIR = \\r | |
23 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r | |
24 | RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \\r | |
25 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \\r | |
00fb97de KO |
26 | $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r |
27 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r | |
b796194b VS |
28 | -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \\r |
29 | -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \\r | |
30 | $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)\r | |
f82b7036 KO |
31 | RENDER_OBJECTS = \\r |
32 | $(OBJS)\render_sample_rc.o \\r | |
33 | $(OBJS)\render_render.o\r | |
34 | RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \\r | |
35 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r | |
00fb97de KO |
36 | $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r |
37 | $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r | |
b796194b | 38 | $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r |
f82b7036 KO |
39 | $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -DWXUSINGDLL $(__RTTIFLAG) \\r |
40 | $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)\r | |
41 | RENDDLL_OBJECTS = \\r | |
42 | $(OBJS)\renddll_renddll.o\r | |
43 | \r | |
44 | ### Conditionally set variables: ###\r | |
45 | \r | |
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 | |
53 | PORTNAME = msw\r | |
54 | endif\r | |
55 | ifeq ($(BUILD),debug)\r | |
56 | WXDEBUGFLAG = d\r | |
57 | endif\r | |
58 | ifeq ($(UNICODE),1)\r | |
59 | WXUNICODEFLAG = u\r | |
60 | endif\r | |
61 | ifeq ($(WXUNIV),1)\r | |
62 | WXUNIVNAME = univ\r | |
63 | endif\r | |
64 | ifeq ($(SHARED),1)\r | |
65 | WXDLLFLAG = dll\r | |
66 | endif\r | |
67 | ifeq ($(SHARED),0)\r | |
68 | LIBTYPE_SUFFIX = lib\r | |
69 | endif\r | |
70 | ifeq ($(SHARED),1)\r | |
71 | LIBTYPE_SUFFIX = dll\r | |
72 | endif\r | |
73 | ifeq ($(MONOLITHIC),0)\r | |
74 | EXTRALIBS_FOR_BASE = \r | |
75 | endif\r | |
76 | ifeq ($(MONOLITHIC),1)\r | |
77 | EXTRALIBS_FOR_BASE = \r | |
78 | endif\r | |
79 | ifeq ($(WXUNIV),1)\r | |
80 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__\r | |
81 | endif\r | |
82 | ifeq ($(DEBUG_FLAG),0)\r | |
83 | __DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0\r | |
84 | endif\r | |
00fb97de KO |
85 | ifeq ($(BUILD),release)\r |
86 | __NDEBUG_DEFINE_p_1 = --define NDEBUG\r | |
87 | endif\r | |
f82b7036 KO |
88 | ifeq ($(USE_EXCEPTIONS),0)\r |
89 | __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS\r | |
90 | endif\r | |
91 | ifeq ($(USE_RTTI),0)\r | |
92 | __RTTI_DEFINE_p_1 = --define wxNO_RTTI\r | |
93 | endif\r | |
94 | ifeq ($(USE_THREADS),0)\r | |
95 | __THREAD_DEFINE_p_1 = --define wxNO_THREADS\r | |
96 | endif\r | |
97 | ifeq ($(UNICODE),0)\r | |
98 | __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0\r | |
99 | endif\r | |
100 | ifeq ($(UNICODE),1)\r | |
101 | __UNICODE_DEFINE_p_1 = --define _UNICODE\r | |
102 | endif\r | |
103 | ifeq ($(MSLU),1)\r | |
104 | __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1\r | |
105 | endif\r | |
f82b7036 KO |
106 | ifeq ($(USE_CAIRO),1)\r |
107 | __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo\r | |
108 | endif\r | |
109 | ifeq ($(SHARED),1)\r | |
110 | __DLLFLAG_p = -DWXUSINGDLL\r | |
111 | endif\r | |
112 | ifeq ($(SHARED),1)\r | |
113 | __DLLFLAG_p_1 = --define WXUSINGDLL\r | |
114 | endif\r | |
115 | ifeq ($(SHARED),1)\r | |
116 | __renddll___depname = \\r | |
117 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_gcc.dll\r | |
118 | endif\r | |
119 | ifeq ($(BUILD),debug)\r | |
120 | __OPTIMIZEFLAG = -O0\r | |
121 | endif\r | |
122 | ifeq ($(BUILD),release)\r | |
123 | __OPTIMIZEFLAG = -O2\r | |
124 | endif\r | |
125 | ifeq ($(USE_RTTI),0)\r | |
126 | __RTTIFLAG = -fno-rtti\r | |
127 | endif\r | |
128 | ifeq ($(USE_RTTI),1)\r | |
129 | __RTTIFLAG = \r | |
130 | endif\r | |
131 | ifeq ($(USE_EXCEPTIONS),0)\r | |
132 | __EXCEPTIONSFLAG = -fno-exceptions\r | |
133 | endif\r | |
134 | ifeq ($(USE_EXCEPTIONS),1)\r | |
135 | __EXCEPTIONSFLAG = \r | |
136 | endif\r | |
137 | ifeq ($(WXUNIV),1)\r | |
138 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r | |
139 | endif\r | |
140 | ifeq ($(DEBUG_FLAG),0)\r | |
141 | __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r | |
142 | endif\r | |
00fb97de KO |
143 | ifeq ($(BUILD),release)\r |
144 | __NDEBUG_DEFINE_p = -DNDEBUG\r | |
145 | endif\r | |
f82b7036 KO |
146 | ifeq ($(USE_EXCEPTIONS),0)\r |
147 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r | |
148 | endif\r | |
149 | ifeq ($(USE_RTTI),0)\r | |
150 | __RTTI_DEFINE_p = -DwxNO_RTTI\r | |
151 | endif\r | |
152 | ifeq ($(USE_THREADS),0)\r | |
153 | __THREAD_DEFINE_p = -DwxNO_THREADS\r | |
154 | endif\r | |
155 | ifeq ($(UNICODE),0)\r | |
156 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r | |
157 | endif\r | |
158 | ifeq ($(UNICODE),1)\r | |
159 | __UNICODE_DEFINE_p = -D_UNICODE\r | |
160 | endif\r | |
161 | ifeq ($(MSLU),1)\r | |
162 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r | |
163 | endif\r | |
f82b7036 KO |
164 | ifeq ($(USE_CAIRO),1)\r |
165 | ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo\r | |
166 | endif\r | |
167 | ifeq ($(MONOLITHIC),0)\r | |
168 | __WXLIB_CORE_p = \\r | |
169 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r | |
170 | endif\r | |
171 | ifeq ($(MONOLITHIC),0)\r | |
172 | __WXLIB_BASE_p = \\r | |
173 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r | |
174 | endif\r | |
175 | ifeq ($(MONOLITHIC),1)\r | |
176 | __WXLIB_MONO_p = \\r | |
177 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r | |
178 | endif\r | |
179 | ifeq ($(USE_GUI),1)\r | |
180 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r | |
181 | endif\r | |
182 | ifeq ($(USE_GUI),1)\r | |
183 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r | |
184 | endif\r | |
185 | ifeq ($(USE_GUI),1)\r | |
186 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r | |
187 | endif\r | |
188 | ifeq ($(MSLU),1)\r | |
189 | __UNICOWS_LIB_p = -lunicows\r | |
190 | endif\r | |
f82b7036 KO |
191 | ifeq ($(USE_CAIRO),1)\r |
192 | __CAIRO_LIB_p = -lcairo\r | |
193 | endif\r | |
194 | ifeq ($(USE_CAIRO),1)\r | |
195 | ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r | |
196 | endif\r | |
197 | ifeq ($(BUILD),debug)\r | |
198 | ifeq ($(DEBUG_INFO),default)\r | |
199 | __DEBUGINFO = -g\r | |
200 | endif\r | |
201 | endif\r | |
202 | ifeq ($(BUILD),release)\r | |
203 | ifeq ($(DEBUG_INFO),default)\r | |
204 | __DEBUGINFO = \r | |
205 | endif\r | |
206 | endif\r | |
207 | ifeq ($(DEBUG_INFO),0)\r | |
208 | __DEBUGINFO = \r | |
209 | endif\r | |
210 | ifeq ($(DEBUG_INFO),1)\r | |
211 | __DEBUGINFO = -g\r | |
212 | endif\r | |
213 | ifeq ($(USE_THREADS),0)\r | |
214 | __THREADSFLAG = \r | |
215 | endif\r | |
216 | ifeq ($(USE_THREADS),1)\r | |
217 | __THREADSFLAG = -mthreads\r | |
218 | endif\r | |
219 | \r | |
220 | \r | |
221 | all: $(OBJS)\r | |
222 | $(OBJS):\r | |
223 | -if not exist $(OBJS) mkdir $(OBJS)\r | |
224 | \r | |
225 | ### Targets: ###\r | |
226 | \r | |
227 | all: $(OBJS)\render.exe $(__renddll___depname)\r | |
228 | \r | |
229 | clean: \r | |
230 | -if exist $(OBJS)\*.o del $(OBJS)\*.o\r | |
231 | -if exist $(OBJS)\*.d del $(OBJS)\*.d\r | |
232 | -if exist $(OBJS)\render.exe del $(OBJS)\render.exe\r | |
233 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_gcc.dll\r | |
234 | \r | |
235 | $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o\r | |
b796194b | 236 | $(CXX) -o $@ $(RENDER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__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) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r |
f82b7036 KO |
237 | \r |
238 | ifeq ($(SHARED),1)\r | |
239 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)\r | |
b796194b | 240 | $(CXX) $(LINK_MODULE_FLAGS) -fPIC -o $@ $(RENDDLL_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__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) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r |
f82b7036 KO |
241 | endif\r |
242 | \r | |
243 | $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc\r | |
b796194b | 244 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__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\r |
f82b7036 KO |
245 | \r |
246 | $(OBJS)\render_render.o: ./render.cpp\r | |
247 | $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<\r | |
248 | \r | |
249 | $(OBJS)\renddll_renddll.o: ./renddll.cpp\r | |
250 | $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<\r | |
251 | \r | |
252 | .PHONY: all clean\r | |
253 | \r | |
254 | \r | |
255 | SHELL := $(COMSPEC)\r | |
256 | \r | |
257 | # Dependencies tracking:\r | |
258 | -include $(OBJS)/*.d\r |