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 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
26 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
27 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \
28 $(__DLLFLAG_p) -DMY_DLL_BUILDING -I. $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
29 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
31 $(OBJS)\my_dll_my_dll.o
32 WX_EXE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
33 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
34 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
35 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
36 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \
37 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
38 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
40 $(OBJS)\wx_exe_sample_rc.o \
41 $(OBJS)\wx_exe_wx_exe.o
42 SDK_EXE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
43 $(GCCFLAGS) -DHAVE_W32API_H $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \
46 $(OBJS)\sdk_exe_sdk_exe.o
48 ### Conditionally set variables: ###
50 ifeq ($(GCC_VERSION),2.95)
51 GCCFLAGS = -fvtable-thunks
77 ifeq ($(MONOLITHIC),0)
80 ifeq ($(MONOLITHIC),1)
84 __wx_exe___depname = $(OBJS)\wx_exe.exe
87 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
89 ifeq ($(DEBUG_FLAG),0)
90 __DEBUG_DEFINE_p_3 = --define wxDEBUG_LEVEL=0
92 ifeq ($(USE_EXCEPTIONS),0)
93 __EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS
96 __RTTI_DEFINE_p_3 = --define wxNO_RTTI
98 ifeq ($(USE_THREADS),0)
99 __THREAD_DEFINE_p_3 = --define wxNO_THREADS
102 __UNICODE_DEFINE_p_3 = --define wxUSE_UNICODE=0
105 __UNICODE_DEFINE_p_3 = --define _UNICODE
108 __MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=1
110 ifeq ($(USE_GDIPLUS),1)
111 __GFXCTX_DEFINE_p_3 = --define wxUSE_GRAPHICS_CONTEXT=1
113 ifeq ($(USE_CAIRO),1)
114 __CAIRO_INCLUDEDIR_p_1 = --include-dir $(CAIRO_ROOT)/include/cairo
117 __DLLFLAG_p_3 = --define WXUSINGDLL
120 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
122 ifeq ($(DEBUG_FLAG),0)
123 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
125 ifeq ($(USE_EXCEPTIONS),0)
126 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
129 __RTTI_DEFINE_p = -DwxNO_RTTI
131 ifeq ($(USE_THREADS),0)
132 __THREAD_DEFINE_p = -DwxNO_THREADS
135 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
138 __UNICODE_DEFINE_p = -D_UNICODE
141 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
143 ifeq ($(USE_GDIPLUS),1)
144 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
146 ifeq ($(USE_CAIRO),1)
147 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
150 __DLLFLAG_p = -DWXUSINGDLL
152 ifeq ($(MONOLITHIC),0)
154 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
156 ifeq ($(MONOLITHIC),0)
158 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
160 ifeq ($(MONOLITHIC),1)
162 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
165 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
168 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
171 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
174 __UNICOWS_LIB_p = -lunicows
176 ifeq ($(USE_GDIPLUS),1)
177 __GDIPLUS_LIB_p = -lgdiplus
179 ifeq ($(USE_CAIRO),1)
180 __CAIRO_LIB_p = -lcairo
182 ifeq ($(USE_CAIRO),1)
183 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
185 ifeq ($(BUILD),debug)
188 ifeq ($(BUILD),release)
192 __RTTIFLAG = -fno-rtti
197 ifeq ($(USE_EXCEPTIONS),0)
198 __EXCEPTIONSFLAG = -fno-exceptions
200 ifeq ($(USE_EXCEPTIONS),1)
203 ifeq ($(BUILD),debug)
204 ifeq ($(DEBUG_INFO),default)
208 ifeq ($(BUILD),release)
209 ifeq ($(DEBUG_INFO),default)
213 ifeq ($(DEBUG_INFO),0)
216 ifeq ($(DEBUG_INFO),1)
219 ifeq ($(USE_THREADS),0)
222 ifeq ($(USE_THREADS),1)
223 __THREADSFLAG = -mthreads
229 -if not exist $(OBJS) mkdir $(OBJS)
233 all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe
236 -if exist $(OBJS)\*.o del $(OBJS)\*.o
237 -if exist $(OBJS)\*.d del $(OBJS)\*.d
238 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll
239 -if exist $(OBJS)\libmy_dll.a del $(OBJS)\libmy_dll.a
240 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe
241 -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe
243 $(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)
244 $(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
247 $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample_rc.o $(OBJS)\my_dll.dll
248 $(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
251 $(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll
252 $(CXX) -o $@ $(SDK_EXE_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -Wl,--subsystem,windows -mwindows $(LDFLAGS) $(OBJS)\libmy_dll.a
254 $(OBJS)\my_dll_my_dll.o: ./my_dll.cpp
255 $(CXX) -c -o $@ $(MY_DLL_CXXFLAGS) $(CPPDEPS) $<
257 $(OBJS)\wx_exe_sample_rc.o: ./../../samples/sample.rc
258 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_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
260 $(OBJS)\wx_exe_wx_exe.o: ./wx_exe.cpp
261 $(CXX) -c -o $@ $(WX_EXE_CXXFLAGS) $(CPPDEPS) $<
263 $(OBJS)\sdk_exe_sdk_exe.o: ./sdk_exe.cpp
264 $(CXX) -c -o $@ $(SDK_EXE_CXXFLAGS) $(CPPDEPS) $<
271 # Dependencies tracking: