1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (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 # -------------------------------------------------------------------------
16 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)4
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) $(GCCFLAGS) -DHAVE_W32API_H \
23 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
24 -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
25 -DNOPCH $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy \
26 $(CPPFLAGS) $(CXXFLAGS)
28 $(OBJS)\render_sample_rc.o \
29 $(OBJS)\render_render.o
30 RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
31 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
32 -I.\..\..\include -I$(SETUPHDIR) -W -Wall -DWXUSINGDLL $(__EXCEPTIONSFLAG) \
33 $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
35 $(OBJS)\renddll_renddll.o
37 ### Conditionally set variables: ###
39 ifeq ($(GCC_VERSION),2.95)
40 GCCFLAGS = -fvtable-thunks
49 ifeq ($(DEBUG_FLAG),default)
53 ifeq ($(DEBUG_FLAG),1)
71 ifeq ($(MONOLITHIC),0)
74 ifeq ($(MONOLITHIC),1)
87 ifeq ($(BUILD),release)
92 ifeq ($(BUILD),release)
98 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
100 ifeq ($(BUILD),debug)
101 ifeq ($(DEBUG_FLAG),default)
102 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
105 ifeq ($(DEBUG_FLAG),1)
106 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
109 __UNICODE_DEFINE_p_1 = --define _UNICODE
112 __DLLFLAG_p = -DWXUSINGDLL
115 __DLLFLAG_p_1 = --define WXUSINGDLL
118 __renddll___depname = \
119 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
121 ifeq ($(BUILD),debug)
124 ifeq ($(BUILD),release)
127 ifeq ($(USE_EXCEPTIONS),0)
128 __EXCEPTIONSFLAG = -fno-rtti
130 ifeq ($(USE_EXCEPTIONS),1)
133 ifeq ($(USE_EXCEPTIONS),0)
134 __EXCEPTIONSFLAG_0 = -fno-exceptions
136 ifeq ($(USE_EXCEPTIONS),1)
140 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
142 ifeq ($(BUILD),debug)
143 ifeq ($(DEBUG_FLAG),default)
144 __DEBUG_DEFINE_p = -D__WXDEBUG__
147 ifeq ($(DEBUG_FLAG),1)
148 __DEBUG_DEFINE_p = -D__WXDEBUG__
151 __UNICODE_DEFINE_p = -D_UNICODE
153 ifeq ($(MONOLITHIC),0)
155 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
157 ifeq ($(MONOLITHIC),0)
159 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
161 ifeq ($(MONOLITHIC),1)
163 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
166 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
169 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
172 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
175 __UNICOWS_LIB_p = -lunicows
177 ifeq ($(BUILD),debug)
178 ifeq ($(DEBUG_INFO),default)
182 ifeq ($(BUILD),release)
183 ifeq ($(DEBUG_INFO),default)
187 ifeq ($(DEBUG_INFO),0)
190 ifeq ($(DEBUG_INFO),1)
197 -if not exist $(OBJS) mkdir $(OBJS)
201 all: $(OBJS)\render.exe $(__renddll___depname)
204 -if exist $(OBJS)\*.o del $(OBJS)\*.o
205 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
206 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
208 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
209 $(CXX) -o $@ $(RENDER_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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
212 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
213 $(CXX) -shared -fPIC -o $@ $(RENDDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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
216 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
217 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples
219 $(OBJS)\render_render.o: ./render.cpp
220 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $<
222 $(OBJS)\renddll_renddll.o: ./renddll.cpp
223 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $<