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