]> git.saurik.com Git - wxWidgets.git/blame - samples/ipc/makefile.gcc
Applied better/Win98-proof method of getting edit window
[wxWidgets.git] / samples / ipc / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
95ff11c4 3# Bakefile 0.2.6 (http://www.bakefile.org)
3b20263d
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../build/msw/config.gcc
3b20263d
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
8ece421c 15CPPDEPS = -MT$@ -MF$@.d -MD -MP
ae4ccf12 16WX_RELEASE_NODOT = 29
444833b3 17COMPILER_PREFIX = gcc
b17c1746 18OBJS = \
444833b3
CE
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
7dc467c5
VZ
23IPCCLIENT_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 -W -Wall -I. \
28 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
29 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
30IPCCLIENT_OBJECTS = \
31 $(OBJS)\ipcclient_sample_rc.o \
32 $(OBJS)\ipcclient_client.o
33IPCSERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
34 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
35 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
36 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
37 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
38 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
39 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
40IPCSERVER_OBJECTS = \
41 $(OBJS)\ipcserver_sample_rc.o \
42 $(OBJS)\ipcserver_server.o
ebe887ed
VZ
43BASEIPCCLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
44 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
45 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
46 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
47 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
48 $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
49 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
50BASEIPCCLIENT_OBJECTS = \
51 $(OBJS)\baseipcclient_baseclient.o
52BASEIPCSERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
53 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
54 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
55 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
56 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
57 $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
58 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
59BASEIPCSERVER_OBJECTS = \
60 $(OBJS)\baseipcserver_baseserver.o
3b20263d
VS
61
62### Conditionally set variables: ###
63
250700e4
RD
64ifeq ($(GCC_VERSION),2.95)
65GCCFLAGS = -fvtable-thunks
66endif
3b20263d
VS
67ifeq ($(USE_GUI),0)
68PORTNAME = base
69endif
70ifeq ($(USE_GUI),1)
71PORTNAME = msw
72endif
73ifeq ($(BUILD),debug)
74WXDEBUGFLAG = d
75endif
3b20263d
VS
76ifeq ($(UNICODE),1)
77WXUNICODEFLAG = u
78endif
79ifeq ($(WXUNIV),1)
80WXUNIVNAME = univ
81endif
b17c1746
DE
82ifeq ($(SHARED),1)
83WXDLLFLAG = dll
076f10e0 84endif
b14abf14
JS
85ifeq ($(SHARED),0)
86LIBTYPE_SUFFIX = lib
87endif
88ifeq ($(SHARED),1)
89LIBTYPE_SUFFIX = dll
90endif
dd65d8c8
RN
91ifeq ($(MONOLITHIC),0)
92EXTRALIBS_FOR_BASE =
93endif
94ifeq ($(MONOLITHIC),1)
95EXTRALIBS_FOR_BASE =
96endif
ebe887ed
VZ
97ifeq ($(USE_GUI),1)
98__ipcclient___depname = $(OBJS)\ipcclient.exe
99endif
100ifeq ($(USE_GUI),1)
101__ipcserver___depname = $(OBJS)\ipcserver.exe
102endif
103ifeq ($(WXUNIV),1)
104__WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
105endif
d12d9eda
VZ
106ifeq ($(DEBUG_FLAG),0)
107__DEBUG_DEFINE_p_0 = --define wxDEBUG_LEVEL=0
ebe887ed
VZ
108endif
109ifeq ($(USE_EXCEPTIONS),0)
110__EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
111endif
112ifeq ($(USE_RTTI),0)
113__RTTI_DEFINE_p_0 = --define wxNO_RTTI
114endif
115ifeq ($(USE_THREADS),0)
116__THREAD_DEFINE_p_0 = --define wxNO_THREADS
117endif
118ifeq ($(UNICODE),0)
119__UNICODE_DEFINE_p_0 = --define wxUSE_UNICODE=0
120endif
121ifeq ($(UNICODE),1)
122__UNICODE_DEFINE_p_0 = --define _UNICODE
123endif
124ifeq ($(MSLU),1)
125__MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1
126endif
127ifeq ($(USE_GDIPLUS),1)
128__GFXCTX_DEFINE_p_0 = --define wxUSE_GRAPHICS_CONTEXT=1
129endif
130ifeq ($(SHARED),1)
131__DLLFLAG_p_0 = --define WXUSINGDLL
132endif
133ifeq ($(MONOLITHIC),0)
134__WXLIB_CORE_p = \
135 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
136endif
137ifeq ($(USE_GUI),1)
138__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
139endif
140ifeq ($(USE_GUI),1)
141__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
142endif
143ifeq ($(USE_GUI),1)
144__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
145endif
b17c1746
DE
146ifeq ($(BUILD),debug)
147__OPTIMIZEFLAG = -O0
250700e4
RD
148endif
149ifeq ($(BUILD),release)
b17c1746 150__OPTIMIZEFLAG = -O2
076f10e0 151endif
8c9f8f91
JS
152ifeq ($(USE_RTTI),0)
153__RTTIFLAG = -fno-rtti
076f10e0 154endif
8c9f8f91
JS
155ifeq ($(USE_RTTI),1)
156__RTTIFLAG =
076f10e0 157endif
b17c1746 158ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 159__EXCEPTIONSFLAG = -fno-exceptions
b17c1746
DE
160endif
161ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 162__EXCEPTIONSFLAG =
b17c1746
DE
163endif
164ifeq ($(WXUNIV),1)
165__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
166endif
d12d9eda
VZ
167ifeq ($(DEBUG_FLAG),0)
168__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
3b20263d 169endif
8c9f8f91
JS
170ifeq ($(USE_EXCEPTIONS),0)
171__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
172endif
8c9f8f91
JS
173ifeq ($(USE_RTTI),0)
174__RTTI_DEFINE_p = -DwxNO_RTTI
175endif
8c9f8f91
JS
176ifeq ($(USE_THREADS),0)
177__THREAD_DEFINE_p = -DwxNO_THREADS
178endif
7379e476
VZ
179ifeq ($(UNICODE),0)
180__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
181endif
b17c1746
DE
182ifeq ($(UNICODE),1)
183__UNICODE_DEFINE_p = -D_UNICODE
184endif
2113bc77
MW
185ifeq ($(MSLU),1)
186__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
187endif
3abcf424
RD
188ifeq ($(USE_GDIPLUS),1)
189__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
190endif
3b20263d
VS
191ifeq ($(SHARED),1)
192__DLLFLAG_p = -DWXUSINGDLL
193endif
b17c1746 194ifeq ($(MONOLITHIC),0)
c33fae85
RN
195__WXLIB_NET_p = \
196 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
b71531ad 197endif
b17c1746 198ifeq ($(MONOLITHIC),0)
c33fae85
RN
199__WXLIB_BASE_p = \
200 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 201endif
b17c1746
DE
202ifeq ($(MONOLITHIC),1)
203__WXLIB_MONO_p = \
c33fae85 204 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 205endif
4e209a20
VS
206ifeq ($(MSLU),1)
207__UNICOWS_LIB_p = -lunicows
208endif
3abcf424
RD
209ifeq ($(USE_GDIPLUS),1)
210__GDIPLUS_LIB_p = -lgdiplus
211endif
b17c1746
DE
212ifeq ($(BUILD),debug)
213ifeq ($(DEBUG_INFO),default)
214__DEBUGINFO = -g
3b20263d 215endif
3b20263d 216endif
b17c1746
DE
217ifeq ($(BUILD),release)
218ifeq ($(DEBUG_INFO),default)
219__DEBUGINFO =
3b20263d 220endif
d179e30b 221endif
b17c1746
DE
222ifeq ($(DEBUG_INFO),0)
223__DEBUGINFO =
3b20263d 224endif
b17c1746
DE
225ifeq ($(DEBUG_INFO),1)
226__DEBUGINFO = -g
3b20263d 227endif
8c9f8f91
JS
228ifeq ($(USE_THREADS),0)
229__THREADSFLAG =
230endif
231ifeq ($(USE_THREADS),1)
232__THREADSFLAG = -mthreads
233endif
3b20263d
VS
234
235
236all: $(OBJS)
237$(OBJS):
238 -if not exist $(OBJS) mkdir $(OBJS)
239
240### Targets: ###
241
ebe887ed 242all: $(__ipcclient___depname) $(__ipcserver___depname) $(OBJS)\baseipcclient.exe $(OBJS)\baseipcserver.exe
d179e30b 243
3b20263d
VS
244clean:
245 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 246 -if exist $(OBJS)\*.d del $(OBJS)\*.d
7dc467c5
VZ
247 -if exist $(OBJS)\ipcclient.exe del $(OBJS)\ipcclient.exe
248 -if exist $(OBJS)\ipcserver.exe del $(OBJS)\ipcserver.exe
ebe887ed
VZ
249 -if exist $(OBJS)\baseipcclient.exe del $(OBJS)\baseipcclient.exe
250 -if exist $(OBJS)\baseipcserver.exe del $(OBJS)\baseipcserver.exe
d179e30b 251
ebe887ed 252ifeq ($(USE_GUI),1)
7dc467c5 253$(OBJS)\ipcclient.exe: $(IPCCLIENT_OBJECTS) $(OBJS)\ipcclient_sample_rc.o
b44f5137 254 $(CXX) -o $@ $(IPCCLIENT_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
ebe887ed 255endif
3b20263d 256
ebe887ed 257ifeq ($(USE_GUI),1)
7dc467c5 258$(OBJS)\ipcserver.exe: $(IPCSERVER_OBJECTS) $(OBJS)\ipcserver_sample_rc.o
b44f5137 259 $(CXX) -o $@ $(IPCSERVER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
ebe887ed
VZ
260endif
261
262$(OBJS)\baseipcclient.exe: $(BASEIPCCLIENT_OBJECTS)
b44f5137 263 $(CXX) -o $@ $(BASEIPCCLIENT_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
ebe887ed
VZ
264
265$(OBJS)\baseipcserver.exe: $(BASEIPCSERVER_OBJECTS)
b44f5137 266 $(CXX) -o $@ $(BASEIPCSERVER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
3b20263d 267
7dc467c5 268$(OBJS)\ipcclient_sample_rc.o: ./../../samples/sample.rc
444833b3 269 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 --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH
b17c1746 270
7dc467c5
VZ
271$(OBJS)\ipcclient_client.o: ./client.cpp
272 $(CXX) -c -o $@ $(IPCCLIENT_CXXFLAGS) $(CPPDEPS) $<
b17c1746 273
7dc467c5 274$(OBJS)\ipcserver_sample_rc.o: ./../../samples/sample.rc
444833b3 275 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 --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH
b17c1746 276
7dc467c5
VZ
277$(OBJS)\ipcserver_server.o: ./server.cpp
278 $(CXX) -c -o $@ $(IPCSERVER_CXXFLAGS) $(CPPDEPS) $<
b17c1746 279
ebe887ed
VZ
280$(OBJS)\baseipcclient_baseclient.o: ./baseclient.cpp
281 $(CXX) -c -o $@ $(BASEIPCCLIENT_CXXFLAGS) $(CPPDEPS) $<
282
283$(OBJS)\baseipcserver_baseserver.o: ./baseserver.cpp
284 $(CXX) -c -o $@ $(BASEIPCSERVER_CXXFLAGS) $(CPPDEPS) $<
285
250700e4 286.PHONY: all clean
b14abf14 287
8c9f8f91 288
6e0fbb3d
VS
289SHELL := $(COMSPEC)
290
0d90d6ea
JS
291# Dependencies tracking:
292-include $(OBJS)/*.d