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