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