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
76 PORTNAME = msw$(TOOLKIT_VERSION)
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
154 ifeq ($(MONOLITHIC),1)
156 __LIB_SCINTILLA_IF_MONO_p = -lwxscintilla$(WXDEBUGFLAG)
160 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
163 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
165 ifeq ($(BUILD),debug)
168 ifeq ($(BUILD),release)
172 __RTTIFLAG = -fno-rtti
177 ifeq ($(USE_EXCEPTIONS),0)
178 __EXCEPTIONSFLAG = -fno-exceptions
180 ifeq ($(USE_EXCEPTIONS),1)
184 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
186 ifeq ($(DEBUG_FLAG),0)
187 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
189 ifeq ($(BUILD),release)
190 __NDEBUG_DEFINE_p = -DNDEBUG
192 ifeq ($(USE_EXCEPTIONS),0)
193 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
196 __RTTI_DEFINE_p = -DwxNO_RTTI
198 ifeq ($(USE_THREADS),0)
199 __THREAD_DEFINE_p = -DwxNO_THREADS
202 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
205 __UNICODE_DEFINE_p = -D_UNICODE
208 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
210 ifeq ($(USE_CAIRO),1)
211 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
214 __DLLFLAG_p = -DWXUSINGDLL
216 ifeq ($(MONOLITHIC),0)
218 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
220 ifeq ($(MONOLITHIC),0)
222 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
224 ifeq ($(MONOLITHIC),1)
226 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
229 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
232 __UNICOWS_LIB_p = -lunicows
234 ifeq ($(USE_CAIRO),1)
235 __CAIRO_LIB_p = -lcairo
237 ifeq ($(USE_CAIRO),1)
238 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
240 ifeq ($(BUILD),debug)
241 ifeq ($(DEBUG_INFO),default)
245 ifeq ($(BUILD),release)
246 ifeq ($(DEBUG_INFO),default)
250 ifeq ($(DEBUG_INFO),0)
253 ifeq ($(DEBUG_INFO),1)
256 ifeq ($(USE_THREADS),0)
259 ifeq ($(USE_THREADS),1)
260 __THREADSFLAG = -mthreads
266 -if not exist $(OBJS) mkdir $(OBJS)
270 all: $(__ipcclient___depname) $(__ipcserver___depname) $(OBJS)\baseipcclient.exe $(OBJS)\baseipcserver.exe
273 -if exist $(OBJS)\*.o del $(OBJS)\*.o
274 -if exist $(OBJS)\*.d del $(OBJS)\*.d
275 -if exist $(OBJS)\ipcclient.exe del $(OBJS)\ipcclient.exe
276 -if exist $(OBJS)\ipcserver.exe del $(OBJS)\ipcserver.exe
277 -if exist $(OBJS)\baseipcclient.exe del $(OBJS)\baseipcclient.exe
278 -if exist $(OBJS)\baseipcserver.exe del $(OBJS)\baseipcserver.exe
281 $(OBJS)\ipcclient.exe: $(IPCCLIENT_OBJECTS) $(OBJS)\ipcclient_sample_rc.o
282 $(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_SCINTILLA_IF_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
286 $(OBJS)\ipcserver.exe: $(IPCSERVER_OBJECTS) $(OBJS)\ipcserver_sample_rc.o
287 $(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_SCINTILLA_IF_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
290 $(OBJS)\baseipcclient.exe: $(BASEIPCCLIENT_OBJECTS)
291 $(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
293 $(OBJS)\baseipcserver.exe: $(BASEIPCSERVER_OBJECTS)
294 $(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
296 $(OBJS)\ipcclient_sample_rc.o: ./../../samples/sample.rc
297 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
299 $(OBJS)\ipcclient_client.o: ./client.cpp
300 $(CXX) -c -o $@ $(IPCCLIENT_CXXFLAGS) $(CPPDEPS) $<
302 $(OBJS)\ipcserver_sample_rc.o: ./../../samples/sample.rc
303 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
305 $(OBJS)\ipcserver_server.o: ./server.cpp
306 $(CXX) -c -o $@ $(IPCSERVER_CXXFLAGS) $(CPPDEPS) $<
308 $(OBJS)\baseipcclient_baseclient.o: ./baseclient.cpp
309 $(CXX) -c -o $@ $(BASEIPCCLIENT_CXXFLAGS) $(CPPDEPS) $<
311 $(OBJS)\baseipcserver_baseserver.o: ./baseserver.cpp
312 $(CXX) -c -o $@ $(BASEIPCSERVER_CXXFLAGS) $(CPPDEPS) $<
319 # Dependencies tracking: