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__WXMSW__ $(__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 $(CPPFLAGS) $(CXXFLAGS)
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 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \
38 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
39 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
41 $(OBJS)\wx_exe_sample_rc.o \
42 $(OBJS)\wx_exe_wx_exe.o
43 SDK_EXE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
44 $(GCCFLAGS) -DHAVE_W32API_H $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \
47 $(OBJS)\sdk_exe_sdk_exe.o
49 ### Conditionally set variables: ###
51 ifeq ($(GCC_VERSION),2.95)
52 GCCFLAGS = -fvtable-thunks
58 PORTNAME = msw$(TOOLKIT_VERSION)
60 ifeq ($(OFFICIAL_BUILD),1)
61 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
81 ifeq ($(MONOLITHIC),0)
84 ifeq ($(MONOLITHIC),1)
88 __wx_exe___depname = $(OBJS)\wx_exe.exe
91 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
93 ifeq ($(DEBUG_FLAG),0)
94 __DEBUG_DEFINE_p_3 = --define wxDEBUG_LEVEL=0
96 ifeq ($(BUILD),release)
97 __NDEBUG_DEFINE_p_3 = --define NDEBUG
99 ifeq ($(USE_EXCEPTIONS),0)
100 __EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS
103 __RTTI_DEFINE_p_3 = --define wxNO_RTTI
105 ifeq ($(USE_THREADS),0)
106 __THREAD_DEFINE_p_3 = --define wxNO_THREADS
109 __UNICODE_DEFINE_p_3 = --define wxUSE_UNICODE=0
112 __UNICODE_DEFINE_p_3 = --define _UNICODE
115 __MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=1
117 ifeq ($(USE_CAIRO),1)
118 __CAIRO_INCLUDEDIR_p_1 = --include-dir $(CAIRO_ROOT)/include/cairo
121 __DLLFLAG_p_3 = --define WXUSINGDLL
124 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
126 ifeq ($(DEBUG_FLAG),0)
127 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
129 ifeq ($(BUILD),release)
130 __NDEBUG_DEFINE_p = -DNDEBUG
132 ifeq ($(USE_EXCEPTIONS),0)
133 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
136 __RTTI_DEFINE_p = -DwxNO_RTTI
138 ifeq ($(USE_THREADS),0)
139 __THREAD_DEFINE_p = -DwxNO_THREADS
142 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
145 __UNICODE_DEFINE_p = -D_UNICODE
148 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
150 ifeq ($(USE_CAIRO),1)
151 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
154 __DLLFLAG_p = -DWXUSINGDLL
156 ifeq ($(MONOLITHIC),0)
158 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
160 ifeq ($(MONOLITHIC),0)
162 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
164 ifeq ($(MONOLITHIC),1)
166 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
169 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
172 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
175 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
178 __UNICOWS_LIB_p = -lunicows
180 ifeq ($(USE_CAIRO),1)
181 __CAIRO_LIB_p = -lcairo
183 ifeq ($(USE_CAIRO),1)
184 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
186 ifeq ($(BUILD),debug)
189 ifeq ($(BUILD),release)
193 __RTTIFLAG = -fno-rtti
198 ifeq ($(USE_EXCEPTIONS),0)
199 __EXCEPTIONSFLAG = -fno-exceptions
201 ifeq ($(USE_EXCEPTIONS),1)
204 ifeq ($(BUILD),debug)
205 ifeq ($(DEBUG_INFO),default)
209 ifeq ($(BUILD),release)
210 ifeq ($(DEBUG_INFO),default)
214 ifeq ($(DEBUG_INFO),0)
217 ifeq ($(DEBUG_INFO),1)
220 ifeq ($(USE_THREADS),0)
223 ifeq ($(USE_THREADS),1)
224 __THREADSFLAG = -mthreads
230 -if not exist $(OBJS) mkdir $(OBJS)
234 all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe
237 -if exist $(OBJS)\*.o del $(OBJS)\*.o
238 -if exist $(OBJS)\*.d del $(OBJS)\*.d
239 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll
240 -if exist $(OBJS)\libmy_dll.a del $(OBJS)\libmy_dll.a
241 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe
242 -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe
244 $(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)
245 $(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) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
248 $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample_rc.o $(OBJS)\my_dll.dll
249 $(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) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
252 $(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll
253 $(CXX) -o $@ $(SDK_EXE_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -Wl,--subsystem,windows -mwindows $(LDFLAGS) $(OBJS)\libmy_dll.a -luser32
255 $(OBJS)\my_dll_my_dll.o: ./my_dll.cpp
256 $(CXX) -c -o $@ $(MY_DLL_CXXFLAGS) $(CPPDEPS) $<
258 $(OBJS)\wx_exe_sample_rc.o: ./../../samples/sample.rc
259 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) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p_1) --include-dir . $(__DLLFLAG_p_3) --include-dir ./../../samples --define NOPCH
261 $(OBJS)\wx_exe_wx_exe.o: ./wx_exe.cpp
262 $(CXX) -c -o $@ $(WX_EXE_CXXFLAGS) $(CPPDEPS) $<
264 $(OBJS)\sdk_exe_sdk_exe.o: ./sdk_exe.cpp
265 $(CXX) -c -o $@ $(SDK_EXE_CXXFLAGS) $(CPPDEPS) $<
272 # Dependencies tracking: