]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/plot/makefile.bcc
comment out test code
[wxWidgets.git] / contrib / build / plot / makefile.bcc
CommitLineData
15e8daec
VS
1# =========================================================================
2# This makefile was generated by
25bb1412 3# Bakefile 0.2.1 (http://bakefile.sourceforge.net)
15e8daec
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
9bfe7ad9
VS
7.autodepend
8
15e8daec 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
15e8daec
VS
13BCCDIR = $(MAKEDIR)\..
14!endif
15
fd9f42b6 16!include ../../../build/msw/config.bcc
15e8daec
VS
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
15e8daec
VS
22### Variables: ###
23
25bb1412 24WX_RELEASE_NODOT = 28
15e8daec
VS
25OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 27LIBDIRNAME = ..\..\src\plot\..\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
28SETUPHDIR = \
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9 30PLOTDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
8c9f8f91
JS
31 $(__OPTIMIZEFLAG) $(__THREADSFLAG) -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 34 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I..\..\src\plot\..\..\..\include \
9bfe7ad9
VS
35 -I..\..\src\plot\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_PLOT -Hu \
36 -H=$(OBJS)\wxprec_plotdll.csm $(CPPFLAGS) $(CXXFLAGS)
15e8daec
VS
37PLOTDLL_OBJECTS = \
38 $(OBJS)\plotdll_dummy.obj \
39 $(OBJS)\plotdll_plot.obj
9bfe7ad9 40PLOTLIB_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
8c9f8f91
JS
41 $(__OPTIMIZEFLAG) $(__THREADSFLAG) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
42 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 43 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424 44 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I..\..\src\plot\..\..\..\include \
9bfe7ad9
VS
45 -I..\..\src\plot\..\..\include -Hu -H=$(OBJS)\wxprec_plotlib.csm \
46 $(CPPFLAGS) $(CXXFLAGS)
15e8daec
VS
47PLOTLIB_OBJECTS = \
48 $(OBJS)\plotlib_dummy.obj \
49 $(OBJS)\plotlib_plot.obj
50
51### Conditionally set variables: ###
52
53!if "$(USE_GUI)" == "0"
54PORTNAME = base
55!endif
56!if "$(USE_GUI)" == "1"
57PORTNAME = msw
58!endif
59!if "$(OFFICIAL_BUILD)" == "0"
60VENDORTAG = _$(VENDOR)
61!endif
62!if "$(OFFICIAL_BUILD)" == "1"
63VENDORTAG =
64!endif
65!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
66WXDEBUGFLAG = d
67!endif
68!if "$(DEBUG_FLAG)" == "1"
69WXDEBUGFLAG = d
70!endif
15e8daec
VS
71!if "$(UNICODE)" == "1"
72WXUNICODEFLAG = u
73!endif
74!if "$(WXUNIV)" == "1"
75WXUNIVNAME = univ
76!endif
b17c1746
DE
77!if "$(SHARED)" == "1"
78WXDLLFLAG = dll
15e8daec 79!endif
b14abf14
JS
80!if "$(SHARED)" == "0"
81LIBTYPE_SUFFIX = lib
82!endif
83!if "$(SHARED)" == "1"
84LIBTYPE_SUFFIX = dll
85!endif
dd65d8c8
RN
86!if "$(MONOLITHIC)" == "0"
87EXTRALIBS_FOR_BASE =
88!endif
89!if "$(MONOLITHIC)" == "1"
90EXTRALIBS_FOR_BASE =
91!endif
b17c1746
DE
92!if "$(SHARED)" == "1"
93__plotdll___depname = \
25bb1412 94 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_bcc$(VENDORTAG).dll
15e8daec 95!endif
8c9f8f91
JS
96!if "$(USE_THREADS)" == "0"
97__THREADSFLAG_6 =
98!endif
99!if "$(USE_THREADS)" == "1"
100__THREADSFLAG_6 = mt
101!endif
b17c1746 102!if "$(RUNTIME_LIBS)" == "dynamic"
8c9f8f91 103__RUNTIME_LIBS_9 = i
15e8daec 104!endif
b17c1746 105!if "$(RUNTIME_LIBS)" == "static"
8c9f8f91
JS
106__RUNTIME_LIBS_9 =
107!endif
108!if "$(WXUNIV)" == "1"
109__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
110!endif
111!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
112__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
113!endif
114!if "$(DEBUG_FLAG)" == "1"
115__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
116!endif
117!if "$(USE_EXCEPTIONS)" == "0"
118__EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
119!endif
120!if "$(USE_RTTI)" == "0"
121__RTTI_DEFINE_p_1 = -dwxNO_RTTI
122!endif
123!if "$(USE_THREADS)" == "0"
124__THREAD_DEFINE_p_1 = -dwxNO_THREADS
125!endif
126!if "$(UNICODE)" == "1"
127__UNICODE_DEFINE_p_1 = -d_UNICODE
15e8daec 128!endif
2113bc77
MW
129!if "$(MSLU)" == "1"
130__MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
131!endif
3abcf424
RD
132!if "$(USE_GDIPLUS)" == "1"
133__GFXCTX_DEFINE_p_1 = -dwxUSE_GRAPHICS_CONTEXT=1
134!endif
b17c1746
DE
135!if "$(MONOLITHIC)" == "1"
136__WXLIB_MONO_p = \
c33fae85 137 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
15e8daec 138!endif
b17c1746 139!if "$(USE_GUI)" == "1"
9c2d002b 140__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
15e8daec
VS
141!endif
142!if "$(USE_GUI)" == "1"
9c2d002b 143__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
15e8daec
VS
144!endif
145!if "$(USE_GUI)" == "1"
9c2d002b 146__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
15e8daec 147!endif
b17c1746
DE
148!if "$(MSLU)" == "1"
149__UNICOWS_LIB_p = unicows.lib
150!endif
3abcf424
RD
151!if "$(USE_GDIPLUS)" == "1"
152__GDIPLUS_LIB_p = gdiplus.lib
153!endif
b17c1746
DE
154!if "$(MONOLITHIC)" == "0"
155__WXLIB_CORE_p = \
c33fae85 156 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
b17c1746
DE
157!endif
158!if "$(MONOLITHIC)" == "0"
c33fae85
RN
159__WXLIB_BASE_p = \
160 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746
DE
161!endif
162!if "$(SHARED)" == "0"
163__plotlib___depname = \
c33fae85 164 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.lib
b17c1746
DE
165!endif
166!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
167__DEBUGINFO = -v
168!endif
169!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
170__DEBUGINFO = -v-
171!endif
172!if "$(DEBUG_INFO)" == "0"
173__DEBUGINFO = -v-
174!endif
175!if "$(DEBUG_INFO)" == "1"
176__DEBUGINFO = -v
15e8daec
VS
177!endif
178!if "$(BUILD)" == "debug"
179__OPTIMIZEFLAG = -Od
180!endif
181!if "$(BUILD)" == "release"
182__OPTIMIZEFLAG = -O2
183!endif
8c9f8f91
JS
184!if "$(USE_THREADS)" == "0"
185__THREADSFLAG =
186!endif
187!if "$(USE_THREADS)" == "1"
188__THREADSFLAG = -tWM
189!endif
15e8daec
VS
190!if "$(RUNTIME_LIBS)" == "dynamic"
191__RUNTIME_LIBS = -tWR
192!endif
193!if "$(RUNTIME_LIBS)" == "static"
194__RUNTIME_LIBS =
195!endif
b17c1746
DE
196!if "$(WXUNIV)" == "1"
197__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
15e8daec 198!endif
b17c1746
DE
199!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
200__DEBUG_DEFINE_p = -D__WXDEBUG__
201!endif
202!if "$(DEBUG_FLAG)" == "1"
203__DEBUG_DEFINE_p = -D__WXDEBUG__
15e8daec 204!endif
8c9f8f91
JS
205!if "$(USE_EXCEPTIONS)" == "0"
206__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
207!endif
208!if "$(USE_RTTI)" == "0"
209__RTTI_DEFINE_p = -DwxNO_RTTI
210!endif
211!if "$(USE_THREADS)" == "0"
212__THREAD_DEFINE_p = -DwxNO_THREADS
213!endif
15e8daec 214!if "$(UNICODE)" == "1"
ec08d395 215__UNICODE_DEFINE_p = -D_UNICODE
15e8daec 216!endif
2113bc77
MW
217!if "$(MSLU)" == "1"
218__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
219!endif
3abcf424
RD
220!if "$(USE_GDIPLUS)" == "1"
221__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
222!endif
15e8daec
VS
223
224
225all: $(OBJS)
226$(OBJS):
227 -if not exist $(OBJS) mkdir $(OBJS)
228
229### Targets: ###
230
231all: $(__plotdll___depname) $(__plotlib___depname)
232
15e8daec
VS
233clean:
234 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
235 -if exist $(OBJS)\*.res del $(OBJS)\*.res
b14abf14 236 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
25bb1412
RD
237 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_bcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_bcc$(VENDORTAG).dll
238 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_bcc$(VENDORTAG).tds del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_bcc$(VENDORTAG).tds
239 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_bcc$(VENDORTAG).ilc del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_bcc$(VENDORTAG).ilc
240 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_bcc$(VENDORTAG).ild del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_bcc$(VENDORTAG).ild
241 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_bcc$(VENDORTAG).ilf del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_bcc$(VENDORTAG).ilf
242 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_bcc$(VENDORTAG).ils del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_bcc$(VENDORTAG).ils
c33fae85
RN
243 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.lib
244 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.lib
15e8daec
VS
245
246!if "$(SHARED)" == "1"
25bb1412 247$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_bcc$(VENDORTAG).dll: $(OBJS)\plotdll_dummy.obj $(PLOTDLL_OBJECTS) $(OBJS)\plotdll_version.res
9bfe7ad9 248 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
3abcf424 249 c0d32.obj $(PLOTDLL_OBJECTS),$@,, $(__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 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) import32.lib cw32$(__THREADSFLAG_6)$(__RUNTIME_LIBS_9).lib,, $(OBJS)\plotdll_version.res
15e8daec 250|
c33fae85 251 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot $@
15e8daec
VS
252!endif
253
254!if "$(SHARED)" == "0"
c33fae85 255$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.lib: $(OBJS)\plotlib_dummy.obj $(PLOTLIB_OBJECTS)
15e8daec 256 if exist $@ del $@
9bfe7ad9 257 tlib /a /p4096 $@ @&&|
15e8daec
VS
258 $(PLOTLIB_OBJECTS)
259|
260!endif
b17c1746 261
66b9f7f7 262$(OBJS)\plotdll_dummy.obj: ../../src/plot\..\..\..\src\common\dummy.cpp
b17c1746
DE
263 $(CXX) -q -c -P -o$@ $(PLOTDLL_CXXFLAGS) -H $**
264
102d46f3 265$(OBJS)\plotdll_version.res: ../../src/plot\..\..\..\src\msw\version.rc
25bb1412 266 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..\..\src\plot\..\..\..\include -dWXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_bcc$(VENDORTAG) $**
8c9f8f91 267
b17c1746
DE
268$(OBJS)\plotdll_plot.obj: ../../src/plot\plot.cpp
269 $(CXX) -q -c -P -o$@ $(PLOTDLL_CXXFLAGS) $**
270
66b9f7f7 271$(OBJS)\plotlib_dummy.obj: ../../src/plot\..\..\..\src\common\dummy.cpp
b17c1746
DE
272 $(CXX) -q -c -P -o$@ $(PLOTLIB_CXXFLAGS) -H $**
273
274$(OBJS)\plotlib_plot.obj: ../../src/plot\plot.cpp
275 $(CXX) -q -c -P -o$@ $(PLOTLIB_CXXFLAGS) $**
b14abf14 276