]> git.saurik.com Git - wxWidgets.git/blame - samples/sockets/makefile.gcc
use wxMemoryDC::SelectObjectAsSource() for const wxBitmaps
[wxWidgets.git] / samples / sockets / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
77a7dfc1 3# Bakefile 0.2.0 (http://bakefile.sourceforge.net)
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
0d90d6ea 15CPPDEPS = -MT$@ -MF$@.d -MD
4cbcfb73 16WX_RELEASE_NODOT = 27
b17c1746
DE
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 19LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
22CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
23 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
24 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
3abcf424
RD
25 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
26 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
27 -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
28 $(CXXFLAGS)
e9877ed3
VS
29CLIENT_OBJECTS = \
30 $(OBJS)\client_client.o \
31 $(OBJS)\client_client_rc.o
8c9f8f91
JS
32SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
33 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
34 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
3abcf424
RD
35 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
36 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
37 -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
38 $(CXXFLAGS)
e9877ed3
VS
39SERVER_OBJECTS = \
40 $(OBJS)\server_server.o \
41 $(OBJS)\server_server_rc.o
3b20263d
VS
42
43### Conditionally set variables: ###
44
250700e4
RD
45ifeq ($(GCC_VERSION),2.95)
46GCCFLAGS = -fvtable-thunks
47endif
3b20263d
VS
48ifeq ($(USE_GUI),0)
49PORTNAME = base
50endif
51ifeq ($(USE_GUI),1)
52PORTNAME = msw
53endif
54ifeq ($(BUILD),debug)
25a73439
VS
55ifeq ($(DEBUG_FLAG),default)
56WXDEBUGFLAG = d
57endif
58endif
59ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
60WXDEBUGFLAG = d
61endif
3b20263d
VS
62ifeq ($(UNICODE),1)
63WXUNICODEFLAG = u
64endif
65ifeq ($(WXUNIV),1)
66WXUNIVNAME = univ
67endif
b17c1746
DE
68ifeq ($(SHARED),1)
69WXDLLFLAG = dll
25a73439 70endif
b14abf14
JS
71ifeq ($(SHARED),0)
72LIBTYPE_SUFFIX = lib
73endif
74ifeq ($(SHARED),1)
75LIBTYPE_SUFFIX = dll
76endif
dd65d8c8
RN
77ifeq ($(MONOLITHIC),0)
78EXTRALIBS_FOR_BASE =
79endif
80ifeq ($(MONOLITHIC),1)
81EXTRALIBS_FOR_BASE =
82endif
b17c1746
DE
83ifeq ($(BUILD),debug)
84__OPTIMIZEFLAG = -O0
250700e4
RD
85endif
86ifeq ($(BUILD),release)
b17c1746 87__OPTIMIZEFLAG = -O2
25a73439 88endif
8c9f8f91
JS
89ifeq ($(USE_RTTI),0)
90__RTTIFLAG = -fno-rtti
25a73439 91endif
8c9f8f91
JS
92ifeq ($(USE_RTTI),1)
93__RTTIFLAG =
25a73439 94endif
b17c1746 95ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 96__EXCEPTIONSFLAG = -fno-exceptions
b17c1746
DE
97endif
98ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 99__EXCEPTIONSFLAG =
b17c1746
DE
100endif
101ifeq ($(WXUNIV),1)
102__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
103endif
104ifeq ($(WXUNIV),1)
105__WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
250700e4
RD
106endif
107ifeq ($(BUILD),debug)
25a73439
VS
108ifeq ($(DEBUG_FLAG),default)
109__DEBUG_DEFINE_p = -D__WXDEBUG__
110endif
111endif
112ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
113__DEBUG_DEFINE_p = -D__WXDEBUG__
114endif
115ifeq ($(BUILD),debug)
25a73439
VS
116ifeq ($(DEBUG_FLAG),default)
117__DEBUG_DEFINE_p_0 = --define __WXDEBUG__
118endif
119endif
120ifeq ($(DEBUG_FLAG),1)
250700e4 121__DEBUG_DEFINE_p_0 = --define __WXDEBUG__
3b20263d 122endif
8c9f8f91
JS
123ifeq ($(USE_EXCEPTIONS),0)
124__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
125endif
126ifeq ($(USE_EXCEPTIONS),0)
127__EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
128endif
129ifeq ($(USE_RTTI),0)
130__RTTI_DEFINE_p = -DwxNO_RTTI
131endif
132ifeq ($(USE_RTTI),0)
133__RTTI_DEFINE_p_0 = --define wxNO_RTTI
134endif
135ifeq ($(USE_THREADS),0)
136__THREAD_DEFINE_p = -DwxNO_THREADS
137endif
138ifeq ($(USE_THREADS),0)
139__THREAD_DEFINE_p_0 = --define wxNO_THREADS
140endif
b17c1746
DE
141ifeq ($(UNICODE),1)
142__UNICODE_DEFINE_p = -D_UNICODE
143endif
144ifeq ($(UNICODE),1)
145__UNICODE_DEFINE_p_0 = --define _UNICODE
146endif
2113bc77
MW
147ifeq ($(MSLU),1)
148__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
149endif
150ifeq ($(MSLU),1)
151__MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1
152endif
3abcf424
RD
153ifeq ($(USE_GDIPLUS),1)
154__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
155endif
156ifeq ($(USE_GDIPLUS),1)
157__GFXCTX_DEFINE_p_0 = --define wxUSE_GRAPHICS_CONTEXT=1
158endif
3b20263d
VS
159ifeq ($(SHARED),1)
160__DLLFLAG_p = -DWXUSINGDLL
161endif
162ifeq ($(SHARED),1)
250700e4
RD
163__DLLFLAG_p_0 = --define WXUSINGDLL
164endif
b17c1746
DE
165ifeq ($(MONOLITHIC),0)
166__WXLIB_CORE_p = \
c33fae85 167 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b71531ad 168endif
b17c1746 169ifeq ($(MONOLITHIC),0)
c33fae85
RN
170__WXLIB_NET_p = \
171 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
b71531ad 172endif
b17c1746 173ifeq ($(MONOLITHIC),0)
c33fae85
RN
174__WXLIB_BASE_p = \
175 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 176endif
b17c1746
DE
177ifeq ($(MONOLITHIC),1)
178__WXLIB_MONO_p = \
c33fae85 179 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 180endif
e9877ed3 181ifeq ($(USE_GUI),1)
9c2d002b 182__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
e9877ed3
VS
183endif
184ifeq ($(USE_GUI),1)
9c2d002b 185__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
e9877ed3
VS
186endif
187ifeq ($(USE_GUI),1)
9c2d002b 188__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
3b20263d 189endif
4e209a20
VS
190ifeq ($(MSLU),1)
191__UNICOWS_LIB_p = -lunicows
192endif
3abcf424
RD
193ifeq ($(USE_GDIPLUS),1)
194__GDIPLUS_LIB_p = -lgdiplus
195endif
b17c1746
DE
196ifeq ($(BUILD),debug)
197ifeq ($(DEBUG_INFO),default)
198__DEBUGINFO = -g
3b20263d 199endif
3b20263d 200endif
b17c1746
DE
201ifeq ($(BUILD),release)
202ifeq ($(DEBUG_INFO),default)
203__DEBUGINFO =
e9877ed3 204endif
3b20263d 205endif
b17c1746
DE
206ifeq ($(DEBUG_INFO),0)
207__DEBUGINFO =
3b20263d 208endif
b17c1746
DE
209ifeq ($(DEBUG_INFO),1)
210__DEBUGINFO = -g
3b20263d 211endif
8c9f8f91
JS
212ifeq ($(USE_THREADS),0)
213__THREADSFLAG =
214endif
215ifeq ($(USE_THREADS),1)
216__THREADSFLAG = -mthreads
217endif
3b20263d
VS
218
219
220all: $(OBJS)
221$(OBJS):
222 -if not exist $(OBJS) mkdir $(OBJS)
223
224### Targets: ###
225
250700e4 226all: $(OBJS)\client.exe $(OBJS)\server.exe
3b20263d 227
b17c1746
DE
228clean:
229 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 230 -if exist $(OBJS)\*.d del $(OBJS)\*.d
b17c1746
DE
231 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
232 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
233
234$(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client_rc.o
3abcf424 235 $(CXX) -o $@ $(CLIENT_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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 -lodbc32
b17c1746
DE
236
237$(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server_rc.o
3abcf424 238 $(CXX) -o $@ $(SERVER_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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 -lodbc32
b17c1746 239
1c3a6972 240$(OBJS)\client_client.o: ./client.cpp
0d90d6ea 241 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $(CPPDEPS) $<
3b20263d 242
1c3a6972 243$(OBJS)\client_client_rc.o: ./client.rc
3abcf424 244 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
250700e4 245
1c3a6972 246$(OBJS)\server_server.o: ./server.cpp
0d90d6ea 247 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $(CPPDEPS) $<
250700e4 248
1c3a6972 249$(OBJS)\server_server_rc.o: ./server.rc
3abcf424 250 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
3b20263d 251
250700e4 252.PHONY: all clean
b14abf14 253
8c9f8f91 254
0d90d6ea
JS
255# Dependencies tracking:
256-include $(OBJS)/*.d