1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.3 (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 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
20 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
21 -I.\..\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
22 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
24 $(OBJS)\render_sample_rc.o \
25 $(OBJS)\render_render.o
26 RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
27 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
28 -I.\..\..\include -I$(SETUPHDIR) -Wall -DWXUSINGDLL $(__EXCEPTIONSFLAG) \
29 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
31 $(OBJS)\renddll_renddll.o
33 ### Conditionally set variables: ###
35 ifeq ($(GCC_VERSION),2.95)
36 GCCFLAGS = -fvtable-thunks
45 ifeq ($(DEBUG_FLAG),default)
49 ifeq ($(DEBUG_FLAG),1)
71 ifeq ($(BUILD),release)
76 ifeq ($(BUILD),release)
82 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
85 ifeq ($(DEBUG_FLAG),default)
86 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
89 ifeq ($(DEBUG_FLAG),1)
90 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
93 __UNICODE_DEFINE_p_1 = --define _UNICODE
96 __DLLFLAG_p = -DWXUSINGDLL
99 __DLLFLAG_p_1 = --define WXUSINGDLL
102 __renddll___depname = \
103 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_gcc.dll
105 ifeq ($(BUILD),debug)
108 ifeq ($(BUILD),release)
111 ifeq ($(USE_EXCEPTIONS),0)
112 __EXCEPTIONSFLAG = -fno-rtti
114 ifeq ($(USE_EXCEPTIONS),1)
117 ifeq ($(USE_EXCEPTIONS),0)
118 __EXCEPTIONSFLAG_0 = -fno-exceptions
120 ifeq ($(USE_EXCEPTIONS),1)
124 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
126 ifeq ($(BUILD),debug)
127 ifeq ($(DEBUG_FLAG),default)
128 __DEBUG_DEFINE_p = -D__WXDEBUG__
131 ifeq ($(DEBUG_FLAG),1)
132 __DEBUG_DEFINE_p = -D__WXDEBUG__
135 __UNICODE_DEFINE_p = -D_UNICODE
138 LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
141 LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
143 ifeq ($(MONOLITHIC),0)
145 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
147 ifeq ($(MONOLITHIC),0)
148 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
150 ifeq ($(MONOLITHIC),1)
152 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
155 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
158 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
161 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
164 __UNICOWS_LIB_p = -lunicows
166 ifeq ($(BUILD),debug)
167 ifeq ($(DEBUG_INFO),default)
171 ifeq ($(BUILD),release)
172 ifeq ($(DEBUG_INFO),default)
176 ifeq ($(DEBUG_INFO),0)
179 ifeq ($(DEBUG_INFO),1)
186 -if not exist $(OBJS) mkdir $(OBJS)
190 all: $(OBJS)\render.exe $(__renddll___depname)
193 -if exist $(OBJS)\*.o del $(OBJS)\*.o
194 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
195 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_gcc.dll
197 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
198 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
201 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_gcc.dll: $(RENDDLL_OBJECTS)
202 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
205 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
206 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
208 $(OBJS)\render_render.o: ./render.cpp
209 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $<
211 $(OBJS)\renddll_renddll.o: ./renddll.cpp
212 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $<