1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (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 # -------------------------------------------------------------------------
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
24 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
25 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
26 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
28 $(OBJS)\render_sample_rc.o \
29 $(OBJS)\render_render.o
30 RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
31 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
32 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
33 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
34 -W -Wall -DWXUSINGDLL $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
35 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
37 $(OBJS)\renddll_renddll.o
39 ### Conditionally set variables: ###
41 ifeq ($(GCC_VERSION),2.95)
42 GCCFLAGS = -fvtable-thunks
51 ifeq ($(DEBUG_FLAG),default)
55 ifeq ($(DEBUG_FLAG),1)
73 ifeq ($(MONOLITHIC),0)
76 ifeq ($(MONOLITHIC),1)
89 ifeq ($(BUILD),release)
94 ifeq ($(BUILD),release)
100 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
102 ifeq ($(BUILD),debug)
103 ifeq ($(DEBUG_FLAG),default)
104 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
107 ifeq ($(DEBUG_FLAG),1)
108 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
110 ifeq ($(USE_EXCEPTIONS),0)
111 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
114 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
116 ifeq ($(USE_THREADS),0)
117 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
120 __UNICODE_DEFINE_p_1 = --define _UNICODE
123 __DLLFLAG_p = -DWXUSINGDLL
126 __DLLFLAG_p_1 = --define WXUSINGDLL
129 __renddll___depname = \
130 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll
132 ifeq ($(BUILD),debug)
135 ifeq ($(BUILD),release)
139 __RTTIFLAG = -fno-rtti
144 ifeq ($(USE_EXCEPTIONS),0)
145 __EXCEPTIONSFLAG = -fno-exceptions
147 ifeq ($(USE_EXCEPTIONS),1)
151 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
153 ifeq ($(BUILD),debug)
154 ifeq ($(DEBUG_FLAG),default)
155 __DEBUG_DEFINE_p = -D__WXDEBUG__
158 ifeq ($(DEBUG_FLAG),1)
159 __DEBUG_DEFINE_p = -D__WXDEBUG__
161 ifeq ($(USE_EXCEPTIONS),0)
162 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
165 __RTTI_DEFINE_p = -DwxNO_RTTI
167 ifeq ($(USE_THREADS),0)
168 __THREAD_DEFINE_p = -DwxNO_THREADS
171 __UNICODE_DEFINE_p = -D_UNICODE
173 ifeq ($(MONOLITHIC),0)
175 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
177 ifeq ($(MONOLITHIC),0)
179 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
181 ifeq ($(MONOLITHIC),1)
183 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
186 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
189 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
192 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
195 __UNICOWS_LIB_p = -lunicows
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)\render.exe del $(OBJS)\render.exe
232 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll
234 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
235 $(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
238 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
239 $(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
242 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
243 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
245 $(OBJS)\render_render.o: ./render.cpp
246 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $<
248 $(OBJS)\renddll_renddll.o: ./renddll.cpp
249 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $<