1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.8 (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 -MP
17 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)1
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 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
27 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
28 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
29 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) \
30 -I.\..\..\samples -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
31 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
33 $(OBJS)\render_sample_rc.o \
34 $(OBJS)\render_render.o
35 RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
36 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
37 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
38 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
39 $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
40 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -DWXUSINGDLL $(__RTTIFLAG) \
41 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
43 $(OBJS)\renddll_renddll.o
45 ### Conditionally set variables: ###
47 ifeq ($(GCC_VERSION),2.95)
48 GCCFLAGS = -fvtable-thunks
74 ifeq ($(MONOLITHIC),0)
77 ifeq ($(MONOLITHIC),1)
81 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
83 ifeq ($(DEBUG_FLAG),0)
84 __DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0
86 ifeq ($(BUILD),release)
87 __NDEBUG_DEFINE_p_1 = --define NDEBUG
89 ifeq ($(USE_EXCEPTIONS),0)
90 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
93 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
95 ifeq ($(USE_THREADS),0)
96 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
99 __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
102 __UNICODE_DEFINE_p_1 = --define _UNICODE
105 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
107 ifeq ($(USE_GDIPLUS),1)
108 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
110 ifeq ($(USE_CAIRO),1)
111 __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
114 __DLLFLAG_p = -DWXUSINGDLL
117 __DLLFLAG_p_1 = --define WXUSINGDLL
120 __renddll___depname = \
121 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_gcc.dll
123 ifeq ($(BUILD),debug)
126 ifeq ($(BUILD),release)
130 __RTTIFLAG = -fno-rtti
135 ifeq ($(USE_EXCEPTIONS),0)
136 __EXCEPTIONSFLAG = -fno-exceptions
138 ifeq ($(USE_EXCEPTIONS),1)
142 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
144 ifeq ($(DEBUG_FLAG),0)
145 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
147 ifeq ($(BUILD),release)
148 __NDEBUG_DEFINE_p = -DNDEBUG
150 ifeq ($(USE_EXCEPTIONS),0)
151 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
154 __RTTI_DEFINE_p = -DwxNO_RTTI
156 ifeq ($(USE_THREADS),0)
157 __THREAD_DEFINE_p = -DwxNO_THREADS
160 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
163 __UNICODE_DEFINE_p = -D_UNICODE
166 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
168 ifeq ($(USE_GDIPLUS),1)
169 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
171 ifeq ($(USE_CAIRO),1)
172 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
174 ifeq ($(MONOLITHIC),0)
176 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
178 ifeq ($(MONOLITHIC),0)
180 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
182 ifeq ($(MONOLITHIC),1)
184 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
187 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
190 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
193 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
196 __UNICOWS_LIB_p = -lunicows
198 ifeq ($(USE_GDIPLUS),1)
199 __GDIPLUS_LIB_p = -lgdiplus
201 ifeq ($(USE_CAIRO),1)
202 __CAIRO_LIB_p = -lcairo
204 ifeq ($(USE_CAIRO),1)
205 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
207 ifeq ($(BUILD),debug)
208 ifeq ($(DEBUG_INFO),default)
212 ifeq ($(BUILD),release)
213 ifeq ($(DEBUG_INFO),default)
217 ifeq ($(DEBUG_INFO),0)
220 ifeq ($(DEBUG_INFO),1)
223 ifeq ($(USE_THREADS),0)
226 ifeq ($(USE_THREADS),1)
227 __THREADSFLAG = -mthreads
233 -if not exist $(OBJS) mkdir $(OBJS)
237 all: $(OBJS)\render.exe $(__renddll___depname)
240 -if exist $(OBJS)\*.o del $(OBJS)\*.o
241 -if exist $(OBJS)\*.d del $(OBJS)\*.d
242 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
243 -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
245 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
246 $(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) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
249 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
250 $(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) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
253 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
254 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) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
256 $(OBJS)\render_render.o: ./render.cpp
257 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<
259 $(OBJS)\renddll_renddll.o: ./renddll.cpp
260 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<
267 # Dependencies tracking: