1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.2 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
7 include ../../build/msw/config.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
15 CPPDEPS = -MT$@ -MF$@.d -MD
17 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)0
20 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
21 LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
24 RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
25 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
26 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
27 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
28 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
29 -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
32 $(OBJS)\render_sample_rc.o \
33 $(OBJS)\render_render.o
34 RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
35 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
36 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
37 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
38 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -DWXUSINGDLL \
39 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
42 $(OBJS)\renddll_renddll.o
44 ### Conditionally set variables: ###
46 ifeq ($(GCC_VERSION),2.95)
47 GCCFLAGS = -fvtable-thunks
56 ifeq ($(DEBUG_FLAG),default)
60 ifeq ($(DEBUG_FLAG),1)
78 ifeq ($(MONOLITHIC),0)
81 ifeq ($(MONOLITHIC),1)
94 ifeq ($(BUILD),release)
99 ifeq ($(BUILD),release)
105 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
107 ifeq ($(BUILD),debug)
108 ifeq ($(DEBUG_FLAG),default)
109 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
112 ifeq ($(DEBUG_FLAG),1)
113 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
115 ifeq ($(USE_EXCEPTIONS),0)
116 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
119 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
121 ifeq ($(USE_THREADS),0)
122 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
125 __UNICODE_DEFINE_p_1 = --define _UNICODE
128 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
130 ifeq ($(USE_GDIPLUS),1)
131 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
134 __DLLFLAG_p = -DWXUSINGDLL
137 __DLLFLAG_p_1 = --define WXUSINGDLL
140 __renddll___depname = \
141 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
143 ifeq ($(BUILD),debug)
146 ifeq ($(BUILD),release)
150 __RTTIFLAG = -fno-rtti
155 ifeq ($(USE_EXCEPTIONS),0)
156 __EXCEPTIONSFLAG = -fno-exceptions
158 ifeq ($(USE_EXCEPTIONS),1)
162 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
164 ifeq ($(BUILD),debug)
165 ifeq ($(DEBUG_FLAG),default)
166 __DEBUG_DEFINE_p = -D__WXDEBUG__
169 ifeq ($(DEBUG_FLAG),1)
170 __DEBUG_DEFINE_p = -D__WXDEBUG__
172 ifeq ($(USE_EXCEPTIONS),0)
173 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
176 __RTTI_DEFINE_p = -DwxNO_RTTI
178 ifeq ($(USE_THREADS),0)
179 __THREAD_DEFINE_p = -DwxNO_THREADS
182 __UNICODE_DEFINE_p = -D_UNICODE
185 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
187 ifeq ($(USE_GDIPLUS),1)
188 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
190 ifeq ($(MONOLITHIC),0)
192 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
194 ifeq ($(MONOLITHIC),0)
196 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
198 ifeq ($(MONOLITHIC),1)
200 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
203 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
206 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
209 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
212 __UNICOWS_LIB_p = -lunicows
214 ifeq ($(USE_GDIPLUS),1)
215 __GDIPLUS_LIB_p = -lgdiplus
217 ifeq ($(BUILD),debug)
218 ifeq ($(DEBUG_INFO),default)
222 ifeq ($(BUILD),release)
223 ifeq ($(DEBUG_INFO),default)
227 ifeq ($(DEBUG_INFO),0)
230 ifeq ($(DEBUG_INFO),1)
233 ifeq ($(USE_THREADS),0)
236 ifeq ($(USE_THREADS),1)
237 __THREADSFLAG = -mthreads
243 -if not exist $(OBJS) mkdir $(OBJS)
247 all: $(OBJS)\render.exe $(__renddll___depname)
250 -if exist $(OBJS)\*.o del $(OBJS)\*.o
251 -if exist $(OBJS)\*.d del $(OBJS)\*.d
252 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
253 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
255 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
256 $(CXX) -o $@ $(RENDER_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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
259 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
260 $(CXX) -shared -fPIC -o $@ $(RENDDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(__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
263 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
264 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
266 $(OBJS)\render_render.o: ./render.cpp
267 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<
269 $(OBJS)\renddll_renddll.o: ./renddll.cpp
270 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<
275 # Dependencies tracking: