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 IPCCLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
24 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
27 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
28 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) \
29 -I.\..\..\samples -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
30 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
32 $(OBJS)\ipcclient_sample_rc.o \
33 $(OBJS)\ipcclient_client.o
34 IPCSERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
35 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
36 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
37 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
38 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
39 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) \
40 -I.\..\..\samples -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
41 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
43 $(OBJS)\ipcserver_sample_rc.o \
44 $(OBJS)\ipcserver_server.o
45 BASEIPCCLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
46 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
47 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
48 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
49 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
50 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
51 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
53 BASEIPCCLIENT_OBJECTS = \
54 $(OBJS)\baseipcclient_baseclient.o
55 BASEIPCSERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
56 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
57 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
58 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
59 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
60 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
61 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
63 BASEIPCSERVER_OBJECTS = \
64 $(OBJS)\baseipcserver_baseserver.o
66 ### Conditionally set variables: ###
68 ifeq ($(GCC_VERSION),2.95)
69 GCCFLAGS = -fvtable-thunks
95 ifeq ($(MONOLITHIC),0)
98 ifeq ($(MONOLITHIC),1)
102 __ipcclient___depname = $(OBJS)\ipcclient.exe
105 __ipcserver___depname = $(OBJS)\ipcserver.exe
108 __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
110 ifeq ($(DEBUG_FLAG),0)
111 __DEBUG_DEFINE_p_0 = --define wxDEBUG_LEVEL=0
113 ifeq ($(USE_EXCEPTIONS),0)
114 __EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
117 __RTTI_DEFINE_p_0 = --define wxNO_RTTI
119 ifeq ($(USE_THREADS),0)
120 __THREAD_DEFINE_p_0 = --define wxNO_THREADS
123 __UNICODE_DEFINE_p_0 = --define wxUSE_UNICODE=0
126 __UNICODE_DEFINE_p_0 = --define _UNICODE
129 __MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1
131 ifeq ($(USE_GDIPLUS),1)
132 __GFXCTX_DEFINE_p_0 = --define wxUSE_GRAPHICS_CONTEXT=1
134 ifeq ($(USE_CAIRO),1)
135 __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
138 __DLLFLAG_p_0 = --define WXUSINGDLL
140 ifeq ($(MONOLITHIC),0)
142 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
145 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
148 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
151 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
153 ifeq ($(BUILD),debug)
156 ifeq ($(BUILD),release)
160 __RTTIFLAG = -fno-rtti
165 ifeq ($(USE_EXCEPTIONS),0)
166 __EXCEPTIONSFLAG = -fno-exceptions
168 ifeq ($(USE_EXCEPTIONS),1)
172 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
174 ifeq ($(DEBUG_FLAG),0)
175 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
177 ifeq ($(USE_EXCEPTIONS),0)
178 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
181 __RTTI_DEFINE_p = -DwxNO_RTTI
183 ifeq ($(USE_THREADS),0)
184 __THREAD_DEFINE_p = -DwxNO_THREADS
187 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
190 __UNICODE_DEFINE_p = -D_UNICODE
193 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
195 ifeq ($(USE_GDIPLUS),1)
196 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
198 ifeq ($(USE_CAIRO),1)
199 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
202 __DLLFLAG_p = -DWXUSINGDLL
204 ifeq ($(MONOLITHIC),0)
206 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
208 ifeq ($(MONOLITHIC),0)
210 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
212 ifeq ($(MONOLITHIC),1)
214 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
217 __UNICOWS_LIB_p = -lunicows
219 ifeq ($(USE_GDIPLUS),1)
220 __GDIPLUS_LIB_p = -lgdiplus
222 ifeq ($(USE_CAIRO),1)
223 __CAIRO_LIB_p = -lcairo
225 ifeq ($(USE_CAIRO),1)
226 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
228 ifeq ($(BUILD),debug)
229 ifeq ($(DEBUG_INFO),default)
233 ifeq ($(BUILD),release)
234 ifeq ($(DEBUG_INFO),default)
238 ifeq ($(DEBUG_INFO),0)
241 ifeq ($(DEBUG_INFO),1)
244 ifeq ($(USE_THREADS),0)
247 ifeq ($(USE_THREADS),1)
248 __THREADSFLAG = -mthreads
254 -if not exist $(OBJS) mkdir $(OBJS)
258 all: $(__ipcclient___depname) $(__ipcserver___depname) $(OBJS)\baseipcclient.exe $(OBJS)\baseipcserver.exe
261 -if exist $(OBJS)\*.o del $(OBJS)\*.o
262 -if exist $(OBJS)\*.d del $(OBJS)\*.d
263 -if exist $(OBJS)\ipcclient.exe del $(OBJS)\ipcclient.exe
264 -if exist $(OBJS)\ipcserver.exe del $(OBJS)\ipcserver.exe
265 -if exist $(OBJS)\baseipcclient.exe del $(OBJS)\baseipcclient.exe
266 -if exist $(OBJS)\baseipcserver.exe del $(OBJS)\baseipcserver.exe
269 $(OBJS)\ipcclient.exe: $(IPCCLIENT_OBJECTS) $(OBJS)\ipcclient_sample_rc.o
270 $(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) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
274 $(OBJS)\ipcserver.exe: $(IPCSERVER_OBJECTS) $(OBJS)\ipcserver_sample_rc.o
275 $(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) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
278 $(OBJS)\baseipcclient.exe: $(BASEIPCCLIENT_OBJECTS)
279 $(CXX) -o $@ $(BASEIPCCLIENT_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_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
281 $(OBJS)\baseipcserver.exe: $(BASEIPCSERVER_OBJECTS)
282 $(CXX) -o $@ $(BASEIPCSERVER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_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
284 $(OBJS)\ipcclient_sample_rc.o: ./../../samples/sample.rc
285 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__EXCEPTIONS_DEFINE_p_0) $(__RTTI_DEFINE_p_0) $(__THREAD_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) $(__MSLU_DEFINE_p_0) $(__GFXCTX_DEFINE_p_0) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH
287 $(OBJS)\ipcclient_client.o: ./client.cpp
288 $(CXX) -c -o $@ $(IPCCLIENT_CXXFLAGS) $(CPPDEPS) $<
290 $(OBJS)\ipcserver_sample_rc.o: ./../../samples/sample.rc
291 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__EXCEPTIONS_DEFINE_p_0) $(__RTTI_DEFINE_p_0) $(__THREAD_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) $(__MSLU_DEFINE_p_0) $(__GFXCTX_DEFINE_p_0) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH
293 $(OBJS)\ipcserver_server.o: ./server.cpp
294 $(CXX) -c -o $@ $(IPCSERVER_CXXFLAGS) $(CPPDEPS) $<
296 $(OBJS)\baseipcclient_baseclient.o: ./baseclient.cpp
297 $(CXX) -c -o $@ $(BASEIPCCLIENT_CXXFLAGS) $(CPPDEPS) $<
299 $(OBJS)\baseipcserver_baseserver.o: ./baseserver.cpp
300 $(CXX) -c -o $@ $(BASEIPCSERVER_CXXFLAGS) $(CPPDEPS) $<
307 # Dependencies tracking: