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)3
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)
63 ifeq ($(MONOLITHIC),0)
66 ifeq ($(MONOLITHIC),1)
79 ifeq ($(BUILD),release)
84 ifeq ($(BUILD),release)
90 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
93 ifeq ($(DEBUG_FLAG),default)
94 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
97 ifeq ($(DEBUG_FLAG),1)
98 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
101 __UNICODE_DEFINE_p_1 = --define _UNICODE
104 __DLLFLAG_p = -DWXUSINGDLL
107 __DLLFLAG_p_1 = --define WXUSINGDLL
110 __renddll___depname = \
111 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
113 ifeq ($(BUILD),debug)
116 ifeq ($(BUILD),release)
119 ifeq ($(USE_EXCEPTIONS),0)
120 __EXCEPTIONSFLAG = -fno-rtti
122 ifeq ($(USE_EXCEPTIONS),1)
125 ifeq ($(USE_EXCEPTIONS),0)
126 __EXCEPTIONSFLAG_0 = -fno-exceptions
128 ifeq ($(USE_EXCEPTIONS),1)
132 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
134 ifeq ($(BUILD),debug)
135 ifeq ($(DEBUG_FLAG),default)
136 __DEBUG_DEFINE_p = -D__WXDEBUG__
139 ifeq ($(DEBUG_FLAG),1)
140 __DEBUG_DEFINE_p = -D__WXDEBUG__
143 __UNICODE_DEFINE_p = -D_UNICODE
146 LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
149 LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
151 ifeq ($(MONOLITHIC),0)
153 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
155 ifeq ($(MONOLITHIC),0)
157 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
159 ifeq ($(MONOLITHIC),1)
161 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
164 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
167 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
170 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
173 __UNICOWS_LIB_p = -lunicows
175 ifeq ($(BUILD),debug)
176 ifeq ($(DEBUG_INFO),default)
180 ifeq ($(BUILD),release)
181 ifeq ($(DEBUG_INFO),default)
185 ifeq ($(DEBUG_INFO),0)
188 ifeq ($(DEBUG_INFO),1)
195 -if not exist $(OBJS) mkdir $(OBJS)
199 all: $(OBJS)\render.exe $(__renddll___depname)
202 -if exist $(OBJS)\*.o del $(OBJS)\*.o
203 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
204 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
206 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
207 $(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
210 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
211 $(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) -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
214 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
215 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
217 $(OBJS)\render_render.o: ./render.cpp
218 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $<
220 $(OBJS)\renddll_renddll.o: ./renddll.cpp
221 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $<