]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/plot/makefile.bcc
ported rest of contrib to bakefile
[wxWidgets.git] / contrib / build / plot / makefile.bcc
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
8 BCCDIR = $(MAKEDIR)\..
9 !endif
10
11 !include ../../../build/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
23 LIBDIRNAME = \
24 ..\..\src\plot\..\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
25 OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 PLOTDLL_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
36 PLOTDLL_OBJECTS = \
37 $(OBJS)\plotdll_dummy.obj \
38 $(OBJS)\plotdll_plot.obj
39 PLOTLIB_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
47 PLOTLIB_OBJECTS = \
48 $(OBJS)\plotlib_dummy.obj \
49 $(OBJS)\plotlib_plot.obj
50
51 ### Conditionally set variables: ###
52
53 !if "$(USE_GUI)" == "0"
54 PORTNAME = base
55 !endif
56 !if "$(USE_GUI)" == "1"
57 PORTNAME = msw
58 !endif
59 !if "$(OFFICIAL_BUILD)" == "0"
60 VENDORTAG = _$(VENDOR)
61 !endif
62 !if "$(OFFICIAL_BUILD)" == "1"
63 VENDORTAG =
64 !endif
65 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
66 WXDEBUGFLAG = d
67 !endif
68 !if "$(DEBUG_FLAG)" == "1"
69 WXDEBUGFLAG = d
70 !endif
71 !if "$(SHARED)" == "1"
72 WXDLLFLAG = dll
73 !endif
74 !if "$(UNICODE)" == "1"
75 WXUNICODEFLAG = u
76 !endif
77 !if "$(WXUNIV)" == "1"
78 WXUNIVNAME = 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
151
152 all: $(OBJS)
153 $(OBJS):
154 -if not exist $(OBJS) mkdir $(OBJS)
155
156 ### Targets: ###
157
158 all: $(__plotdll___depname) $(__plotlib___depname)
159
160 $(OBJS)\plotdll_dummy.obj: ../../src/plot\..\..\..\src\msw\dummy.cpp
161 $(CXX) -q -c -P -o$@ $(PLOTDLL_CXXFLAGS) -H $**
162
163 $(OBJS)\plotdll_plot.obj: ../../src/plot\plot.cpp
164 $(CXX) -q -c -P -o$@ $(PLOTDLL_CXXFLAGS) $**
165
166 $(OBJS)\plotlib_dummy.obj: ../../src/plot\..\..\..\src\msw\dummy.cpp
167 $(CXX) -q -c -P -o$@ $(PLOTLIB_CXXFLAGS) -H $**
168
169 $(OBJS)\plotlib_plot.obj: ../../src/plot\plot.cpp
170 $(CXX) -q -c -P -o$@ $(PLOTLIB_CXXFLAGS) $**
171
172 clean:
173 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
174 -if exist $(OBJS)\*.res del $(OBJS)\*.res
175 -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
176 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib
177 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib
178
179 !if "$(SHARED)" == "1"
180 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_bcc$(VENDORTAG).dll: $(PLOTDLL_OBJECTS) $(OBJS)\plotdll_dummy.obj
181 ilink32 -Tpd -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
182 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,,
183 |
184 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot $@
185 !endif
186
187 !if "$(SHARED)" == "0"
188 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib: $(PLOTLIB_OBJECTS) $(OBJS)\plotlib_dummy.obj
189 if exist $@ del $@
190 tlib /a /p2048 $@ @&&|
191 $(PLOTLIB_OBJECTS)
192 |
193 !endif