]> git.saurik.com Git - wxWidgets.git/blame - samples/sockets/makefile.bcc
implement images support for wxButton under XP and later
[wxWidgets.git] / samples / sockets / makefile.bcc
CommitLineData
250700e4
RD
1# =========================================================================
2# This makefile was generated by
95ff11c4 3# Bakefile 0.2.6 (http://www.bakefile.org)
250700e4
RD
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
9bfe7ad9
VS
7.autodepend
8
250700e4 9!ifndef BCCDIR
9bfe7ad9
VS
10!ifndef MAKEDIR
11!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12!endif
250700e4
RD
13BCCDIR = $(MAKEDIR)\..
14!endif
15
fd9f42b6 16!include ../../build/msw/config.bcc
250700e4
RD
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
250700e4
RD
22### Variables: ###
23
ae4ccf12 24WX_RELEASE_NODOT = 29
444833b3 25COMPILER_PREFIX = bcc
b17c1746 26OBJS = \
444833b3
CE
27 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
29SETUPHDIR = \
30 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
31CLIENT_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
2804f77d 32 $(__OPTIMIZEFLAG) $(__THREADSFLAG_2) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
8c9f8f91 33 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 34 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
35 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) \
36 -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
e9877ed3
VS
37CLIENT_OBJECTS = \
38 $(OBJS)\client_client.obj
b17c1746 39SERVER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
2804f77d 40 $(__OPTIMIZEFLAG) $(__THREADSFLAG_2) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
8c9f8f91 41 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 42 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
43 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) \
44 -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
e9877ed3
VS
45SERVER_OBJECTS = \
46 $(OBJS)\server_server.obj
2804f77d
VZ
47BASECLIENT_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
48 $(__OPTIMIZEFLAG) $(__THREADSFLAG_2) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
49 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
50 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
51 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) \
52 -DwxUSE_GUI=0 $(CPPFLAGS) $(CXXFLAGS)
53BASECLIENT_OBJECTS = \
54 $(OBJS)\baseclient_baseclient.obj
55BASESERVER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
56 $(__OPTIMIZEFLAG) $(__THREADSFLAG_2) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
57 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
58 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
59 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) \
60 -DwxUSE_GUI=0 $(CPPFLAGS) $(CXXFLAGS)
61BASESERVER_OBJECTS = \
62 $(OBJS)\baseserver_baseserver.obj
250700e4
RD
63
64### Conditionally set variables: ###
65
66!if "$(USE_GUI)" == "0"
67PORTNAME = base
68!endif
69!if "$(USE_GUI)" == "1"
70PORTNAME = msw
71!endif
25a73439
VS
72!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
73WXDEBUGFLAG = d
74!endif
75!if "$(DEBUG_FLAG)" == "1"
250700e4
RD
76WXDEBUGFLAG = d
77!endif
250700e4
RD
78!if "$(UNICODE)" == "1"
79WXUNICODEFLAG = u
80!endif
81!if "$(WXUNIV)" == "1"
82WXUNIVNAME = univ
83!endif
250700e4 84!if "$(SHARED)" == "1"
b17c1746 85WXDLLFLAG = dll
e9877ed3 86!endif
b14abf14
JS
87!if "$(SHARED)" == "0"
88LIBTYPE_SUFFIX = lib
89!endif
90!if "$(SHARED)" == "1"
91LIBTYPE_SUFFIX = dll
92!endif
dd65d8c8
RN
93!if "$(MONOLITHIC)" == "0"
94EXTRALIBS_FOR_BASE =
95!endif
96!if "$(MONOLITHIC)" == "1"
97EXTRALIBS_FOR_BASE =
98!endif
2804f77d
VZ
99!if "$(USE_GUI)" == "1"
100__client___depname = $(OBJS)\client.exe
101!endif
102!if "$(USE_GUI)" == "1"
103__server___depname = $(OBJS)\server.exe
104!endif
105!if "$(WXUNIV)" == "1"
106__WXUNIV_DEFINE_p_0 = -d__WXUNIVERSAL__
107!endif
108!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
109__DEBUG_DEFINE_p_0 = -d__WXDEBUG__
110!endif
111!if "$(DEBUG_FLAG)" == "1"
112__DEBUG_DEFINE_p_0 = -d__WXDEBUG__
113!endif
114!if "$(USE_EXCEPTIONS)" == "0"
115__EXCEPTIONS_DEFINE_p_0 = -dwxNO_EXCEPTIONS
116!endif
117!if "$(USE_RTTI)" == "0"
118__RTTI_DEFINE_p_0 = -dwxNO_RTTI
119!endif
120!if "$(USE_THREADS)" == "0"
121__THREAD_DEFINE_p_0 = -dwxNO_THREADS
122!endif
123!if "$(UNICODE)" == "0"
124__UNICODE_DEFINE_p_0 = -dwxUSE_UNICODE=0
125!endif
126!if "$(UNICODE)" == "1"
127__UNICODE_DEFINE_p_0 = -d_UNICODE
128!endif
129!if "$(MSLU)" == "1"
130__MSLU_DEFINE_p_0 = -dwxUSE_UNICODE_MSLU=1
131!endif
132!if "$(USE_GDIPLUS)" == "1"
133__GFXCTX_DEFINE_p_0 = -dwxUSE_GRAPHICS_CONTEXT=1
134!endif
135!if "$(SHARED)" == "1"
136__DLLFLAG_p_0 = -dWXUSINGDLL
137!endif
138!if "$(MONOLITHIC)" == "0"
139__WXLIB_CORE_p = \
140 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
141!endif
142!if "$(USE_GUI)" == "1"
143__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
144!endif
145!if "$(USE_GUI)" == "1"
146__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
147!endif
148!if "$(USE_GUI)" == "1"
149__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
150!endif
250700e4
RD
151!if "$(BUILD)" == "debug"
152__OPTIMIZEFLAG = -Od
153!endif
154!if "$(BUILD)" == "release"
155__OPTIMIZEFLAG = -O2
156!endif
8c9f8f91
JS
157!if "$(USE_THREADS)" == "0"
158__THREADSFLAG =
159!endif
160!if "$(USE_THREADS)" == "1"
161__THREADSFLAG = mt
162!endif
163!if "$(USE_THREADS)" == "0"
2804f77d 164__THREADSFLAG_2 =
8c9f8f91
JS
165!endif
166!if "$(USE_THREADS)" == "1"
2804f77d 167__THREADSFLAG_2 = -tWM
8c9f8f91 168!endif
250700e4 169!if "$(RUNTIME_LIBS)" == "dynamic"
b17c1746 170__RUNTIME_LIBS = -tWR
250700e4
RD
171!endif
172!if "$(RUNTIME_LIBS)" == "static"
173__RUNTIME_LIBS =
174!endif
175!if "$(RUNTIME_LIBS)" == "dynamic"
2804f77d 176__RUNTIME_LIBS_2 = i
250700e4
RD
177!endif
178!if "$(RUNTIME_LIBS)" == "static"
2804f77d 179__RUNTIME_LIBS_2 =
250700e4 180!endif
b17c1746
DE
181!if "$(WXUNIV)" == "1"
182__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
183!endif
b17c1746
DE
184!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
185__DEBUG_DEFINE_p = -D__WXDEBUG__
186!endif
187!if "$(DEBUG_FLAG)" == "1"
188__DEBUG_DEFINE_p = -D__WXDEBUG__
189!endif
8c9f8f91
JS
190!if "$(USE_EXCEPTIONS)" == "0"
191__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
192!endif
8c9f8f91
JS
193!if "$(USE_RTTI)" == "0"
194__RTTI_DEFINE_p = -DwxNO_RTTI
195!endif
8c9f8f91
JS
196!if "$(USE_THREADS)" == "0"
197__THREAD_DEFINE_p = -DwxNO_THREADS
198!endif
7379e476
VZ
199!if "$(UNICODE)" == "0"
200__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
201!endif
250700e4 202!if "$(UNICODE)" == "1"
ec08d395 203__UNICODE_DEFINE_p = -D_UNICODE
250700e4 204!endif
2113bc77
MW
205!if "$(MSLU)" == "1"
206__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
207!endif
3abcf424
RD
208!if "$(USE_GDIPLUS)" == "1"
209__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
210!endif
b17c1746
DE
211!if "$(SHARED)" == "1"
212__DLLFLAG_p = -DWXUSINGDLL
213!endif
b17c1746 214!if "$(MONOLITHIC)" == "0"
c33fae85
RN
215__WXLIB_NET_p = \
216 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
b17c1746
DE
217!endif
218!if "$(MONOLITHIC)" == "0"
c33fae85
RN
219__WXLIB_BASE_p = \
220 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746 221!endif
250700e4
RD
222!if "$(MONOLITHIC)" == "1"
223__WXLIB_MONO_p = \
c33fae85 224 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
250700e4 225!endif
b17c1746
DE
226!if "$(MSLU)" == "1"
227__UNICOWS_LIB_p = unicows.lib
228!endif
3abcf424
RD
229!if "$(USE_GDIPLUS)" == "1"
230__GDIPLUS_LIB_p = gdiplus.lib
231!endif
b17c1746
DE
232!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
233__DEBUGINFO = -v
234!endif
235!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
236__DEBUGINFO = -v-
237!endif
238!if "$(DEBUG_INFO)" == "0"
239__DEBUGINFO = -v-
240!endif
241!if "$(DEBUG_INFO)" == "1"
242__DEBUGINFO = -v
250700e4
RD
243!endif
244
245
246all: $(OBJS)
247$(OBJS):
248 -if not exist $(OBJS) mkdir $(OBJS)
249
250### Targets: ###
251
2804f77d 252all: $(__client___depname) $(__server___depname) $(OBJS)\baseclient.exe $(OBJS)\baseserver.exe
250700e4 253
250700e4
RD
254clean:
255 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
256 -if exist $(OBJS)\*.res del $(OBJS)\*.res
b14abf14 257 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
250700e4 258 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
ec08d395
JS
259 -if exist $(OBJS)\client.tds del $(OBJS)\client.tds
260 -if exist $(OBJS)\client.ilc del $(OBJS)\client.ilc
261 -if exist $(OBJS)\client.ild del $(OBJS)\client.ild
262 -if exist $(OBJS)\client.ilf del $(OBJS)\client.ilf
263 -if exist $(OBJS)\client.ils del $(OBJS)\client.ils
250700e4 264 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
ec08d395
JS
265 -if exist $(OBJS)\server.tds del $(OBJS)\server.tds
266 -if exist $(OBJS)\server.ilc del $(OBJS)\server.ilc
267 -if exist $(OBJS)\server.ild del $(OBJS)\server.ild
268 -if exist $(OBJS)\server.ilf del $(OBJS)\server.ilf
269 -if exist $(OBJS)\server.ils del $(OBJS)\server.ils
2804f77d
VZ
270 -if exist $(OBJS)\baseclient.exe del $(OBJS)\baseclient.exe
271 -if exist $(OBJS)\baseclient.tds del $(OBJS)\baseclient.tds
272 -if exist $(OBJS)\baseclient.ilc del $(OBJS)\baseclient.ilc
273 -if exist $(OBJS)\baseclient.ild del $(OBJS)\baseclient.ild
274 -if exist $(OBJS)\baseclient.ilf del $(OBJS)\baseclient.ilf
275 -if exist $(OBJS)\baseclient.ils del $(OBJS)\baseclient.ils
276 -if exist $(OBJS)\baseserver.exe del $(OBJS)\baseserver.exe
277 -if exist $(OBJS)\baseserver.tds del $(OBJS)\baseserver.tds
278 -if exist $(OBJS)\baseserver.ilc del $(OBJS)\baseserver.ilc
279 -if exist $(OBJS)\baseserver.ild del $(OBJS)\baseserver.ild
280 -if exist $(OBJS)\baseserver.ilf del $(OBJS)\baseserver.ilf
281 -if exist $(OBJS)\baseserver.ils del $(OBJS)\baseserver.ils
250700e4 282
2804f77d 283!if "$(USE_GUI)" == "1"
e9877ed3 284$(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client.res
8ece421c 285 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(LDFLAGS) @&&|
2804f77d 286 c0w32.obj $(CLIENT_OBJECTS),$@,, $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_2).lib,, $(OBJS)\client_client.res
250700e4 287|
2804f77d 288!endif
250700e4 289
2804f77d 290!if "$(USE_GUI)" == "1"
e9877ed3 291$(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server.res
8ece421c 292 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(LDFLAGS) @&&|
2804f77d
VZ
293 c0w32.obj $(SERVER_OBJECTS),$@,, $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_2).lib,, $(OBJS)\server_server.res
294|
295!endif
296
297$(OBJS)\baseclient.exe: $(BASECLIENT_OBJECTS)
8ece421c 298 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(LDFLAGS) @&&|
2804f77d
VZ
299 c0x32.obj $(BASECLIENT_OBJECTS),$@,, $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_2).lib,,
300|
301
302$(OBJS)\baseserver.exe: $(BASESERVER_OBJECTS)
8ece421c 303 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap $(LDFLAGS) @&&|
2804f77d 304 c0x32.obj $(BASESERVER_OBJECTS),$@,, $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_2).lib,,
250700e4 305|
b17c1746
DE
306
307$(OBJS)\client_client.obj: .\client.cpp
6e0fbb3d 308 $(CXX) -q -c -P -o$@ $(CLIENT_CXXFLAGS) .\client.cpp
b17c1746
DE
309
310$(OBJS)\client_client.res: .\client.rc
6e0fbb3d 311 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__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) -i$(SETUPHDIR) -i.\..\..\include -i. $(__DLLFLAG_p_0) -i.\..\..\samples -dNOPCH .\client.rc
b17c1746
DE
312
313$(OBJS)\server_server.obj: .\server.cpp
6e0fbb3d 314 $(CXX) -q -c -P -o$@ $(SERVER_CXXFLAGS) .\server.cpp
b17c1746
DE
315
316$(OBJS)\server_server.res: .\server.rc
6e0fbb3d 317 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__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) -i$(SETUPHDIR) -i.\..\..\include -i. $(__DLLFLAG_p_0) -i.\..\..\samples -dNOPCH .\server.rc
b14abf14 318
2804f77d 319$(OBJS)\baseclient_baseclient.obj: .\baseclient.cpp
6e0fbb3d 320 $(CXX) -q -c -P -o$@ $(BASECLIENT_CXXFLAGS) .\baseclient.cpp
2804f77d
VZ
321
322$(OBJS)\baseserver_baseserver.obj: .\baseserver.cpp
6e0fbb3d 323 $(CXX) -q -c -P -o$@ $(BASESERVER_CXXFLAGS) .\baseserver.cpp
2804f77d 324