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
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) -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
26 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
27 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
29 $(OBJS)\render_sample_rc.o \
30 $(OBJS)\render_render.o
31 RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
32 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
33 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
34 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
35 -W -Wall -DWXUSINGDLL $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
36 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
38 $(OBJS)\renddll_renddll.o
40 ### Conditionally set variables: ###
42 ifeq ($(GCC_VERSION),2.95)
43 GCCFLAGS = -fvtable-thunks
52 ifeq ($(DEBUG_FLAG),default)
56 ifeq ($(DEBUG_FLAG),1)
74 ifeq ($(MONOLITHIC),0)
77 ifeq ($(MONOLITHIC),1)
90 ifeq ($(BUILD),release)
95 ifeq ($(BUILD),release)
101 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
103 ifeq ($(BUILD),debug)
104 ifeq ($(DEBUG_FLAG),default)
105 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
108 ifeq ($(DEBUG_FLAG),1)
109 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
111 ifeq ($(USE_EXCEPTIONS),0)
112 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
115 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
117 ifeq ($(USE_THREADS),0)
118 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
121 __UNICODE_DEFINE_p_1 = --define _UNICODE
124 __DLLFLAG_p = -DWXUSINGDLL
127 __DLLFLAG_p_1 = --define WXUSINGDLL
130 __renddll___depname = \
131 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll
133 ifeq ($(BUILD),debug)
136 ifeq ($(BUILD),release)
140 __RTTIFLAG = -fno-rtti
145 ifeq ($(USE_EXCEPTIONS),0)
146 __EXCEPTIONSFLAG = -fno-exceptions
148 ifeq ($(USE_EXCEPTIONS),1)
152 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
154 ifeq ($(BUILD),debug)
155 ifeq ($(DEBUG_FLAG),default)
156 __DEBUG_DEFINE_p = -D__WXDEBUG__
159 ifeq ($(DEBUG_FLAG),1)
160 __DEBUG_DEFINE_p = -D__WXDEBUG__
162 ifeq ($(USE_EXCEPTIONS),0)
163 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
166 __RTTI_DEFINE_p = -DwxNO_RTTI
168 ifeq ($(USE_THREADS),0)
169 __THREAD_DEFINE_p = -DwxNO_THREADS
172 __UNICODE_DEFINE_p = -D_UNICODE
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 ($(BUILD),debug)
199 ifeq ($(DEBUG_INFO),default)
203 ifeq ($(BUILD),release)
204 ifeq ($(DEBUG_INFO),default)
208 ifeq ($(DEBUG_INFO),0)
211 ifeq ($(DEBUG_INFO),1)
214 ifeq ($(USE_THREADS),0)
217 ifeq ($(USE_THREADS),1)
218 __THREADSFLAG = -mthreads
224 -if not exist $(OBJS) mkdir $(OBJS)
228 all: $(OBJS)\render.exe $(__renddll___depname)
231 -if exist $(OBJS)\*.o del $(OBJS)\*.o
232 -if exist $(OBJS)\*.d del $(OBJS)\*.d
233 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
234 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll
236 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
237 $(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
240 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
241 $(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
244 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
245 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) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples
247 $(OBJS)\render_render.o: ./render.cpp
248 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<
250 $(OBJS)\renddll_renddll.o: ./renddll.cpp
251 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<
256 # Dependencies tracking: