]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.bcc
Removed very out of date files in docs/msw
[wxWidgets.git] / samples / render / makefile.bcc
CommitLineData
2d611b5c
VS
1# =========================================================================
2# This makefile was generated by
8c9f8f91 3# Bakefile 0.1.8 (http://bakefile.sourceforge.net)
2d611b5c
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
9bfe7ad9
VS
7.autodepend
8
2d611b5c 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
2d611b5c
VS
13BCCDIR = $(MAKEDIR)\..
14!endif
15
16!include ../../build/msw/config.bcc
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
2d611b5c
VS
22### Variables: ###
23
c33fae85 24WX_RELEASE_NODOT = 25
8c9f8f91 25WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5
2d611b5c
VS
26OBJS = \
27 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 28LIBDIRNAME = .\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
29SETUPHDIR = \
30 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
31RENDER_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) \
34 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
35 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
2d611b5c
VS
36RENDER_OBJECTS = \
37 $(OBJS)\render_render.obj
b17c1746 38RENDDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
8c9f8f91
JS
39 $(__OPTIMIZEFLAG) $(__THREADSFLAG_0) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
40 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
41 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
42 -DWXUSINGDLL $(CPPFLAGS) $(CXXFLAGS)
b17c1746
DE
43RENDDLL_OBJECTS = \
44 $(OBJS)\renddll_renddll.obj
2d611b5c
VS
45
46### Conditionally set variables: ###
47
48!if "$(USE_GUI)" == "0"
49PORTNAME = base
50!endif
51!if "$(USE_GUI)" == "1"
52PORTNAME = msw
53!endif
54!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
55WXDEBUGFLAG = d
56!endif
57!if "$(DEBUG_FLAG)" == "1"
58WXDEBUGFLAG = d
59!endif
2d611b5c
VS
60!if "$(UNICODE)" == "1"
61WXUNICODEFLAG = u
62!endif
63!if "$(WXUNIV)" == "1"
64WXUNIVNAME = univ
65!endif
b17c1746
DE
66!if "$(SHARED)" == "1"
67WXDLLFLAG = dll
2d611b5c 68!endif
b14abf14
JS
69!if "$(SHARED)" == "0"
70LIBTYPE_SUFFIX = lib
71!endif
72!if "$(SHARED)" == "1"
73LIBTYPE_SUFFIX = dll
74!endif
dd65d8c8
RN
75!if "$(MONOLITHIC)" == "0"
76EXTRALIBS_FOR_BASE =
77!endif
78!if "$(MONOLITHIC)" == "1"
79EXTRALIBS_FOR_BASE =
80!endif
078c7a59 81!if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
314a6446 82PLUGINSUFFIX = d
078c7a59
VS
83!endif
84!if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
314a6446 85PLUGINSUFFIX = ud
078c7a59
VS
86!endif
87!if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
88PLUGINSUFFIX =
89!endif
90!if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
314a6446 91PLUGINSUFFIX = u
078c7a59 92!endif
b17c1746
DE
93!if "$(WXUNIV)" == "1"
94__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
2d611b5c
VS
95!endif
96!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
97__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
98!endif
99!if "$(DEBUG_FLAG)" == "1"
100__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
101!endif
8c9f8f91
JS
102!if "$(USE_EXCEPTIONS)" == "0"
103__EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
104!endif
105!if "$(USE_RTTI)" == "0"
106__RTTI_DEFINE_p_1 = -dwxNO_RTTI
107!endif
108!if "$(USE_THREADS)" == "0"
109__THREAD_DEFINE_p_1 = -dwxNO_THREADS
110!endif
b17c1746
DE
111!if "$(UNICODE)" == "1"
112__UNICODE_DEFINE_p_1 = -d_UNICODE
113!endif
2d611b5c
VS
114!if "$(SHARED)" == "1"
115__DLLFLAG_p = -DWXUSINGDLL
116!endif
117!if "$(SHARED)" == "1"
118__DLLFLAG_p_1 = -dWXUSINGDLL
119!endif
b17c1746
DE
120!if "$(SHARED)" == "1"
121__renddll___depname = \
c33fae85 122 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll
2d611b5c
VS
123!endif
124!if "$(BUILD)" == "debug"
125__OPTIMIZEFLAG = -Od
126!endif
127!if "$(BUILD)" == "release"
128__OPTIMIZEFLAG = -O2
129!endif
8c9f8f91
JS
130!if "$(USE_THREADS)" == "0"
131__THREADSFLAG =
132!endif
133!if "$(USE_THREADS)" == "1"
134__THREADSFLAG = mt
135!endif
136!if "$(USE_THREADS)" == "0"
137__THREADSFLAG_0 =
138!endif
139!if "$(USE_THREADS)" == "1"
140__THREADSFLAG_0 = -tWM
141!endif
2d611b5c 142!if "$(RUNTIME_LIBS)" == "dynamic"
b17c1746 143__RUNTIME_LIBS = -tWR
2d611b5c
VS
144!endif
145!if "$(RUNTIME_LIBS)" == "static"
146__RUNTIME_LIBS =
147!endif
148!if "$(RUNTIME_LIBS)" == "dynamic"
b17c1746 149__RUNTIME_LIBS_0 = i
2d611b5c
VS
150!endif
151!if "$(RUNTIME_LIBS)" == "static"
152__RUNTIME_LIBS_0 =
153!endif
b17c1746
DE
154!if "$(WXUNIV)" == "1"
155__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
156!endif
157!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
158__DEBUG_DEFINE_p = -D__WXDEBUG__
159!endif
160!if "$(DEBUG_FLAG)" == "1"
161__DEBUG_DEFINE_p = -D__WXDEBUG__
2d611b5c 162!endif
8c9f8f91
JS
163!if "$(USE_EXCEPTIONS)" == "0"
164__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
165!endif
166!if "$(USE_RTTI)" == "0"
167__RTTI_DEFINE_p = -DwxNO_RTTI
168!endif
169!if "$(USE_THREADS)" == "0"
170__THREAD_DEFINE_p = -DwxNO_THREADS
171!endif
2d611b5c 172!if "$(UNICODE)" == "1"
b17c1746 173__UNICODE_DEFINE_p = -D_UNICODE
2d611b5c 174!endif
2d611b5c
VS
175!if "$(MONOLITHIC)" == "0"
176__WXLIB_CORE_p = \
c33fae85 177 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
2d611b5c 178!endif
b17c1746 179!if "$(MONOLITHIC)" == "0"
c33fae85
RN
180__WXLIB_BASE_p = \
181 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746 182!endif
2d611b5c
VS
183!if "$(MONOLITHIC)" == "1"
184__WXLIB_MONO_p = \
c33fae85 185 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
2d611b5c 186!endif
b17c1746 187!if "$(USE_GUI)" == "1"
9c2d002b 188__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
2d611b5c 189!endif
b17c1746 190!if "$(USE_GUI)" == "1"
9c2d002b 191__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
2d611b5c 192!endif
b17c1746 193!if "$(USE_GUI)" == "1"
9c2d002b 194__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
b17c1746
DE
195!endif
196!if "$(MSLU)" == "1"
197__UNICOWS_LIB_p = unicows.lib
198!endif
199!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
200__DEBUGINFO = -v
201!endif
202!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
203__DEBUGINFO = -v-
204!endif
205!if "$(DEBUG_INFO)" == "0"
206__DEBUGINFO = -v-
207!endif
208!if "$(DEBUG_INFO)" == "1"
209__DEBUGINFO = -v
2d611b5c
VS
210!endif
211
2d611b5c
VS
212
213all: $(OBJS)
214$(OBJS):
215 -if not exist $(OBJS) mkdir $(OBJS)
216
217### Targets: ###
218
219all: $(OBJS)\render.exe $(__renddll___depname)
220
2d611b5c
VS
221clean:
222 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
223 -if exist $(OBJS)\*.res del $(OBJS)\*.res
b14abf14 224 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
2d611b5c 225 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
ec08d395
JS
226 -if exist $(OBJS)\render.tds del $(OBJS)\render.tds
227 -if exist $(OBJS)\render.ilc del $(OBJS)\render.ilc
228 -if exist $(OBJS)\render.ild del $(OBJS)\render.ild
229 -if exist $(OBJS)\render.ilf del $(OBJS)\render.ilf
230 -if exist $(OBJS)\render.ils del $(OBJS)\render.ils
c33fae85
RN
231 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll
232 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.tds del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.tds
233 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilc del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilc
234 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ild del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ild
235 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilf del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilf
236 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ils del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ils
2d611b5c 237
b17c1746
DE
238$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
239 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
8c9f8f91 240 c0w32.obj $(RENDER_OBJECTS),$@,, $(__WXLIB_CORE_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 cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,, $(OBJS)\render_sample.res
b17c1746
DE
241|
242
2d611b5c 243!if "$(SHARED)" == "1"
c33fae85 244$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll: $(RENDDLL_OBJECTS)
9bfe7ad9 245 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
8c9f8f91 246 c0d32.obj $(RENDDLL_OBJECTS),$@,, $(__WXLIB_CORE_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 cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_0).lib,,
2d611b5c
VS
247|
248!endif
249
b17c1746 250$(OBJS)\render_sample.res: .\..\..\samples\sample.rc
8c9f8f91 251 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) -i.\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_1) -i.\..\..\samples $**
b17c1746
DE
252
253$(OBJS)\render_render.obj: .\render.cpp
254 $(CXX) -q -c -P -o$@ $(RENDER_CXXFLAGS) $**
255
256$(OBJS)\renddll_renddll.obj: .\renddll.cpp
257 $(CXX) -q -c -P -o$@ $(RENDDLL_CXXFLAGS) $**
b14abf14 258