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 IPCCLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
25 $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
26 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
27 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
28 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
29 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) \
30 -I.\..\..\samples -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
31 -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS)
33 $(OBJS)\ipcclient_sample_rc.o \
34 $(OBJS)\ipcclient_client.o
35 IPCSERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
36 $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
37 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
38 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
39 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
40 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) \
41 -I.\..\..\samples -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
42 -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS)
44 $(OBJS)\ipcserver_sample_rc.o \
45 $(OBJS)\ipcserver_server.o
46 BASEIPCCLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
47 $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
48 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
49 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
50 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
51 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
52 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy \
53 $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS)
54 BASEIPCCLIENT_OBJECTS = \
55 $(OBJS)\baseipcclient_baseclient.o
56 BASEIPCSERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
57 $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
58 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
59 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
60 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
61 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
62 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy \
63 $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS)
64 BASEIPCSERVER_OBJECTS = \
65 $(OBJS)\baseipcserver_baseserver.o
67 ### Conditionally set variables: ###
70 WIN32_TOOLKIT_LOWERCASE = gtk
73 WIN32_TOOLKIT_LOWERCASE = msw
75 ifeq ($(GCC_VERSION),2.95)
76 GCCFLAGS = -fvtable-thunks
82 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
87 ifeq ($(OFFICIAL_BUILD),1)
88 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
108 ifeq ($(MONOLITHIC),0)
111 ifeq ($(MONOLITHIC),1)
114 ifeq ($(TOOLKIT),GTK)
115 CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields
117 ifeq ($(TOOLKIT),GTK)
118 ifeq ($(TOOLKIT_VERSION),2)
119 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
120 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
125 __ipcclient___depname = $(OBJS)\ipcclient.exe
128 __ipcserver___depname = $(OBJS)\ipcserver.exe
130 ifeq ($(MONOLITHIC),1)
131 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
133 ifeq ($(MONOLITHIC),1)
134 __LIB_PNG_IF_MONO_p_1 = $(__LIB_PNG_p)
137 __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
139 ifeq ($(DEBUG_FLAG),0)
140 __DEBUG_DEFINE_p_0 = --define wxDEBUG_LEVEL=0
142 ifeq ($(BUILD),release)
143 __NDEBUG_DEFINE_p_0 = --define NDEBUG
145 ifeq ($(USE_EXCEPTIONS),0)
146 __EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
149 __RTTI_DEFINE_p_0 = --define wxNO_RTTI
151 ifeq ($(USE_THREADS),0)
152 __THREAD_DEFINE_p_0 = --define wxNO_THREADS
155 __UNICODE_DEFINE_p_0 = --define wxUSE_UNICODE=0
158 __UNICODE_DEFINE_p_0 = --define _UNICODE
161 __MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1
163 ifeq ($(USE_CAIRO),1)
164 __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
167 __DLLFLAG_p_0 = --define WXUSINGDLL
169 ifeq ($(MONOLITHIC),0)
171 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
174 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
177 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
179 ifeq ($(BUILD),debug)
182 ifeq ($(BUILD),release)
186 __RTTIFLAG = -fno-rtti
191 ifeq ($(USE_EXCEPTIONS),0)
192 __EXCEPTIONSFLAG = -fno-exceptions
194 ifeq ($(USE_EXCEPTIONS),1)
198 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
200 ifeq ($(DEBUG_FLAG),0)
201 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
203 ifeq ($(BUILD),release)
204 __NDEBUG_DEFINE_p = -DNDEBUG
206 ifeq ($(USE_EXCEPTIONS),0)
207 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
210 __RTTI_DEFINE_p = -DwxNO_RTTI
212 ifeq ($(USE_THREADS),0)
213 __THREAD_DEFINE_p = -DwxNO_THREADS
216 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
219 __UNICODE_DEFINE_p = -D_UNICODE
222 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
224 ifeq ($(USE_CAIRO),1)
225 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
228 __DLLFLAG_p = -DWXUSINGDLL
230 ifeq ($(MONOLITHIC),0)
232 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
234 ifeq ($(MONOLITHIC),0)
236 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
238 ifeq ($(MONOLITHIC),1)
240 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
243 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
246 __UNICOWS_LIB_p = -lunicows
248 ifeq ($(USE_CAIRO),1)
249 __CAIRO_LIB_p = -lcairo
251 ifeq ($(USE_CAIRO),1)
252 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
254 ifeq ($(BUILD),debug)
255 ifeq ($(DEBUG_INFO),default)
259 ifeq ($(BUILD),release)
260 ifeq ($(DEBUG_INFO),default)
264 ifeq ($(DEBUG_INFO),0)
267 ifeq ($(DEBUG_INFO),1)
270 ifeq ($(USE_THREADS),0)
273 ifeq ($(USE_THREADS),1)
274 __THREADSFLAG = -mthreads
280 -if not exist $(OBJS) mkdir $(OBJS)
284 all: $(__ipcclient___depname) $(__ipcserver___depname) $(OBJS)\baseipcclient.exe $(OBJS)\baseipcserver.exe
287 -if exist $(OBJS)\*.o del $(OBJS)\*.o
288 -if exist $(OBJS)\*.d del $(OBJS)\*.d
289 -if exist $(OBJS)\ipcclient.exe del $(OBJS)\ipcclient.exe
290 -if exist $(OBJS)\ipcserver.exe del $(OBJS)\ipcserver.exe
291 -if exist $(OBJS)\baseipcclient.exe del $(OBJS)\baseipcclient.exe
292 -if exist $(OBJS)\baseipcserver.exe del $(OBJS)\baseipcserver.exe
295 $(OBJS)\ipcclient.exe: $(IPCCLIENT_OBJECTS) $(OBJS)\ipcclient_sample_rc.o
296 $(CXX) -o $@ $(IPCCLIENT_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_NET_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
300 $(OBJS)\ipcserver.exe: $(IPCSERVER_OBJECTS) $(OBJS)\ipcserver_sample_rc.o
301 $(CXX) -o $@ $(IPCSERVER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_NET_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
304 $(OBJS)\baseipcclient.exe: $(BASEIPCCLIENT_OBJECTS)
305 $(CXX) -o $@ $(BASEIPCCLIENT_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_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
307 $(OBJS)\baseipcserver.exe: $(BASEIPCSERVER_OBJECTS)
308 $(CXX) -o $@ $(BASEIPCSERVER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p_1) -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
310 $(OBJS)\ipcclient_sample_rc.o: ./../../samples/sample.rc
311 windres --use-temp-file -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__NDEBUG_DEFINE_p_0) $(__EXCEPTIONS_DEFINE_p_0) $(__RTTI_DEFINE_p_0) $(__THREAD_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) $(__MSLU_DEFINE_p_0) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH
313 $(OBJS)\ipcclient_client.o: ./client.cpp
314 $(CXX) -c -o $@ $(IPCCLIENT_CXXFLAGS) $(CPPDEPS) $<
316 $(OBJS)\ipcserver_sample_rc.o: ./../../samples/sample.rc
317 windres --use-temp-file -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__NDEBUG_DEFINE_p_0) $(__EXCEPTIONS_DEFINE_p_0) $(__RTTI_DEFINE_p_0) $(__THREAD_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) $(__MSLU_DEFINE_p_0) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH
319 $(OBJS)\ipcserver_server.o: ./server.cpp
320 $(CXX) -c -o $@ $(IPCSERVER_CXXFLAGS) $(CPPDEPS) $<
322 $(OBJS)\baseipcclient_baseclient.o: ./baseclient.cpp
323 $(CXX) -c -o $@ $(BASEIPCCLIENT_CXXFLAGS) $(CPPDEPS) $<
325 $(OBJS)\baseipcserver_baseserver.o: ./baseserver.cpp
326 $(CXX) -c -o $@ $(BASEIPCSERVER_CXXFLAGS) $(CPPDEPS) $<
333 # Dependencies tracking: