1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.9 (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)0
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) -I.\..\..\include -I$(SETUPHDIR) -W \
27 -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
28 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
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 -I.\..\..\include -I$(SETUPHDIR) -W -Wall -DWXUSINGDLL $(__RTTIFLAG) \
37 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
39 $(OBJS)\renddll_renddll.o
41 ### Conditionally set variables: ###
43 ifeq ($(GCC_VERSION),2.95)
44 GCCFLAGS = -fvtable-thunks
53 ifeq ($(DEBUG_FLAG),default)
57 ifeq ($(DEBUG_FLAG),1)
75 ifeq ($(MONOLITHIC),0)
78 ifeq ($(MONOLITHIC),1)
91 ifeq ($(BUILD),release)
96 ifeq ($(BUILD),release)
102 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
104 ifeq ($(BUILD),debug)
105 ifeq ($(DEBUG_FLAG),default)
106 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
109 ifeq ($(DEBUG_FLAG),1)
110 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
112 ifeq ($(USE_EXCEPTIONS),0)
113 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
116 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
118 ifeq ($(USE_THREADS),0)
119 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
122 __UNICODE_DEFINE_p_1 = --define _UNICODE
125 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
128 __DLLFLAG_p = -DWXUSINGDLL
131 __DLLFLAG_p_1 = --define WXUSINGDLL
134 __renddll___depname = \
135 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
137 ifeq ($(BUILD),debug)
140 ifeq ($(BUILD),release)
144 __RTTIFLAG = -fno-rtti
149 ifeq ($(USE_EXCEPTIONS),0)
150 __EXCEPTIONSFLAG = -fno-exceptions
152 ifeq ($(USE_EXCEPTIONS),1)
156 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
158 ifeq ($(BUILD),debug)
159 ifeq ($(DEBUG_FLAG),default)
160 __DEBUG_DEFINE_p = -D__WXDEBUG__
163 ifeq ($(DEBUG_FLAG),1)
164 __DEBUG_DEFINE_p = -D__WXDEBUG__
166 ifeq ($(USE_EXCEPTIONS),0)
167 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
170 __RTTI_DEFINE_p = -DwxNO_RTTI
172 ifeq ($(USE_THREADS),0)
173 __THREAD_DEFINE_p = -DwxNO_THREADS
176 __UNICODE_DEFINE_p = -D_UNICODE
179 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
181 ifeq ($(MONOLITHIC),0)
183 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
185 ifeq ($(MONOLITHIC),0)
187 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
189 ifeq ($(MONOLITHIC),1)
191 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
194 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
197 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
200 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
203 __UNICOWS_LIB_p = -lunicows
205 ifeq ($(BUILD),debug)
206 ifeq ($(DEBUG_INFO),default)
210 ifeq ($(BUILD),release)
211 ifeq ($(DEBUG_INFO),default)
215 ifeq ($(DEBUG_INFO),0)
218 ifeq ($(DEBUG_INFO),1)
221 ifeq ($(USE_THREADS),0)
224 ifeq ($(USE_THREADS),1)
225 __THREADSFLAG = -mthreads
231 -if not exist $(OBJS) mkdir $(OBJS)
235 all: $(OBJS)\render.exe $(__renddll___depname)
238 -if exist $(OBJS)\*.o del $(OBJS)\*.o
239 -if exist $(OBJS)\*.d del $(OBJS)\*.d
240 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
241 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
243 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
244 $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
247 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
248 $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
251 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
252 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) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples
254 $(OBJS)\render_render.o: ./render.cpp
255 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<
257 $(OBJS)\renddll_renddll.o: ./renddll.cpp
258 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<
263 # Dependencies tracking: