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__WXMSW__ $(__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 $(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__WXMSW__ $(__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 $(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__WXMSW__ $(__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 $(CPPFLAGS) \
54 BASEIPCCLIENT_OBJECTS = \
55 $(OBJS)\baseipcclient_baseclient.o
56 BASEIPCSERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
57 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__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 $(CPPFLAGS) \
64 BASEIPCSERVER_OBJECTS = \
65 $(OBJS)\baseipcserver_baseserver.o
67 ### Conditionally set variables: ###
69 ifeq ($(GCC_VERSION),2.95)
70 GCCFLAGS = -fvtable-thunks
78 ifeq ($(OFFICIAL_BUILD),1)
79 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
99 ifeq ($(MONOLITHIC),0)
102 ifeq ($(MONOLITHIC),1)
106 __ipcclient___depname = $(OBJS)\ipcclient.exe
109 __ipcserver___depname = $(OBJS)\ipcserver.exe
111 ifeq ($(MONOLITHIC),1)
112 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
114 ifeq ($(MONOLITHIC),1)
115 __LIB_PNG_IF_MONO_p_1 = $(__LIB_PNG_p)
118 __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
120 ifeq ($(DEBUG_FLAG),0)
121 __DEBUG_DEFINE_p_0 = --define wxDEBUG_LEVEL=0
123 ifeq ($(BUILD),release)
124 __NDEBUG_DEFINE_p_0 = --define NDEBUG
126 ifeq ($(USE_EXCEPTIONS),0)
127 __EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
130 __RTTI_DEFINE_p_0 = --define wxNO_RTTI
132 ifeq ($(USE_THREADS),0)
133 __THREAD_DEFINE_p_0 = --define wxNO_THREADS
136 __UNICODE_DEFINE_p_0 = --define wxUSE_UNICODE=0
139 __UNICODE_DEFINE_p_0 = --define _UNICODE
142 __MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1
144 ifeq ($(USE_CAIRO),1)
145 __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
148 __DLLFLAG_p_0 = --define WXUSINGDLL
150 ifeq ($(MONOLITHIC),0)
152 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
155 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
158 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
160 ifeq ($(BUILD),debug)
163 ifeq ($(BUILD),release)
167 __RTTIFLAG = -fno-rtti
172 ifeq ($(USE_EXCEPTIONS),0)
173 __EXCEPTIONSFLAG = -fno-exceptions
175 ifeq ($(USE_EXCEPTIONS),1)
179 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
181 ifeq ($(DEBUG_FLAG),0)
182 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
184 ifeq ($(BUILD),release)
185 __NDEBUG_DEFINE_p = -DNDEBUG
187 ifeq ($(USE_EXCEPTIONS),0)
188 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
191 __RTTI_DEFINE_p = -DwxNO_RTTI
193 ifeq ($(USE_THREADS),0)
194 __THREAD_DEFINE_p = -DwxNO_THREADS
197 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
200 __UNICODE_DEFINE_p = -D_UNICODE
203 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
205 ifeq ($(USE_CAIRO),1)
206 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
209 __DLLFLAG_p = -DWXUSINGDLL
211 ifeq ($(MONOLITHIC),0)
213 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
215 ifeq ($(MONOLITHIC),0)
217 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
219 ifeq ($(MONOLITHIC),1)
221 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
224 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
227 __UNICOWS_LIB_p = -lunicows
229 ifeq ($(USE_CAIRO),1)
230 __CAIRO_LIB_p = -lcairo
232 ifeq ($(USE_CAIRO),1)
233 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
235 ifeq ($(BUILD),debug)
236 ifeq ($(DEBUG_INFO),default)
240 ifeq ($(BUILD),release)
241 ifeq ($(DEBUG_INFO),default)
245 ifeq ($(DEBUG_INFO),0)
248 ifeq ($(DEBUG_INFO),1)
251 ifeq ($(USE_THREADS),0)
254 ifeq ($(USE_THREADS),1)
255 __THREADSFLAG = -mthreads
261 -if not exist $(OBJS) mkdir $(OBJS)
265 all: $(__ipcclient___depname) $(__ipcserver___depname) $(OBJS)\baseipcclient.exe $(OBJS)\baseipcserver.exe
268 -if exist $(OBJS)\*.o del $(OBJS)\*.o
269 -if exist $(OBJS)\*.d del $(OBJS)\*.d
270 -if exist $(OBJS)\ipcclient.exe del $(OBJS)\ipcclient.exe
271 -if exist $(OBJS)\ipcserver.exe del $(OBJS)\ipcserver.exe
272 -if exist $(OBJS)\baseipcclient.exe del $(OBJS)\baseipcclient.exe
273 -if exist $(OBJS)\baseipcserver.exe del $(OBJS)\baseipcserver.exe
276 $(OBJS)\ipcclient.exe: $(IPCCLIENT_OBJECTS) $(OBJS)\ipcclient_sample_rc.o
277 $(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) -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
281 $(OBJS)\ipcserver.exe: $(IPCSERVER_OBJECTS) $(OBJS)\ipcserver_sample_rc.o
282 $(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) -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
285 $(OBJS)\baseipcclient.exe: $(BASEIPCCLIENT_OBJECTS)
286 $(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
288 $(OBJS)\baseipcserver.exe: $(BASEIPCSERVER_OBJECTS)
289 $(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
291 $(OBJS)\ipcclient_sample_rc.o: ./../../samples/sample.rc
292 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__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
294 $(OBJS)\ipcclient_client.o: ./client.cpp
295 $(CXX) -c -o $@ $(IPCCLIENT_CXXFLAGS) $(CPPDEPS) $<
297 $(OBJS)\ipcserver_sample_rc.o: ./../../samples/sample.rc
298 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__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
300 $(OBJS)\ipcserver_server.o: ./server.cpp
301 $(CXX) -c -o $@ $(IPCSERVER_CXXFLAGS) $(CPPDEPS) $<
303 $(OBJS)\baseipcclient_baseclient.o: ./baseclient.cpp
304 $(CXX) -c -o $@ $(BASEIPCCLIENT_CXXFLAGS) $(CPPDEPS) $<
306 $(OBJS)\baseipcserver_baseserver.o: ./baseserver.cpp
307 $(CXX) -c -o $@ $(BASEIPCSERVER_CXXFLAGS) $(CPPDEPS) $<
314 # Dependencies tracking: