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