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 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \
29 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
30 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
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) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
37 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
38 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
39 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -DWXUSINGDLL $(__RTTIFLAG) \
40 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
42 $(OBJS)\renddll_renddll.o
44 ### Conditionally set variables: ###
46 ifeq ($(GCC_VERSION),2.95)
47 GCCFLAGS = -fvtable-thunks
73 ifeq ($(MONOLITHIC),0)
76 ifeq ($(MONOLITHIC),1)
80 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
82 ifeq ($(DEBUG_FLAG),0)
83 __DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0
85 ifeq ($(BUILD),release)
86 __NDEBUG_DEFINE_p_1 = --define NDEBUG
88 ifeq ($(USE_EXCEPTIONS),0)
89 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
92 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
94 ifeq ($(USE_THREADS),0)
95 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
98 __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
101 __UNICODE_DEFINE_p_1 = --define _UNICODE
104 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
106 ifeq ($(USE_CAIRO),1)
107 __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
110 __DLLFLAG_p = -DWXUSINGDLL
113 __DLLFLAG_p_1 = --define WXUSINGDLL
116 __renddll___depname = \
117 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_gcc.dll
119 ifeq ($(BUILD),debug)
122 ifeq ($(BUILD),release)
126 __RTTIFLAG = -fno-rtti
131 ifeq ($(USE_EXCEPTIONS),0)
132 __EXCEPTIONSFLAG = -fno-exceptions
134 ifeq ($(USE_EXCEPTIONS),1)
138 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
140 ifeq ($(DEBUG_FLAG),0)
141 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
143 ifeq ($(BUILD),release)
144 __NDEBUG_DEFINE_p = -DNDEBUG
146 ifeq ($(USE_EXCEPTIONS),0)
147 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
150 __RTTI_DEFINE_p = -DwxNO_RTTI
152 ifeq ($(USE_THREADS),0)
153 __THREAD_DEFINE_p = -DwxNO_THREADS
156 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
159 __UNICODE_DEFINE_p = -D_UNICODE
162 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
164 ifeq ($(USE_CAIRO),1)
165 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
167 ifeq ($(MONOLITHIC),0)
169 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
171 ifeq ($(MONOLITHIC),0)
173 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
175 ifeq ($(MONOLITHIC),1)
177 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
180 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
183 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
186 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
189 __UNICOWS_LIB_p = -lunicows
191 ifeq ($(USE_CAIRO),1)
192 __CAIRO_LIB_p = -lcairo
194 ifeq ($(USE_CAIRO),1)
195 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
197 ifeq ($(BUILD),debug)
198 ifeq ($(DEBUG_INFO),default)
202 ifeq ($(BUILD),release)
203 ifeq ($(DEBUG_INFO),default)
207 ifeq ($(DEBUG_INFO),0)
210 ifeq ($(DEBUG_INFO),1)
213 ifeq ($(USE_THREADS),0)
216 ifeq ($(USE_THREADS),1)
217 __THREADSFLAG = -mthreads
223 -if not exist $(OBJS) mkdir $(OBJS)
227 all: $(OBJS)\render.exe $(__renddll___depname)
230 -if exist $(OBJS)\*.o del $(OBJS)\*.o
231 -if exist $(OBJS)\*.d del $(OBJS)\*.d
232 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
233 -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
235 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
236 $(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) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
239 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
240 $(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) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
243 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
244 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) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
246 $(OBJS)\render_render.o: ./render.cpp
247 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<
249 $(OBJS)\renddll_renddll.o: ./renddll.cpp
250 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<
257 # Dependencies tracking: