1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.0 (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)2
19 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
24 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
25 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
26 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
27 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
28 -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
31 $(OBJS)\render_sample_rc.o \
32 $(OBJS)\render_render.o
33 RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
34 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
35 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
36 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
37 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -DWXUSINGDLL \
38 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
41 $(OBJS)\renddll_renddll.o
43 ### Conditionally set variables: ###
45 ifeq ($(GCC_VERSION),2.95)
46 GCCFLAGS = -fvtable-thunks
55 ifeq ($(DEBUG_FLAG),default)
59 ifeq ($(DEBUG_FLAG),1)
77 ifeq ($(MONOLITHIC),0)
80 ifeq ($(MONOLITHIC),1)
93 ifeq ($(BUILD),release)
98 ifeq ($(BUILD),release)
104 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
106 ifeq ($(BUILD),debug)
107 ifeq ($(DEBUG_FLAG),default)
108 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
111 ifeq ($(DEBUG_FLAG),1)
112 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
114 ifeq ($(USE_EXCEPTIONS),0)
115 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
118 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
120 ifeq ($(USE_THREADS),0)
121 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
124 __UNICODE_DEFINE_p_1 = --define _UNICODE
127 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
129 ifeq ($(USE_GDIPLUS),1)
130 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
133 __DLLFLAG_p = -DWXUSINGDLL
136 __DLLFLAG_p_1 = --define WXUSINGDLL
139 __renddll___depname = \
140 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
142 ifeq ($(BUILD),debug)
145 ifeq ($(BUILD),release)
149 __RTTIFLAG = -fno-rtti
154 ifeq ($(USE_EXCEPTIONS),0)
155 __EXCEPTIONSFLAG = -fno-exceptions
157 ifeq ($(USE_EXCEPTIONS),1)
161 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
163 ifeq ($(BUILD),debug)
164 ifeq ($(DEBUG_FLAG),default)
165 __DEBUG_DEFINE_p = -D__WXDEBUG__
168 ifeq ($(DEBUG_FLAG),1)
169 __DEBUG_DEFINE_p = -D__WXDEBUG__
171 ifeq ($(USE_EXCEPTIONS),0)
172 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
175 __RTTI_DEFINE_p = -DwxNO_RTTI
177 ifeq ($(USE_THREADS),0)
178 __THREAD_DEFINE_p = -DwxNO_THREADS
181 __UNICODE_DEFINE_p = -D_UNICODE
184 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
186 ifeq ($(USE_GDIPLUS),1)
187 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
189 ifeq ($(MONOLITHIC),0)
191 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
193 ifeq ($(MONOLITHIC),0)
195 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
197 ifeq ($(MONOLITHIC),1)
199 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
202 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
205 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
208 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
211 __UNICOWS_LIB_p = -lunicows
213 ifeq ($(USE_GDIPLUS),1)
214 __GDIPLUS_LIB_p = -lgdiplus
216 ifeq ($(BUILD),debug)
217 ifeq ($(DEBUG_INFO),default)
221 ifeq ($(BUILD),release)
222 ifeq ($(DEBUG_INFO),default)
226 ifeq ($(DEBUG_INFO),0)
229 ifeq ($(DEBUG_INFO),1)
232 ifeq ($(USE_THREADS),0)
235 ifeq ($(USE_THREADS),1)
236 __THREADSFLAG = -mthreads
242 -if not exist $(OBJS) mkdir $(OBJS)
246 all: $(OBJS)\render.exe $(__renddll___depname)
249 -if exist $(OBJS)\*.o del $(OBJS)\*.o
250 -if exist $(OBJS)\*.d del $(OBJS)\*.d
251 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
252 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
254 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
255 $(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
258 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
259 $(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
262 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
263 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
265 $(OBJS)\render_render.o: ./render.cpp
266 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<
268 $(OBJS)\renddll_renddll.o: ./renddll.cpp
269 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<
274 # Dependencies tracking: