1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.9 (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)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
24 MY_DLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
25 -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
26 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
27 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
28 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \
29 $(__DLLFLAG_p) -DMY_DLL_BUILDING -I. $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
30 -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS)
32 $(OBJS)\my_dll_my_dll.o
33 WX_EXE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
34 -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__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 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \
38 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
39 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) \
40 $(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: ###
53 WIN32_TOOLKIT_LOWERCASE = gtk
56 WIN32_TOOLKIT_LOWERCASE = msw
58 ifeq ($(GCC_VERSION),2.95)
59 GCCFLAGS = -fvtable-thunks
65 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
70 ifeq ($(OFFICIAL_BUILD),1)
71 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
91 ifeq ($(MONOLITHIC),0)
94 ifeq ($(MONOLITHIC),1)
98 CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields
100 ifeq ($(TOOLKIT),GTK)
101 ifeq ($(TOOLKIT_VERSION),2)
102 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
103 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
108 __wx_exe___depname = $(OBJS)\wx_exe.exe
111 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
113 ifeq ($(DEBUG_FLAG),0)
114 __DEBUG_DEFINE_p_3 = --define wxDEBUG_LEVEL=0
116 ifeq ($(BUILD),release)
117 __NDEBUG_DEFINE_p_3 = --define NDEBUG
119 ifeq ($(USE_EXCEPTIONS),0)
120 __EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS
123 __RTTI_DEFINE_p_3 = --define wxNO_RTTI
125 ifeq ($(USE_THREADS),0)
126 __THREAD_DEFINE_p_3 = --define wxNO_THREADS
129 __UNICODE_DEFINE_p_3 = --define wxUSE_UNICODE=0
132 __UNICODE_DEFINE_p_3 = --define _UNICODE
135 __MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=1
137 ifeq ($(USE_CAIRO),1)
138 __CAIRO_INCLUDEDIR_p_1 = --include-dir $(CAIRO_ROOT)/include/cairo
141 __DLLFLAG_p_3 = --define WXUSINGDLL
144 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
146 ifeq ($(DEBUG_FLAG),0)
147 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
149 ifeq ($(BUILD),release)
150 __NDEBUG_DEFINE_p = -DNDEBUG
152 ifeq ($(USE_EXCEPTIONS),0)
153 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
156 __RTTI_DEFINE_p = -DwxNO_RTTI
158 ifeq ($(USE_THREADS),0)
159 __THREAD_DEFINE_p = -DwxNO_THREADS
162 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
165 __UNICODE_DEFINE_p = -D_UNICODE
168 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
170 ifeq ($(USE_CAIRO),1)
171 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
174 __DLLFLAG_p = -DWXUSINGDLL
176 ifeq ($(MONOLITHIC),0)
178 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
180 ifeq ($(MONOLITHIC),0)
182 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
184 ifeq ($(MONOLITHIC),1)
186 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
189 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
192 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
195 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
198 __UNICOWS_LIB_p = -lunicows
200 ifeq ($(USE_CAIRO),1)
201 __CAIRO_LIB_p = -lcairo
203 ifeq ($(USE_CAIRO),1)
204 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
206 ifeq ($(BUILD),debug)
209 ifeq ($(BUILD),release)
213 __RTTIFLAG = -fno-rtti
218 ifeq ($(USE_EXCEPTIONS),0)
219 __EXCEPTIONSFLAG = -fno-exceptions
221 ifeq ($(USE_EXCEPTIONS),1)
224 ifeq ($(BUILD),debug)
225 ifeq ($(DEBUG_INFO),default)
229 ifeq ($(BUILD),release)
230 ifeq ($(DEBUG_INFO),default)
234 ifeq ($(DEBUG_INFO),0)
237 ifeq ($(DEBUG_INFO),1)
240 ifeq ($(USE_THREADS),0)
243 ifeq ($(USE_THREADS),1)
244 __THREADSFLAG = -mthreads
250 -if not exist $(OBJS) mkdir $(OBJS)
254 all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe
257 -if exist $(OBJS)\*.o del $(OBJS)\*.o
258 -if exist $(OBJS)\*.d del $(OBJS)\*.d
259 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll
260 -if exist $(OBJS)\libmy_dll.a del $(OBJS)\libmy_dll.a
261 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe
262 -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe
264 $(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)
265 $(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) $(LIB_GTK) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
268 $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample_rc.o $(OBJS)\my_dll.dll
269 $(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) $(LIB_GTK) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
272 $(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll
273 $(CXX) -o $@ $(SDK_EXE_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -Wl,--subsystem,windows -mwindows $(LDFLAGS) $(OBJS)\libmy_dll.a -luser32
275 $(OBJS)\my_dll_my_dll.o: ./my_dll.cpp
276 $(CXX) -c -o $@ $(MY_DLL_CXXFLAGS) $(CPPDEPS) $<
278 $(OBJS)\wx_exe_sample_rc.o: ./../../samples/sample.rc
279 windres --use-temp-file -i$< -o$@ --define __WX$(TOOLKIT)__ $(__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) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p_1) --include-dir . $(__DLLFLAG_p_3) --include-dir ./../../samples --define NOPCH
281 $(OBJS)\wx_exe_wx_exe.o: ./wx_exe.cpp
282 $(CXX) -c -o $@ $(WX_EXE_CXXFLAGS) $(CPPDEPS) $<
284 $(OBJS)\sdk_exe_sdk_exe.o: ./sdk_exe.cpp
285 $(CXX) -c -o $@ $(SDK_EXE_CXXFLAGS) $(CPPDEPS) $<
292 # Dependencies tracking: