]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/ipc/makefile.bcc
10.2 fixes
[wxWidgets.git] / samples / ipc / makefile.bcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7.autodepend
8
9!ifndef BCCDIR
10!ifndef MAKEDIR
11!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12!endif
13BCCDIR = $(MAKEDIR)\..
14!endif
15
16!include ../../build/msw/config.bcc
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
22### Variables: ###
23
24OBJS = \
25 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
26SETUPHDIR = \
27 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
28CLIENT_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
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)
32CLIENT_OBJECTS = \
33 $(OBJS)\client_client.obj
34SERVER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
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)
38SERVER_OBJECTS = \
39 $(OBJS)\server_server.obj
40
41### Conditionally set variables: ###
42
43!if "$(USE_GUI)" == "0"
44PORTNAME = base
45!endif
46!if "$(USE_GUI)" == "1"
47PORTNAME = msw
48!endif
49!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
50WXDEBUGFLAG = d
51!endif
52!if "$(DEBUG_FLAG)" == "1"
53WXDEBUGFLAG = d
54!endif
55!if "$(UNICODE)" == "1"
56WXUNICODEFLAG = u
57!endif
58!if "$(WXUNIV)" == "1"
59WXUNIVNAME = univ
60!endif
61!if "$(SHARED)" == "1"
62WXDLLFLAG = dll
63!endif
64!if "$(BUILD)" == "debug"
65__OPTIMIZEFLAG = -Od
66!endif
67!if "$(BUILD)" == "release"
68__OPTIMIZEFLAG = -O2
69!endif
70!if "$(RUNTIME_LIBS)" == "dynamic"
71__RUNTIME_LIBS = -tWR
72!endif
73!if "$(RUNTIME_LIBS)" == "static"
74__RUNTIME_LIBS =
75!endif
76!if "$(RUNTIME_LIBS)" == "dynamic"
77__RUNTIME_LIBS_0 = i
78!endif
79!if "$(RUNTIME_LIBS)" == "static"
80__RUNTIME_LIBS_0 =
81!endif
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
100!if "$(UNICODE)" == "1"
101__UNICODE_DEFINE_p = -D_UNICODE
102!endif
103!if "$(UNICODE)" == "1"
104__UNICODE_DEFINE_p_0 = -d_UNICODE
105!endif
106!if "$(SHARED)" == "0"
107LIBDIRNAME = .\..\..\lib\bcc_lib$(CFG)
108!endif
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
117!endif
118!if "$(MONOLITHIC)" == "0"
119__WXLIB_CORE_p = \
120 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
121!endif
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
128!if "$(MONOLITHIC)" == "1"
129__WXLIB_MONO_p = \
130 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
131!endif
132!if "$(USE_GUI)" == "1"
133__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
134!endif
135!if "$(USE_GUI)" == "1"
136__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
137!endif
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
155!endif
156
157
158all: $(OBJS)
159$(OBJS):
160 -if not exist $(OBJS) mkdir $(OBJS)
161
162### Targets: ###
163
164all: $(OBJS)\client.exe $(OBJS)\server.exe
165
166clean:
167 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
168 -if exist $(OBJS)\*.res del $(OBJS)\*.res
169 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
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
175 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
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
181
182$(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample.res
183 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
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
185|
186
187$(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample.res
188 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
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
190|
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) $**