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