]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/plot/makefile.bcc
fixed Common Headers group for VC++ definition
[wxWidgets.git] / contrib / build / plot / makefile.bcc
CommitLineData
15e8daec
VS
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
fd9f42b6 11!include ../../../build/msw/config.bcc
15e8daec
VS
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
23LIBDIRNAME = \
24 ..\..\src\plot\..\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
25OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27PLOTDLL_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
28 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
29 $(__UNICODE_DEFINE_p) -I..\..\src\plot\..\..\..\include -I$(LIBDIRNAME) \
30 -I..\..\src\plot\..\..\..\src\tiff -I..\..\src\plot\..\..\..\src\jpeg \
31 -I..\..\src\plot\..\..\..\src\png -I..\..\src\plot\..\..\..\src\zlib \
32 -I..\..\src\plot\..\..\..\src\regex \
33 -I..\..\src\plot\..\..\..\src\expat\lib -I..\..\src\plot\..\..\include \
34 -DWXUSINGDLL -DWXMAKINGDLL_PLOT $(CXXFLAGS) -Hu \
35 -H=$(OBJS)\wxprec_plotdll.csm
36PLOTDLL_OBJECTS = \
37 $(OBJS)\plotdll_dummy.obj \
38 $(OBJS)\plotdll_plot.obj
39PLOTLIB_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
40 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
41 $(__UNICODE_DEFINE_p) -I..\..\src\plot\..\..\..\include -I$(LIBDIRNAME) \
42 -I..\..\src\plot\..\..\..\src\tiff -I..\..\src\plot\..\..\..\src\jpeg \
43 -I..\..\src\plot\..\..\..\src\png -I..\..\src\plot\..\..\..\src\zlib \
44 -I..\..\src\plot\..\..\..\src\regex \
45 -I..\..\src\plot\..\..\..\src\expat\lib -I..\..\src\plot\..\..\include \
46 $(CXXFLAGS) -Hu -H=$(OBJS)\wxprec_plotlib.csm
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
71!if "$(SHARED)" == "1"
72WXDLLFLAG = dll
73!endif
74!if "$(UNICODE)" == "1"
75WXUNICODEFLAG = u
76!endif
77!if "$(WXUNIV)" == "1"
78WXUNIVNAME = univ
79!endif
80!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
81__DEBUGINFO = -v
82!endif
83!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
84__DEBUGINFO = -v-
85!endif
86!if "$(DEBUG_INFO)" == "0"
87__DEBUGINFO = -v-
88!endif
89!if "$(DEBUG_INFO)" == "1"
90__DEBUGINFO = -v
91!endif
92!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
93__DEBUG_DEFINE_p = -D__WXDEBUG__
94!endif
95!if "$(DEBUG_FLAG)" == "1"
96__DEBUG_DEFINE_p = -D__WXDEBUG__
97!endif
98!if "$(USE_GUI)" == "1"
99__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
100!endif
101!if "$(USE_GUI)" == "1"
102__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
103!endif
104!if "$(USE_GUI)" == "1"
105__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
106!endif
107!if "$(BUILD)" == "debug"
108__OPTIMIZEFLAG = -Od
109!endif
110!if "$(BUILD)" == "release"
111__OPTIMIZEFLAG = -O2
112!endif
113!if "$(RUNTIME_LIBS)" == "dynamic"
114__RUNTIME_LIBS = -tWR
115!endif
116!if "$(RUNTIME_LIBS)" == "static"
117__RUNTIME_LIBS =
118!endif
119!if "$(RUNTIME_LIBS)" == "dynamic"
120__RUNTIME_LIBS_7 = i
121!endif
122!if "$(RUNTIME_LIBS)" == "static"
123__RUNTIME_LIBS_7 =
124!endif
125!if "$(UNICODE)" == "1"
126__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
127!endif
128!if "$(MONOLITHIC)" == "0"
129__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
130!endif
131!if "$(MONOLITHIC)" == "0"
132__WXLIB_CORE_p = \
133 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
134!endif
135!if "$(MONOLITHIC)" == "1"
136__WXLIB_MONO_p = \
137 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
138!endif
139!if "$(WXUNIV)" == "1"
140__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
141!endif
142!if "$(SHARED)" == "1"
143__plotdll___depname = \
144 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_bcc$(VENDORTAG).dll
145!endif
146!if "$(SHARED)" == "0"
147__plotlib___depname = \
148 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib
149!endif
150
fd9f42b6
VS
151MAKEARGS = -DBUILD=$(BUILD) -DCFG=$(CFG) -DCPPFLAGS=$(CPPFLAGS) -DCXX=$(CXX) -DCXXFLAGS=$(CXXFLAGS) -DDEBUG_FLAG=$(DEBUG_FLAG) -DDEBUG_INFO=$(DEBUG_INFO) -DLDFLAGS=$(LDFLAGS) -DMONOLITHIC=$(MONOLITHIC) -DOFFICIAL_BUILD=$(OFFICIAL_BUILD) -DRUNTIME_LIBS=$(RUNTIME_LIBS) -DSHARED=$(SHARED) -DUNICODE=$(UNICODE) -DUSE_GUI=$(USE_GUI) -DVENDOR=$(VENDOR) -DWXUNIV=$(WXUNIV)
152
15e8daec
VS
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: $(PLOTDLL_OBJECTS) $(OBJS)\plotdll_dummy.obj
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 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: $(PLOTLIB_OBJECTS) $(OBJS)\plotlib_dummy.obj
191 if exist $@ del $@
192 tlib /a /p2048 $@ @&&|
193 $(PLOTLIB_OBJECTS)
194|
195!endif