1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.3 (http://www.bakefile.org)
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 wxUSE_UNICODE=0
128 __UNICODE_DEFINE_p_1 = --define _UNICODE
131 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
133 ifeq ($(USE_GDIPLUS),1)
134 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
137 __DLLFLAG_p = -DWXUSINGDLL
140 __DLLFLAG_p_1 = --define WXUSINGDLL
143 __renddll___depname = \
144 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
146 ifeq ($(BUILD),debug)
149 ifeq ($(BUILD),release)
153 __RTTIFLAG = -fno-rtti
158 ifeq ($(USE_EXCEPTIONS),0)
159 __EXCEPTIONSFLAG = -fno-exceptions
161 ifeq ($(USE_EXCEPTIONS),1)
165 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
167 ifeq ($(BUILD),debug)
168 ifeq ($(DEBUG_FLAG),default)
169 __DEBUG_DEFINE_p = -D__WXDEBUG__
172 ifeq ($(DEBUG_FLAG),1)
173 __DEBUG_DEFINE_p = -D__WXDEBUG__
175 ifeq ($(USE_EXCEPTIONS),0)
176 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
179 __RTTI_DEFINE_p = -DwxNO_RTTI
181 ifeq ($(USE_THREADS),0)
182 __THREAD_DEFINE_p = -DwxNO_THREADS
185 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
188 __UNICODE_DEFINE_p = -D_UNICODE
191 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
193 ifeq ($(USE_GDIPLUS),1)
194 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
196 ifeq ($(MONOLITHIC),0)
198 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
200 ifeq ($(MONOLITHIC),0)
202 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
204 ifeq ($(MONOLITHIC),1)
206 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
209 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
212 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
215 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
218 __UNICOWS_LIB_p = -lunicows
220 ifeq ($(USE_GDIPLUS),1)
221 __GDIPLUS_LIB_p = -lgdiplus
223 ifeq ($(BUILD),debug)
224 ifeq ($(DEBUG_INFO),default)
228 ifeq ($(BUILD),release)
229 ifeq ($(DEBUG_INFO),default)
233 ifeq ($(DEBUG_INFO),0)
236 ifeq ($(DEBUG_INFO),1)
239 ifeq ($(USE_THREADS),0)
242 ifeq ($(USE_THREADS),1)
243 __THREADSFLAG = -mthreads
249 -if not exist $(OBJS) mkdir $(OBJS)
253 all: $(OBJS)\render.exe $(__renddll___depname)
256 -if exist $(OBJS)\*.o del $(OBJS)\*.o
257 -if exist $(OBJS)\*.d del $(OBJS)\*.d
258 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
259 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
261 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
262 $(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
265 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
266 $(CXX) $(LINK_MODULE_FLAGS) -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
269 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
270 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
272 $(OBJS)\render_render.o: ./render.cpp
273 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<
275 $(OBJS)\renddll_renddll.o: ./renddll.cpp
276 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<
283 # Dependencies tracking: