]> git.saurik.com Git - wxWidgets.git/blame - samples/ipc/makefile.bcc
mention Win9x size limitation
[wxWidgets.git] / samples / ipc / makefile.bcc
CommitLineData
250700e4
RD
1# =========================================================================
2# This makefile was generated by
c3255f5f 3# Bakefile 0.1.3 (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
b17c1746
DE
24OBJS = \
25 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
26SETUPHDIR = \
27 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
28CLIENT_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
9bfe7ad9
VS
29 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
30 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
31 -I.\..\..\samples $(CPPFLAGS) $(CXXFLAGS)
d179e30b
VS
32CLIENT_OBJECTS = \
33 $(OBJS)\client_client.obj
b17c1746 34SERVER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
9bfe7ad9
VS
35 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
36 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
37 -I.\..\..\samples $(CPPFLAGS) $(CXXFLAGS)
d179e30b
VS
38SERVER_OBJECTS = \
39 $(OBJS)\server_server.obj
250700e4
RD
40
41### Conditionally set variables: ###
42
43!if "$(USE_GUI)" == "0"
44PORTNAME = base
45!endif
46!if "$(USE_GUI)" == "1"
47PORTNAME = msw
48!endif
076f10e0
VS
49!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
50WXDEBUGFLAG = d
51!endif
52!if "$(DEBUG_FLAG)" == "1"
250700e4
RD
53WXDEBUGFLAG = d
54!endif
250700e4
RD
55!if "$(UNICODE)" == "1"
56WXUNICODEFLAG = u
57!endif
58!if "$(WXUNIV)" == "1"
59WXUNIVNAME = univ
60!endif
250700e4 61!if "$(SHARED)" == "1"
b17c1746 62WXDLLFLAG = dll
076f10e0 63!endif
250700e4 64!if "$(BUILD)" == "debug"
d179e30b 65__OPTIMIZEFLAG = -Od
250700e4
RD
66!endif
67!if "$(BUILD)" == "release"
d179e30b 68__OPTIMIZEFLAG = -O2
250700e4
RD
69!endif
70!if "$(RUNTIME_LIBS)" == "dynamic"
b17c1746 71__RUNTIME_LIBS = -tWR
250700e4
RD
72!endif
73!if "$(RUNTIME_LIBS)" == "static"
d179e30b 74__RUNTIME_LIBS =
250700e4
RD
75!endif
76!if "$(RUNTIME_LIBS)" == "dynamic"
b17c1746 77__RUNTIME_LIBS_0 = i
250700e4
RD
78!endif
79!if "$(RUNTIME_LIBS)" == "static"
d179e30b 80__RUNTIME_LIBS_0 =
250700e4 81!endif
b17c1746
DE
82!if "$(WXUNIV)" == "1"
83__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
84!endif
85!if "$(WXUNIV)" == "1"
86__WXUNIV_DEFINE_p_0 = -d__WXUNIVERSAL__
87!endif
88!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
89__DEBUG_DEFINE_p = -D__WXDEBUG__
90!endif
91!if "$(DEBUG_FLAG)" == "1"
92__DEBUG_DEFINE_p = -D__WXDEBUG__
93!endif
94!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
95__DEBUG_DEFINE_p_0 = -d__WXDEBUG__
96!endif
97!if "$(DEBUG_FLAG)" == "1"
98__DEBUG_DEFINE_p_0 = -d__WXDEBUG__
99!endif
250700e4 100!if "$(UNICODE)" == "1"
ec08d395 101__UNICODE_DEFINE_p = -D_UNICODE
250700e4
RD
102!endif
103!if "$(UNICODE)" == "1"
ec08d395 104__UNICODE_DEFINE_p_0 = -d_UNICODE
250700e4 105!endif
b17c1746
DE
106!if "$(SHARED)" == "0"
107LIBDIRNAME = .\..\..\lib\bcc_lib$(CFG)
4e209a20 108!endif
b17c1746
DE
109!if "$(SHARED)" == "1"
110LIBDIRNAME = .\..\..\lib\bcc_dll$(CFG)
111!endif
112!if "$(SHARED)" == "1"
113__DLLFLAG_p = -DWXUSINGDLL
114!endif
115!if "$(SHARED)" == "1"
116__DLLFLAG_p_0 = -dWXUSINGDLL
250700e4
RD
117!endif
118!if "$(MONOLITHIC)" == "0"
119__WXLIB_CORE_p = \
120 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
121!endif
b17c1746
DE
122!if "$(MONOLITHIC)" == "0"
123__WXLIB_NET_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net.lib
124!endif
125!if "$(MONOLITHIC)" == "0"
126__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
127!endif
250700e4
RD
128!if "$(MONOLITHIC)" == "1"
129__WXLIB_MONO_p = \
130 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
131!endif
b17c1746
DE
132!if "$(USE_GUI)" == "1"
133__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
d179e30b 134!endif
b17c1746
DE
135!if "$(USE_GUI)" == "1"
136__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
250700e4 137!endif
b17c1746
DE
138!if "$(USE_GUI)" == "1"
139__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
140!endif
141!if "$(MSLU)" == "1"
142__UNICOWS_LIB_p = unicows.lib
143!endif
144!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
145__DEBUGINFO = -v
146!endif
147!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
148__DEBUGINFO = -v-
149!endif
150!if "$(DEBUG_INFO)" == "0"
151__DEBUGINFO = -v-
152!endif
153!if "$(DEBUG_INFO)" == "1"
154__DEBUGINFO = -v
250700e4
RD
155!endif
156
157
158all: $(OBJS)
159$(OBJS):
160 -if not exist $(OBJS) mkdir $(OBJS)
161
162### Targets: ###
163
d179e30b
VS
164all: $(OBJS)\client.exe $(OBJS)\server.exe
165
250700e4
RD
166clean:
167 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
168 -if exist $(OBJS)\*.res del $(OBJS)\*.res
d179e30b 169 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
ec08d395
JS
170 -if exist $(OBJS)\client.tds del $(OBJS)\client.tds
171 -if exist $(OBJS)\client.ilc del $(OBJS)\client.ilc
172 -if exist $(OBJS)\client.ild del $(OBJS)\client.ild
173 -if exist $(OBJS)\client.ilf del $(OBJS)\client.ilf
174 -if exist $(OBJS)\client.ils del $(OBJS)\client.ils
d179e30b 175 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
ec08d395
JS
176 -if exist $(OBJS)\server.tds del $(OBJS)\server.tds
177 -if exist $(OBJS)\server.ilc del $(OBJS)\server.ilc
178 -if exist $(OBJS)\server.ild del $(OBJS)\server.ild
179 -if exist $(OBJS)\server.ilf del $(OBJS)\server.ilf
180 -if exist $(OBJS)\server.ils del $(OBJS)\server.ils
d179e30b
VS
181
182$(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample.res
9bfe7ad9 183 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
b92ca8cf 184 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 $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\client_sample.res
d179e30b 185|
250700e4 186
d179e30b 187$(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample.res
9bfe7ad9 188 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
b92ca8cf 189 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 $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\server_sample.res
250700e4 190|
b17c1746
DE
191
192$(OBJS)\client_sample.res: .\..\..\samples\sample.rc
193 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) -i.\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_0) -i.\..\..\samples $**
194
195$(OBJS)\client_client.obj: .\client.cpp
196 $(CXX) -q -c -P -o$@ $(CLIENT_CXXFLAGS) $**
197
198$(OBJS)\server_sample.res: .\..\..\samples\sample.rc
199 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) -i.\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_0) -i.\..\..\samples $**
200
201$(OBJS)\server_server.obj: .\server.cpp
202 $(CXX) -q -c -P -o$@ $(SERVER_CXXFLAGS) $**