1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.1 (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
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22 RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
23 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
24 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
25 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
26 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
27 -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
30 $(OBJS)\render_sample_rc.o \
31 $(OBJS)\render_render.o
32 RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
33 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
34 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
35 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
36 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -DWXUSINGDLL \
37 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
40 $(OBJS)\renddll_renddll.o
42 ### Conditionally set variables: ###
44 ifeq ($(GCC_VERSION),2.95)
45 GCCFLAGS = -fvtable-thunks
54 ifeq ($(DEBUG_FLAG),default)
58 ifeq ($(DEBUG_FLAG),1)
76 ifeq ($(MONOLITHIC),0)
79 ifeq ($(MONOLITHIC),1)
92 ifeq ($(BUILD),release)
97 ifeq ($(BUILD),release)
103 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
105 ifeq ($(BUILD),debug)
106 ifeq ($(DEBUG_FLAG),default)
107 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
110 ifeq ($(DEBUG_FLAG),1)
111 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
113 ifeq ($(USE_EXCEPTIONS),0)
114 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
117 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
119 ifeq ($(USE_THREADS),0)
120 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
123 __UNICODE_DEFINE_p_1 = --define _UNICODE
126 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
128 ifeq ($(USE_GDIPLUS),1)
129 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
132 __DLLFLAG_p = -DWXUSINGDLL
135 __DLLFLAG_p_1 = --define WXUSINGDLL
138 __renddll___depname = \
139 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll
141 ifeq ($(BUILD),debug)
144 ifeq ($(BUILD),release)
148 __RTTIFLAG = -fno-rtti
153 ifeq ($(USE_EXCEPTIONS),0)
154 __EXCEPTIONSFLAG = -fno-exceptions
156 ifeq ($(USE_EXCEPTIONS),1)
160 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
162 ifeq ($(BUILD),debug)
163 ifeq ($(DEBUG_FLAG),default)
164 __DEBUG_DEFINE_p = -D__WXDEBUG__
167 ifeq ($(DEBUG_FLAG),1)
168 __DEBUG_DEFINE_p = -D__WXDEBUG__
170 ifeq ($(USE_EXCEPTIONS),0)
171 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
174 __RTTI_DEFINE_p = -DwxNO_RTTI
176 ifeq ($(USE_THREADS),0)
177 __THREAD_DEFINE_p = -DwxNO_THREADS
180 __UNICODE_DEFINE_p = -D_UNICODE
183 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
185 ifeq ($(USE_GDIPLUS),1)
186 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
188 ifeq ($(MONOLITHIC),0)
190 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
192 ifeq ($(MONOLITHIC),0)
194 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
196 ifeq ($(MONOLITHIC),1)
198 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
201 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
204 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
207 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
210 __UNICOWS_LIB_p = -lunicows
212 ifeq ($(USE_GDIPLUS),1)
213 __GDIPLUS_LIB_p = -lgdiplus
215 ifeq ($(BUILD),debug)
216 ifeq ($(DEBUG_INFO),default)
220 ifeq ($(BUILD),release)
221 ifeq ($(DEBUG_INFO),default)
225 ifeq ($(DEBUG_INFO),0)
228 ifeq ($(DEBUG_INFO),1)
231 ifeq ($(USE_THREADS),0)
234 ifeq ($(USE_THREADS),1)
235 __THREADSFLAG = -mthreads
241 -if not exist $(OBJS) mkdir $(OBJS)
245 all: $(OBJS)\render.exe $(__renddll___depname)
248 -if exist $(OBJS)\*.o del $(OBJS)\*.o
249 -if exist $(OBJS)\*.d del $(OBJS)\*.d
250 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
251 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll
253 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
254 $(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
257 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
258 $(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
261 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
262 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
264 $(OBJS)\render_render.o: ./render.cpp
265 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<
267 $(OBJS)\renddll_renddll.o: ./renddll.cpp
268 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<
273 # Dependencies tracking: