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) -I. $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy \
29 $(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_dll_user_wx.o
43 ### Conditionally set variables: ###
45 ifeq ($(GCC_VERSION),2.95)
46 GCCFLAGS = -fvtable-thunks
72 ifeq ($(MONOLITHIC),0)
75 ifeq ($(MONOLITHIC),1)
79 __wx_exe___depname = $(OBJS)\wx_exe.exe
82 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
84 ifeq ($(DEBUG_FLAG),0)
85 __DEBUG_DEFINE_p_3 = --define wxDEBUG_LEVEL=0
87 ifeq ($(USE_EXCEPTIONS),0)
88 __EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS
91 __RTTI_DEFINE_p_3 = --define wxNO_RTTI
93 ifeq ($(USE_THREADS),0)
94 __THREAD_DEFINE_p_3 = --define wxNO_THREADS
97 __UNICODE_DEFINE_p_3 = --define wxUSE_UNICODE=0
100 __UNICODE_DEFINE_p_3 = --define _UNICODE
103 __MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=1
105 ifeq ($(USE_GDIPLUS),1)
106 __GFXCTX_DEFINE_p_3 = --define wxUSE_GRAPHICS_CONTEXT=1
108 ifeq ($(USE_CAIRO),1)
109 __CAIRO_INCLUDEDIR_p_1 = --include-dir $(CAIRO_ROOT)/include/cairo
112 __DLLFLAG_p_3 = --define WXUSINGDLL
114 ifeq ($(BUILD),debug)
117 ifeq ($(BUILD),release)
121 __RTTIFLAG = -fno-rtti
126 ifeq ($(USE_EXCEPTIONS),0)
127 __EXCEPTIONSFLAG = -fno-exceptions
129 ifeq ($(USE_EXCEPTIONS),1)
133 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
135 ifeq ($(DEBUG_FLAG),0)
136 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
138 ifeq ($(USE_EXCEPTIONS),0)
139 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
142 __RTTI_DEFINE_p = -DwxNO_RTTI
144 ifeq ($(USE_THREADS),0)
145 __THREAD_DEFINE_p = -DwxNO_THREADS
148 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
151 __UNICODE_DEFINE_p = -D_UNICODE
154 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
156 ifeq ($(USE_GDIPLUS),1)
157 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
159 ifeq ($(USE_CAIRO),1)
160 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
163 __DLLFLAG_p = -DWXUSINGDLL
165 ifeq ($(MONOLITHIC),0)
167 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
169 ifeq ($(MONOLITHIC),0)
171 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
173 ifeq ($(MONOLITHIC),1)
175 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
178 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
181 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
184 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
187 __UNICOWS_LIB_p = -lunicows
189 ifeq ($(USE_GDIPLUS),1)
190 __GDIPLUS_LIB_p = -lgdiplus
192 ifeq ($(USE_CAIRO),1)
193 __CAIRO_LIB_p = -lcairo
195 ifeq ($(USE_CAIRO),1)
196 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
198 ifeq ($(BUILD),debug)
199 ifeq ($(DEBUG_INFO),default)
203 ifeq ($(BUILD),release)
204 ifeq ($(DEBUG_INFO),default)
208 ifeq ($(DEBUG_INFO),0)
211 ifeq ($(DEBUG_INFO),1)
214 ifeq ($(USE_THREADS),0)
217 ifeq ($(USE_THREADS),1)
218 __THREADSFLAG = -mthreads
224 -if not exist $(OBJS) mkdir $(OBJS)
228 all: $(OBJS)\my_dll.dll $(__wx_exe___depname)
231 -if exist $(OBJS)\*.o del $(OBJS)\*.o
232 -if exist $(OBJS)\*.d del $(OBJS)\*.d
233 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll
234 -if exist $(OBJS)\libmy_dll.a del $(OBJS)\libmy_dll.a
235 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe
237 $(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)
238 $(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
241 $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample_rc.o $(OBJS)\my_dll.dll
242 $(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
245 $(OBJS)\my_dll_my_dll.o: ./my_dll.cpp
246 $(CXX) -c -o $@ $(MY_DLL_CXXFLAGS) $(CPPDEPS) $<
248 $(OBJS)\wx_exe_sample_rc.o: ./../../samples/sample.rc
249 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
251 $(OBJS)\wx_exe_dll_user_wx.o: ./dll_user_wx.cpp
252 $(CXX) -c -o $@ $(WX_EXE_CXXFLAGS) $(CPPDEPS) $<
259 # Dependencies tracking: