1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.6 (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 $(__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
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 ($(USE_EXCEPTIONS),0)
86 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
89 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
91 ifeq ($(USE_THREADS),0)
92 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
95 __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
98 __UNICODE_DEFINE_p_1 = --define _UNICODE
101 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
103 ifeq ($(USE_GDIPLUS),1)
104 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
107 __DLLFLAG_p = -DWXUSINGDLL
110 __DLLFLAG_p_1 = --define WXUSINGDLL
113 __renddll___depname = \
114 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_gcc.dll
116 ifeq ($(BUILD),debug)
119 ifeq ($(BUILD),release)
123 __RTTIFLAG = -fno-rtti
128 ifeq ($(USE_EXCEPTIONS),0)
129 __EXCEPTIONSFLAG = -fno-exceptions
131 ifeq ($(USE_EXCEPTIONS),1)
135 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
137 ifeq ($(DEBUG_FLAG),0)
138 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
140 ifeq ($(USE_EXCEPTIONS),0)
141 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
144 __RTTI_DEFINE_p = -DwxNO_RTTI
146 ifeq ($(USE_THREADS),0)
147 __THREAD_DEFINE_p = -DwxNO_THREADS
150 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
153 __UNICODE_DEFINE_p = -D_UNICODE
156 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
158 ifeq ($(USE_GDIPLUS),1)
159 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
161 ifeq ($(MONOLITHIC),0)
163 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
165 ifeq ($(MONOLITHIC),0)
167 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
169 ifeq ($(MONOLITHIC),1)
171 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
174 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
177 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
180 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
183 __UNICOWS_LIB_p = -lunicows
185 ifeq ($(USE_GDIPLUS),1)
186 __GDIPLUS_LIB_p = -lgdiplus
188 ifeq ($(BUILD),debug)
189 ifeq ($(DEBUG_INFO),default)
193 ifeq ($(BUILD),release)
194 ifeq ($(DEBUG_INFO),default)
198 ifeq ($(DEBUG_INFO),0)
201 ifeq ($(DEBUG_INFO),1)
204 ifeq ($(USE_THREADS),0)
207 ifeq ($(USE_THREADS),1)
208 __THREADSFLAG = -mthreads
214 -if not exist $(OBJS) mkdir $(OBJS)
218 all: $(OBJS)\render.exe $(__renddll___depname)
221 -if exist $(OBJS)\*.o del $(OBJS)\*.o
222 -if exist $(OBJS)\*.d del $(OBJS)\*.d
223 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
224 -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
226 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
227 $(CXX) -o $@ $(RENDER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
230 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
231 $(CXX) $(LINK_MODULE_FLAGS) -fPIC -o $@ $(RENDDLL_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
234 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
235 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
237 $(OBJS)\render_render.o: ./render.cpp
238 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<
240 $(OBJS)\renddll_renddll.o: ./renddll.cpp
241 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<
248 # Dependencies tracking: