1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.8 (http://www.bakefile.org)
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 # -------------------------------------------------------------------------
15 CPPDEPS = -MT$@ -MF$@.d -MD -MP
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 MY_DLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
24 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
25 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
27 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
28 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall $(__DLLFLAG_p) -DMY_DLL_BUILDING \
29 -I. $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
32 $(OBJS)\my_dll_my_dll.o
33 WX_EXE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
34 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
35 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
36 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
37 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
38 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) \
39 -I.\..\..\samples -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
40 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
42 $(OBJS)\wx_exe_sample_rc.o \
43 $(OBJS)\wx_exe_wx_exe.o
44 SDK_EXE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
45 $(GCCFLAGS) -DHAVE_W32API_H $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \
48 $(OBJS)\sdk_exe_sdk_exe.o
50 ### Conditionally set variables: ###
52 ifeq ($(GCC_VERSION),2.95)
53 GCCFLAGS = -fvtable-thunks
79 ifeq ($(MONOLITHIC),0)
82 ifeq ($(MONOLITHIC),1)
86 __wx_exe___depname = $(OBJS)\wx_exe.exe
89 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
91 ifeq ($(DEBUG_FLAG),0)
92 __DEBUG_DEFINE_p_3 = --define wxDEBUG_LEVEL=0
94 ifeq ($(BUILD),release)
95 __NDEBUG_DEFINE_p_3 = --define NDEBUG
97 ifeq ($(USE_EXCEPTIONS),0)
98 __EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS
101 __RTTI_DEFINE_p_3 = --define wxNO_RTTI
103 ifeq ($(USE_THREADS),0)
104 __THREAD_DEFINE_p_3 = --define wxNO_THREADS
107 __UNICODE_DEFINE_p_3 = --define wxUSE_UNICODE=0
110 __UNICODE_DEFINE_p_3 = --define _UNICODE
113 __MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=1
115 ifeq ($(USE_GDIPLUS),1)
116 __GFXCTX_DEFINE_p_3 = --define wxUSE_GRAPHICS_CONTEXT=1
118 ifeq ($(USE_CAIRO),1)
119 __CAIRO_INCLUDEDIR_p_1 = --include-dir $(CAIRO_ROOT)/include/cairo
122 __DLLFLAG_p_3 = --define WXUSINGDLL
125 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
127 ifeq ($(DEBUG_FLAG),0)
128 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
130 ifeq ($(BUILD),release)
131 __NDEBUG_DEFINE_p = -DNDEBUG
133 ifeq ($(USE_EXCEPTIONS),0)
134 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
137 __RTTI_DEFINE_p = -DwxNO_RTTI
139 ifeq ($(USE_THREADS),0)
140 __THREAD_DEFINE_p = -DwxNO_THREADS
143 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
146 __UNICODE_DEFINE_p = -D_UNICODE
149 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
151 ifeq ($(USE_GDIPLUS),1)
152 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
154 ifeq ($(USE_CAIRO),1)
155 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
158 __DLLFLAG_p = -DWXUSINGDLL
160 ifeq ($(MONOLITHIC),0)
162 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
164 ifeq ($(MONOLITHIC),0)
166 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
168 ifeq ($(MONOLITHIC),1)
170 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
173 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
176 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
179 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
182 __UNICOWS_LIB_p = -lunicows
184 ifeq ($(USE_GDIPLUS),1)
185 __GDIPLUS_LIB_p = -lgdiplus
187 ifeq ($(USE_CAIRO),1)
188 __CAIRO_LIB_p = -lcairo
190 ifeq ($(USE_CAIRO),1)
191 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
193 ifeq ($(BUILD),debug)
196 ifeq ($(BUILD),release)
200 __RTTIFLAG = -fno-rtti
205 ifeq ($(USE_EXCEPTIONS),0)
206 __EXCEPTIONSFLAG = -fno-exceptions
208 ifeq ($(USE_EXCEPTIONS),1)
211 ifeq ($(BUILD),debug)
212 ifeq ($(DEBUG_INFO),default)
216 ifeq ($(BUILD),release)
217 ifeq ($(DEBUG_INFO),default)
221 ifeq ($(DEBUG_INFO),0)
224 ifeq ($(DEBUG_INFO),1)
227 ifeq ($(USE_THREADS),0)
230 ifeq ($(USE_THREADS),1)
231 __THREADSFLAG = -mthreads
237 -if not exist $(OBJS) mkdir $(OBJS)
241 all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe
244 -if exist $(OBJS)\*.o del $(OBJS)\*.o
245 -if exist $(OBJS)\*.d del $(OBJS)\*.d
246 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll
247 -if exist $(OBJS)\libmy_dll.a del $(OBJS)\libmy_dll.a
248 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe
249 -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe
251 $(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)
252 $(CXX) $(LINK_DLL_FLAGS) -fPIC -o $@ $(MY_DLL_OBJECTS) -Wl,--out-implib=$(OBJS)\libmy_dll.a $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__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) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
255 $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample_rc.o $(OBJS)\my_dll.dll
256 $(CXX) -o $@ $(WX_EXE_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(OBJS)\libmy_dll.a $(__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) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
259 $(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll
260 $(CXX) -o $@ $(SDK_EXE_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -Wl,--subsystem,windows -mwindows $(LDFLAGS) $(OBJS)\libmy_dll.a -luser32
262 $(OBJS)\my_dll_my_dll.o: ./my_dll.cpp
263 $(CXX) -c -o $@ $(MY_DLL_CXXFLAGS) $(CPPDEPS) $<
265 $(OBJS)\wx_exe_sample_rc.o: ./../../samples/sample.rc
266 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__NDEBUG_DEFINE_p_3) $(__EXCEPTIONS_DEFINE_p_3) $(__RTTI_DEFINE_p_3) $(__THREAD_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) $(__MSLU_DEFINE_p_3) $(__GFXCTX_DEFINE_p_3) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p_1) --include-dir . $(__DLLFLAG_p_3) --include-dir ./../../samples --define NOPCH
268 $(OBJS)\wx_exe_wx_exe.o: ./wx_exe.cpp
269 $(CXX) -c -o $@ $(WX_EXE_CXXFLAGS) $(CPPDEPS) $<
271 $(OBJS)\sdk_exe_sdk_exe.o: ./sdk_exe.cpp
272 $(CXX) -c -o $@ $(SDK_EXE_CXXFLAGS) $(CPPDEPS) $<
279 # Dependencies tracking: