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 -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 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
35 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_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 ($(BUILD),release)
93 __NDEBUG_DEFINE_p_3 = --define NDEBUG
95 ifeq ($(USE_EXCEPTIONS),0)
96 __EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS
99 __RTTI_DEFINE_p_3 = --define wxNO_RTTI
101 ifeq ($(USE_THREADS),0)
102 __THREAD_DEFINE_p_3 = --define wxNO_THREADS
105 __UNICODE_DEFINE_p_3 = --define wxUSE_UNICODE=0
108 __UNICODE_DEFINE_p_3 = --define _UNICODE
111 __MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=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 ($(BUILD),release)
126 __NDEBUG_DEFINE_p = -DNDEBUG
128 ifeq ($(USE_EXCEPTIONS),0)
129 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
132 __RTTI_DEFINE_p = -DwxNO_RTTI
134 ifeq ($(USE_THREADS),0)
135 __THREAD_DEFINE_p = -DwxNO_THREADS
138 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
141 __UNICODE_DEFINE_p = -D_UNICODE
144 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=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_CAIRO),1)
177 __CAIRO_LIB_p = -lcairo
179 ifeq ($(USE_CAIRO),1)
180 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
182 ifeq ($(BUILD),debug)
185 ifeq ($(BUILD),release)
189 __RTTIFLAG = -fno-rtti
194 ifeq ($(USE_EXCEPTIONS),0)
195 __EXCEPTIONSFLAG = -fno-exceptions
197 ifeq ($(USE_EXCEPTIONS),1)
200 ifeq ($(BUILD),debug)
201 ifeq ($(DEBUG_INFO),default)
205 ifeq ($(BUILD),release)
206 ifeq ($(DEBUG_INFO),default)
210 ifeq ($(DEBUG_INFO),0)
213 ifeq ($(DEBUG_INFO),1)
216 ifeq ($(USE_THREADS),0)
219 ifeq ($(USE_THREADS),1)
220 __THREADSFLAG = -mthreads
226 -if not exist $(OBJS) mkdir $(OBJS)
230 all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe
233 -if exist $(OBJS)\*.o del $(OBJS)\*.o
234 -if exist $(OBJS)\*.d del $(OBJS)\*.d
235 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll
236 -if exist $(OBJS)\libmy_dll.a del $(OBJS)\libmy_dll.a
237 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe
238 -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe
240 $(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)
241 $(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
244 $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample_rc.o $(OBJS)\my_dll.dll
245 $(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
248 $(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll
249 $(CXX) -o $@ $(SDK_EXE_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -Wl,--subsystem,windows -mwindows $(LDFLAGS) $(OBJS)\libmy_dll.a -luser32
251 $(OBJS)\my_dll_my_dll.o: ./my_dll.cpp
252 $(CXX) -c -o $@ $(MY_DLL_CXXFLAGS) $(CPPDEPS) $<
254 $(OBJS)\wx_exe_sample_rc.o: ./../../samples/sample.rc
255 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
257 $(OBJS)\wx_exe_wx_exe.o: ./wx_exe.cpp
258 $(CXX) -c -o $@ $(WX_EXE_CXXFLAGS) $(CPPDEPS) $<
260 $(OBJS)\sdk_exe_sdk_exe.o: ./sdk_exe.cpp
261 $(CXX) -c -o $@ $(SDK_EXE_CXXFLAGS) $(CPPDEPS) $<
268 # Dependencies tracking: