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