]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.bcc
check default library directories in WX_PATH_FIND_LIBRARIES; do *not* add default...
[wxWidgets.git] / samples / render / makefile.bcc
CommitLineData
2d611b5c
VS
1# =========================================================================
2# This makefile was generated by
0d90d6ea 3# Bakefile 0.1.9 (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) \
2113bc77
MW
33 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
34 -I.\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH \
35 $(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) \
2113bc77
MW
41 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
42 -I.\..\..\include -I$(SETUPHDIR) -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
2113bc77
MW
114!if "$(MSLU)" == "1"
115__MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
116!endif
2d611b5c
VS
117!if "$(SHARED)" == "1"
118__DLLFLAG_p = -DWXUSINGDLL
119!endif
120!if "$(SHARED)" == "1"
121__DLLFLAG_p_1 = -dWXUSINGDLL
122!endif
b17c1746
DE
123!if "$(SHARED)" == "1"
124__renddll___depname = \
4818141b 125 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.dll
2d611b5c
VS
126!endif
127!if "$(BUILD)" == "debug"
128__OPTIMIZEFLAG = -Od
129!endif
130!if "$(BUILD)" == "release"
131__OPTIMIZEFLAG = -O2
132!endif
8c9f8f91
JS
133!if "$(USE_THREADS)" == "0"
134__THREADSFLAG =
135!endif
136!if "$(USE_THREADS)" == "1"
137__THREADSFLAG = mt
138!endif
139!if "$(USE_THREADS)" == "0"
140__THREADSFLAG_0 =
141!endif
142!if "$(USE_THREADS)" == "1"
143__THREADSFLAG_0 = -tWM
144!endif
2d611b5c 145!if "$(RUNTIME_LIBS)" == "dynamic"
b17c1746 146__RUNTIME_LIBS = -tWR
2d611b5c
VS
147!endif
148!if "$(RUNTIME_LIBS)" == "static"
149__RUNTIME_LIBS =
150!endif
151!if "$(RUNTIME_LIBS)" == "dynamic"
b17c1746 152__RUNTIME_LIBS_0 = i
2d611b5c
VS
153!endif
154!if "$(RUNTIME_LIBS)" == "static"
155__RUNTIME_LIBS_0 =
156!endif
b17c1746
DE
157!if "$(WXUNIV)" == "1"
158__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
159!endif
160!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
161__DEBUG_DEFINE_p = -D__WXDEBUG__
162!endif
163!if "$(DEBUG_FLAG)" == "1"
164__DEBUG_DEFINE_p = -D__WXDEBUG__
2d611b5c 165!endif
8c9f8f91
JS
166!if "$(USE_EXCEPTIONS)" == "0"
167__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
168!endif
169!if "$(USE_RTTI)" == "0"
170__RTTI_DEFINE_p = -DwxNO_RTTI
171!endif
172!if "$(USE_THREADS)" == "0"
173__THREAD_DEFINE_p = -DwxNO_THREADS
174!endif
2d611b5c 175!if "$(UNICODE)" == "1"
b17c1746 176__UNICODE_DEFINE_p = -D_UNICODE
2d611b5c 177!endif
2113bc77
MW
178!if "$(MSLU)" == "1"
179__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
180!endif
2d611b5c
VS
181!if "$(MONOLITHIC)" == "0"
182__WXLIB_CORE_p = \
c33fae85 183 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
2d611b5c 184!endif
b17c1746 185!if "$(MONOLITHIC)" == "0"
c33fae85
RN
186__WXLIB_BASE_p = \
187 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746 188!endif
2d611b5c
VS
189!if "$(MONOLITHIC)" == "1"
190__WXLIB_MONO_p = \
c33fae85 191 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
2d611b5c 192!endif
b17c1746 193!if "$(USE_GUI)" == "1"
9c2d002b 194__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
2d611b5c 195!endif
b17c1746 196!if "$(USE_GUI)" == "1"
9c2d002b 197__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
2d611b5c 198!endif
b17c1746 199!if "$(USE_GUI)" == "1"
9c2d002b 200__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
b17c1746
DE
201!endif
202!if "$(MSLU)" == "1"
203__UNICOWS_LIB_p = unicows.lib
204!endif
205!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
206__DEBUGINFO = -v
207!endif
208!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
209__DEBUGINFO = -v-
210!endif
211!if "$(DEBUG_INFO)" == "0"
212__DEBUGINFO = -v-
213!endif
214!if "$(DEBUG_INFO)" == "1"
215__DEBUGINFO = -v
2d611b5c
VS
216!endif
217
2d611b5c
VS
218
219all: $(OBJS)
220$(OBJS):
221 -if not exist $(OBJS) mkdir $(OBJS)
222
223### Targets: ###
224
225all: $(OBJS)\render.exe $(__renddll___depname)
226
2d611b5c
VS
227clean:
228 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
229 -if exist $(OBJS)\*.res del $(OBJS)\*.res
b14abf14 230 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
2d611b5c 231 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
ec08d395
JS
232 -if exist $(OBJS)\render.tds del $(OBJS)\render.tds
233 -if exist $(OBJS)\render.ilc del $(OBJS)\render.ilc
234 -if exist $(OBJS)\render.ild del $(OBJS)\render.ild
235 -if exist $(OBJS)\render.ilf del $(OBJS)\render.ilf
236 -if exist $(OBJS)\render.ils del $(OBJS)\render.ils
4818141b
JS
237 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.dll
238 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.tds del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.tds
239 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.ilc del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.ilc
240 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.ild del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.ild
241 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.ilf del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.ilf
242 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.ils del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.ils
2d611b5c 243
b17c1746
DE
244$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
245 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
8c9f8f91 246 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
247|
248
2d611b5c 249!if "$(SHARED)" == "1"
4818141b 250$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_bcc.dll: $(RENDDLL_OBJECTS)
9bfe7ad9 251 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
8c9f8f91 252 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
253|
254!endif
255
b17c1746 256$(OBJS)\render_sample.res: .\..\..\samples\sample.rc
2113bc77 257 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) $(__MSLU_DEFINE_p_1) -i.\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_1) -i.\..\..\samples $**
b17c1746
DE
258
259$(OBJS)\render_render.obj: .\render.cpp
260 $(CXX) -q -c -P -o$@ $(RENDER_CXXFLAGS) $**
261
262$(OBJS)\renddll_renddll.obj: .\renddll.cpp
263 $(CXX) -q -c -P -o$@ $(RENDDLL_CXXFLAGS) $**
b14abf14 264