]> git.saurik.com Git - wxWidgets.git/blame - samples/sockets/makefile.bcc
Correct activate logic for <ENTER>
[wxWidgets.git] / samples / sockets / makefile.bcc
CommitLineData
250700e4
RD
1# =========================================================================
2# This makefile was generated by
444833b3 3# Bakefile 0.2.2 (http://bakefile.sourceforge.net)
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) \
8c9f8f91
JS
32 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
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) \
8c9f8f91
JS
40 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
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
250700e4
RD
47
48### Conditionally set variables: ###
49
50!if "$(USE_GUI)" == "0"
51PORTNAME = base
52!endif
53!if "$(USE_GUI)" == "1"
54PORTNAME = msw
55!endif
25a73439
VS
56!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
57WXDEBUGFLAG = d
58!endif
59!if "$(DEBUG_FLAG)" == "1"
250700e4
RD
60WXDEBUGFLAG = d
61!endif
250700e4
RD
62!if "$(UNICODE)" == "1"
63WXUNICODEFLAG = u
64!endif
65!if "$(WXUNIV)" == "1"
66WXUNIVNAME = univ
67!endif
250700e4 68!if "$(SHARED)" == "1"
b17c1746 69WXDLLFLAG = dll
e9877ed3 70!endif
b14abf14
JS
71!if "$(SHARED)" == "0"
72LIBTYPE_SUFFIX = lib
73!endif
74!if "$(SHARED)" == "1"
75LIBTYPE_SUFFIX = dll
76!endif
dd65d8c8
RN
77!if "$(MONOLITHIC)" == "0"
78EXTRALIBS_FOR_BASE =
79!endif
80!if "$(MONOLITHIC)" == "1"
81EXTRALIBS_FOR_BASE =
82!endif
250700e4
RD
83!if "$(BUILD)" == "debug"
84__OPTIMIZEFLAG = -Od
85!endif
86!if "$(BUILD)" == "release"
87__OPTIMIZEFLAG = -O2
88!endif
8c9f8f91
JS
89!if "$(USE_THREADS)" == "0"
90__THREADSFLAG =
91!endif
92!if "$(USE_THREADS)" == "1"
93__THREADSFLAG = mt
94!endif
95!if "$(USE_THREADS)" == "0"
96__THREADSFLAG_0 =
97!endif
98!if "$(USE_THREADS)" == "1"
99__THREADSFLAG_0 = -tWM
100!endif
250700e4 101!if "$(RUNTIME_LIBS)" == "dynamic"
b17c1746 102__RUNTIME_LIBS = -tWR
250700e4
RD
103!endif
104!if "$(RUNTIME_LIBS)" == "static"
105__RUNTIME_LIBS =
106!endif
107!if "$(RUNTIME_LIBS)" == "dynamic"
b17c1746 108__RUNTIME_LIBS_0 = i
250700e4
RD
109!endif
110!if "$(RUNTIME_LIBS)" == "static"
111__RUNTIME_LIBS_0 =
112!endif
b17c1746
DE
113!if "$(WXUNIV)" == "1"
114__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
115!endif
116!if "$(WXUNIV)" == "1"
117__WXUNIV_DEFINE_p_0 = -d__WXUNIVERSAL__
118!endif
119!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
120__DEBUG_DEFINE_p = -D__WXDEBUG__
121!endif
122!if "$(DEBUG_FLAG)" == "1"
123__DEBUG_DEFINE_p = -D__WXDEBUG__
124!endif
125!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
126__DEBUG_DEFINE_p_0 = -d__WXDEBUG__
127!endif
128!if "$(DEBUG_FLAG)" == "1"
129__DEBUG_DEFINE_p_0 = -d__WXDEBUG__
130!endif
8c9f8f91
JS
131!if "$(USE_EXCEPTIONS)" == "0"
132__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
133!endif
134!if "$(USE_EXCEPTIONS)" == "0"
135__EXCEPTIONS_DEFINE_p_0 = -dwxNO_EXCEPTIONS
136!endif
137!if "$(USE_RTTI)" == "0"
138__RTTI_DEFINE_p = -DwxNO_RTTI
139!endif
140!if "$(USE_RTTI)" == "0"
141__RTTI_DEFINE_p_0 = -dwxNO_RTTI
142!endif
143!if "$(USE_THREADS)" == "0"
144__THREAD_DEFINE_p = -DwxNO_THREADS
145!endif
146!if "$(USE_THREADS)" == "0"
147__THREAD_DEFINE_p_0 = -dwxNO_THREADS
148!endif
250700e4 149!if "$(UNICODE)" == "1"
ec08d395 150__UNICODE_DEFINE_p = -D_UNICODE
250700e4
RD
151!endif
152!if "$(UNICODE)" == "1"
ec08d395 153__UNICODE_DEFINE_p_0 = -d_UNICODE
250700e4 154!endif
2113bc77
MW
155!if "$(MSLU)" == "1"
156__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
157!endif
158!if "$(MSLU)" == "1"
159__MSLU_DEFINE_p_0 = -dwxUSE_UNICODE_MSLU=1
160!endif
3abcf424
RD
161!if "$(USE_GDIPLUS)" == "1"
162__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
163!endif
164!if "$(USE_GDIPLUS)" == "1"
165__GFXCTX_DEFINE_p_0 = -dwxUSE_GRAPHICS_CONTEXT=1
166!endif
b17c1746
DE
167!if "$(SHARED)" == "1"
168__DLLFLAG_p = -DWXUSINGDLL
169!endif
170!if "$(SHARED)" == "1"
171__DLLFLAG_p_0 = -dWXUSINGDLL
250700e4
RD
172!endif
173!if "$(MONOLITHIC)" == "0"
174__WXLIB_CORE_p = \
c33fae85 175 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
250700e4 176!endif
b17c1746 177!if "$(MONOLITHIC)" == "0"
c33fae85
RN
178__WXLIB_NET_p = \
179 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
b17c1746
DE
180!endif
181!if "$(MONOLITHIC)" == "0"
c33fae85
RN
182__WXLIB_BASE_p = \
183 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746 184!endif
250700e4
RD
185!if "$(MONOLITHIC)" == "1"
186__WXLIB_MONO_p = \
c33fae85 187 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
250700e4 188!endif
b17c1746 189!if "$(USE_GUI)" == "1"
9c2d002b 190__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
e9877ed3 191!endif
b17c1746 192!if "$(USE_GUI)" == "1"
9c2d002b 193__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
250700e4 194!endif
b17c1746 195!if "$(USE_GUI)" == "1"
9c2d002b 196__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
b17c1746
DE
197!endif
198!if "$(MSLU)" == "1"
199__UNICOWS_LIB_p = unicows.lib
200!endif
3abcf424
RD
201!if "$(USE_GDIPLUS)" == "1"
202__GDIPLUS_LIB_p = gdiplus.lib
203!endif
b17c1746
DE
204!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
205__DEBUGINFO = -v
206!endif
207!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
208__DEBUGINFO = -v-
209!endif
210!if "$(DEBUG_INFO)" == "0"
211__DEBUGINFO = -v-
212!endif
213!if "$(DEBUG_INFO)" == "1"
214__DEBUGINFO = -v
250700e4
RD
215!endif
216
217
218all: $(OBJS)
219$(OBJS):
220 -if not exist $(OBJS) mkdir $(OBJS)
221
222### Targets: ###
223
224all: $(OBJS)\client.exe $(OBJS)\server.exe
225
250700e4
RD
226clean:
227 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
228 -if exist $(OBJS)\*.res del $(OBJS)\*.res
b14abf14 229 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
250700e4 230 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
ec08d395
JS
231 -if exist $(OBJS)\client.tds del $(OBJS)\client.tds
232 -if exist $(OBJS)\client.ilc del $(OBJS)\client.ilc
233 -if exist $(OBJS)\client.ild del $(OBJS)\client.ild
234 -if exist $(OBJS)\client.ilf del $(OBJS)\client.ilf
235 -if exist $(OBJS)\client.ils del $(OBJS)\client.ils
250700e4 236 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
ec08d395
JS
237 -if exist $(OBJS)\server.tds del $(OBJS)\server.tds
238 -if exist $(OBJS)\server.ilc del $(OBJS)\server.ilc
239 -if exist $(OBJS)\server.ild del $(OBJS)\server.ild
240 -if exist $(OBJS)\server.ilf del $(OBJS)\server.ilf
241 -if exist $(OBJS)\server.ils del $(OBJS)\server.ils
250700e4 242
e9877ed3 243$(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client.res
9bfe7ad9 244 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
3abcf424 245 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 odbc32.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,, $(OBJS)\client_client.res
250700e4
RD
246|
247
e9877ed3 248$(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server.res
9bfe7ad9 249 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
3abcf424 250 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 odbc32.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,, $(OBJS)\server_server.res
250700e4 251|
b17c1746
DE
252
253$(OBJS)\client_client.obj: .\client.cpp
254 $(CXX) -q -c -P -o$@ $(CLIENT_CXXFLAGS) $**
255
256$(OBJS)\client_client.res: .\client.rc
444833b3 257 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 $**
b17c1746
DE
258
259$(OBJS)\server_server.obj: .\server.cpp
260 $(CXX) -q -c -P -o$@ $(SERVER_CXXFLAGS) $**
261
262$(OBJS)\server_server.res: .\server.rc
444833b3 263 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 $**
b14abf14 264