1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (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)2
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
22 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
23 -I.\..\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
24 -DNOPCH $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
26 $(OBJS)\render_sample_rc.o \
27 $(OBJS)\render_render.o
28 RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
29 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
30 -I.\..\..\include -I$(SETUPHDIR) -Wall -DWXUSINGDLL $(__EXCEPTIONSFLAG) \
31 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
33 $(OBJS)\renddll_renddll.o
35 ### Conditionally set variables: ###
37 ifeq ($(GCC_VERSION),2.95)
38 GCCFLAGS = -fvtable-thunks
47 ifeq ($(DEBUG_FLAG),default)
51 ifeq ($(DEBUG_FLAG),1)
73 ifeq ($(BUILD),release)
78 ifeq ($(BUILD),release)
84 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
87 ifeq ($(DEBUG_FLAG),default)
88 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
91 ifeq ($(DEBUG_FLAG),1)
92 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
95 __UNICODE_DEFINE_p_1 = --define _UNICODE
98 __DLLFLAG_p = -DWXUSINGDLL
101 __DLLFLAG_p_1 = --define WXUSINGDLL
104 __renddll___depname = \
105 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
107 ifeq ($(BUILD),debug)
110 ifeq ($(BUILD),release)
113 ifeq ($(USE_EXCEPTIONS),0)
114 __EXCEPTIONSFLAG = -fno-rtti
116 ifeq ($(USE_EXCEPTIONS),1)
119 ifeq ($(USE_EXCEPTIONS),0)
120 __EXCEPTIONSFLAG_0 = -fno-exceptions
122 ifeq ($(USE_EXCEPTIONS),1)
126 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
128 ifeq ($(BUILD),debug)
129 ifeq ($(DEBUG_FLAG),default)
130 __DEBUG_DEFINE_p = -D__WXDEBUG__
133 ifeq ($(DEBUG_FLAG),1)
134 __DEBUG_DEFINE_p = -D__WXDEBUG__
137 __UNICODE_DEFINE_p = -D_UNICODE
140 LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
143 LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
145 ifeq ($(MONOLITHIC),0)
147 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
149 ifeq ($(MONOLITHIC),0)
151 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
153 ifeq ($(MONOLITHIC),1)
155 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
158 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
161 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
164 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
167 __UNICOWS_LIB_p = -lunicows
169 ifeq ($(BUILD),debug)
170 ifeq ($(DEBUG_INFO),default)
174 ifeq ($(BUILD),release)
175 ifeq ($(DEBUG_INFO),default)
179 ifeq ($(DEBUG_INFO),0)
182 ifeq ($(DEBUG_INFO),1)
189 -if not exist $(OBJS) mkdir $(OBJS)
193 all: $(OBJS)\render.exe $(__renddll___depname)
196 -if exist $(OBJS)\*.o del $(OBJS)\*.o
197 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
198 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
200 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
201 $(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)$(WX_RELEASE_NODOT) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) -lwxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
204 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
205 $(CXX) -shared -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)$(WX_RELEASE_NODOT) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) -lwxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
208 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
209 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
211 $(OBJS)\render_render.o: ./render.cpp
212 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $<
214 $(OBJS)\renddll_renddll.o: ./renddll.cpp
215 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $<