]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/build/plot/makefile.bcc
Fixed compile error (seen on OS/2).
[wxWidgets.git] / contrib / build / plot / makefile.bcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7!ifndef BCCDIR
8BCCDIR = $(MAKEDIR)\..
9!endif
10
11!include ../../../build/msw/config.bcc
12
13# -------------------------------------------------------------------------
14# Do not modify the rest of this file!
15# -------------------------------------------------------------------------
16
17!if "$(BCCDIR)" == "\.."
18!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
19!endif
20
21### Variables: ###
22
23OBJS = \
24 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
25PLOTDLL_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
26 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
27 $(__UNICODE_DEFINE_p) -I..\..\src\plot\..\..\..\include -I$(SETUPHDIR) \
28 -I..\..\src\plot\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_PLOT $(CXXFLAGS) \
29 -Hu -H=$(OBJS)\wxprec_plotdll.csm
30PLOTDLL_OBJECTS = \
31 $(OBJS)\plotdll_dummy.obj \
32 $(OBJS)\plotdll_plot.obj
33PLOTLIB_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
34 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
35 $(__UNICODE_DEFINE_p) -I..\..\src\plot\..\..\..\include -I$(SETUPHDIR) \
36 -I..\..\src\plot\..\..\include $(CXXFLAGS) -Hu \
37 -H=$(OBJS)\wxprec_plotlib.csm
38PLOTLIB_OBJECTS = \
39 $(OBJS)\plotlib_dummy.obj \
40 $(OBJS)\plotlib_plot.obj
41SETUPHDIR = \
42 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
43
44### Conditionally set variables: ###
45
46!if "$(SHARED)" == "0"
47LIBDIRNAME = ..\..\src\plot\..\..\..\lib\bcc_lib$(CFG)
48!endif
49!if "$(SHARED)" == "1"
50LIBDIRNAME = ..\..\src\plot\..\..\..\lib\bcc_dll$(CFG)
51!endif
52!if "$(USE_GUI)" == "0"
53PORTNAME = base
54!endif
55!if "$(USE_GUI)" == "1"
56PORTNAME = msw
57!endif
58!if "$(OFFICIAL_BUILD)" == "0"
59VENDORTAG = _$(VENDOR)
60!endif
61!if "$(OFFICIAL_BUILD)" == "1"
62VENDORTAG =
63!endif
64!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
65WXDEBUGFLAG = d
66!endif
67!if "$(DEBUG_FLAG)" == "1"
68WXDEBUGFLAG = d
69!endif
70!if "$(SHARED)" == "1"
71WXDLLFLAG = dll
72!endif
73!if "$(UNICODE)" == "1"
74WXUNICODEFLAG = u
75!endif
76!if "$(WXUNIV)" == "1"
77WXUNIVNAME = univ
78!endif
79!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
80__DEBUGINFO = -v
81!endif
82!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
83__DEBUGINFO = -v-
84!endif
85!if "$(DEBUG_INFO)" == "0"
86__DEBUGINFO = -v-
87!endif
88!if "$(DEBUG_INFO)" == "1"
89__DEBUGINFO = -v
90!endif
91!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
92__DEBUG_DEFINE_p = -D__WXDEBUG__
93!endif
94!if "$(DEBUG_FLAG)" == "1"
95__DEBUG_DEFINE_p = -D__WXDEBUG__
96!endif
97!if "$(USE_GUI)" == "1"
98__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
99!endif
100!if "$(USE_GUI)" == "1"
101__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
102!endif
103!if "$(USE_GUI)" == "1"
104__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
105!endif
106!if "$(BUILD)" == "debug"
107__OPTIMIZEFLAG = -Od
108!endif
109!if "$(BUILD)" == "release"
110__OPTIMIZEFLAG = -O2
111!endif
112!if "$(RUNTIME_LIBS)" == "dynamic"
113__RUNTIME_LIBS = -tWR
114!endif
115!if "$(RUNTIME_LIBS)" == "static"
116__RUNTIME_LIBS =
117!endif
118!if "$(RUNTIME_LIBS)" == "dynamic"
119__RUNTIME_LIBS_7 = i
120!endif
121!if "$(RUNTIME_LIBS)" == "static"
122__RUNTIME_LIBS_7 =
123!endif
124!if "$(UNICODE)" == "1"
125__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
126!endif
127!if "$(MSLU)" == "1"
128__UNICOWS_LIB_p = unicows.lib
129!endif
130!if "$(MONOLITHIC)" == "0"
131__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
132!endif
133!if "$(MONOLITHIC)" == "0"
134__WXLIB_CORE_p = \
135 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
136!endif
137!if "$(MONOLITHIC)" == "1"
138__WXLIB_MONO_p = \
139 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
140!endif
141!if "$(WXUNIV)" == "1"
142__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
143!endif
144!if "$(SHARED)" == "1"
145__plotdll___depname = \
146 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_bcc$(VENDORTAG).dll
147!endif
148!if "$(SHARED)" == "0"
149__plotlib___depname = \
150 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib
151!endif
152
153
154all: $(OBJS)
155$(OBJS):
156 -if not exist $(OBJS) mkdir $(OBJS)
157
158### Targets: ###
159
160all: $(__plotdll___depname) $(__plotlib___depname)
161
162$(OBJS)\plotdll_dummy.obj: ../../src/plot\..\..\..\src\msw\dummy.cpp
163 $(CXX) -q -c -P -o$@ $(PLOTDLL_CXXFLAGS) -H $**
164
165$(OBJS)\plotdll_plot.obj: ../../src/plot\plot.cpp
166 $(CXX) -q -c -P -o$@ $(PLOTDLL_CXXFLAGS) $**
167
168$(OBJS)\plotlib_dummy.obj: ../../src/plot\..\..\..\src\msw\dummy.cpp
169 $(CXX) -q -c -P -o$@ $(PLOTLIB_CXXFLAGS) -H $**
170
171$(OBJS)\plotlib_plot.obj: ../../src/plot\plot.cpp
172 $(CXX) -q -c -P -o$@ $(PLOTLIB_CXXFLAGS) $**
173
174clean:
175 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
176 -if exist $(OBJS)\*.res del $(OBJS)\*.res
177 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_bcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_bcc$(VENDORTAG).dll
178 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib
179 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib
180
181!if "$(SHARED)" == "1"
182$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_bcc$(VENDORTAG).dll: $(OBJS)\plotdll_dummy.obj $(PLOTDLL_OBJECTS)
183 ilink32 -Tpd -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
184 c0d32.obj $(PLOTDLL_OBJECTS),$@,, $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) import32.lib ole2w32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,,
185|
186 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot $@
187!endif
188
189!if "$(SHARED)" == "0"
190$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib: $(OBJS)\plotlib_dummy.obj $(PLOTLIB_OBJECTS)
191 if exist $@ del $@
192 tlib /a /p2048 $@ @&&|
193 $(PLOTLIB_OBJECTS)
194|
195!endif