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