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