]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/plot/makefile.vc
offset version by 1 to avoid having compatibility_version of 0.0.0 under Darwin:...
[wxWidgets.git] / contrib / build / plot / makefile.vc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.9 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 !include <../../../build/msw/config.vc>
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 WX_RELEASE_NODOT = 26
16 OBJS = \
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = ..\..\src\plot\..\..\..\lib\vc_$(LIBTYPE_SUFFIX)$(CFG)
19 SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 PLOTDLL_CXXFLAGS = /M$(__RUNTIME_LIBS_9)$(__DEBUGRUNTIME) /DWIN32 \
22 $(__DEBUGINFO_1) \
23 /Fd$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_vc$(VENDORTAG).pdb \
24 $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
25 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
26 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
27 $(__MSLU_DEFINE_p) /I..\..\src\plot\..\..\..\include /I$(SETUPHDIR) /W4 \
28 /I..\..\src\plot\..\..\include /DWXUSINGDLL /DWXMAKINGDLL_PLOT \
29 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) /Yu"wx/wxprec.h" \
30 /Fp"$(OBJS)\wxprec_plotdll.pch" $(CPPFLAGS) $(CXXFLAGS)
31 PLOTDLL_OBJECTS = \
32 $(OBJS)\plotdll_dummy.obj \
33 $(OBJS)\plotdll_version.res \
34 $(OBJS)\plotdll_plot.obj
35 PLOTLIB_CXXFLAGS = /M$(__RUNTIME_LIBS_22)$(__DEBUGRUNTIME) /DWIN32 \
36 $(__DEBUGINFO_1) \
37 /Fd$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.pdb \
38 $(____DEBUGRUNTIME) $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ \
39 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
40 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
41 $(__MSLU_DEFINE_p) /I..\..\src\plot\..\..\..\include /I$(SETUPHDIR) /W4 \
42 /I..\..\src\plot\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
43 /Yu"wx/wxprec.h" /Fp"$(OBJS)\wxprec_plotlib.pch" $(CPPFLAGS) $(CXXFLAGS)
44 PLOTLIB_OBJECTS = \
45 $(OBJS)\plotlib_dummy.obj \
46 $(OBJS)\plotlib_plot.obj
47
48 ### Conditionally set variables: ###
49
50 !if "$(USE_GUI)" == "0"
51 PORTNAME = base
52 !endif
53 !if "$(USE_GUI)" == "1"
54 PORTNAME = msw
55 !endif
56 !if "$(OFFICIAL_BUILD)" == "0"
57 VENDORTAG = _$(VENDOR)
58 !endif
59 !if "$(OFFICIAL_BUILD)" == "1"
60 VENDORTAG =
61 !endif
62 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
63 WXDEBUGFLAG = d
64 !endif
65 !if "$(DEBUG_FLAG)" == "1"
66 WXDEBUGFLAG = d
67 !endif
68 !if "$(UNICODE)" == "1"
69 WXUNICODEFLAG = u
70 !endif
71 !if "$(WXUNIV)" == "1"
72 WXUNIVNAME = univ
73 !endif
74 !if "$(SHARED)" == "1"
75 WXDLLFLAG = dll
76 !endif
77 !if "$(SHARED)" == "0"
78 LIBTYPE_SUFFIX = lib
79 !endif
80 !if "$(SHARED)" == "1"
81 LIBTYPE_SUFFIX = dll
82 !endif
83 !if "$(MONOLITHIC)" == "0"
84 EXTRALIBS_FOR_BASE =
85 !endif
86 !if "$(MONOLITHIC)" == "1"
87 EXTRALIBS_FOR_BASE =
88 !endif
89 !if "$(SHARED)" == "1"
90 __plotdll___depname = \
91 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_vc$(VENDORTAG).dll
92 !endif
93 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
94 __DEBUGINFO_2 = /DEBUG
95 !endif
96 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
97 __DEBUGINFO_2 =
98 !endif
99 !if "$(DEBUG_INFO)" == "0"
100 __DEBUGINFO_2 =
101 !endif
102 !if "$(DEBUG_INFO)" == "1"
103 __DEBUGINFO_2 = /DEBUG
104 !endif
105 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
106 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
107 !endif
108 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
109 ____DEBUGRUNTIME_3_p_1 =
110 !endif
111 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
112 ____DEBUGRUNTIME_3_p_1 =
113 !endif
114 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
115 ____DEBUGRUNTIME_3_p_1 = /d _DEBUG
116 !endif
117 !if "$(RUNTIME_LIBS)" == "dynamic"
118 __RUNTIME_LIBS_9 = D
119 !endif
120 !if "$(RUNTIME_LIBS)" == "static"
121 __RUNTIME_LIBS_9 = $(__THREADSFLAG)
122 !endif
123 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
124 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
125 !endif
126 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
127 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
128 !endif
129 !if "$(WXUNIV)" == "1"
130 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
131 !endif
132 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
133 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
134 !endif
135 !if "$(DEBUG_FLAG)" == "1"
136 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
137 !endif
138 !if "$(USE_EXCEPTIONS)" == "0"
139 __EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
140 !endif
141 !if "$(USE_RTTI)" == "0"
142 __RTTI_DEFINE_p_1 = /d wxNO_RTTI
143 !endif
144 !if "$(USE_THREADS)" == "0"
145 __THREAD_DEFINE_p_1 = /d wxNO_THREADS
146 !endif
147 !if "$(UNICODE)" == "1"
148 __UNICODE_DEFINE_p_1 = /d _UNICODE
149 !endif
150 !if "$(MSLU)" == "1"
151 __MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
152 !endif
153 !if "$(MONOLITHIC)" == "1"
154 __WXLIB_MONO_p = \
155 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
156 !endif
157 !if "$(USE_GUI)" == "1"
158 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
159 !endif
160 !if "$(USE_GUI)" == "1"
161 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
162 !endif
163 !if "$(USE_GUI)" == "1"
164 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
165 !endif
166 !if "$(MSLU)" == "1"
167 __UNICOWS_LIB_p = unicows.lib
168 !endif
169 !if "$(MONOLITHIC)" == "0"
170 __WXLIB_CORE_p = \
171 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
172 !endif
173 !if "$(MONOLITHIC)" == "0"
174 __WXLIB_BASE_p = \
175 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
176 !endif
177 !if "$(SHARED)" == "0"
178 __plotlib___depname = \
179 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.lib
180 !endif
181 !if "$(RUNTIME_LIBS)" == "dynamic"
182 __RUNTIME_LIBS_22 = D
183 !endif
184 !if "$(RUNTIME_LIBS)" == "static"
185 __RUNTIME_LIBS_22 = $(__THREADSFLAG)
186 !endif
187 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
188 __DEBUGINFO_1 = /Zi
189 !endif
190 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
191 __DEBUGINFO_1 =
192 !endif
193 !if "$(DEBUG_INFO)" == "0"
194 __DEBUGINFO_1 =
195 !endif
196 !if "$(DEBUG_INFO)" == "1"
197 __DEBUGINFO_1 = /Zi
198 !endif
199 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
200 ____DEBUGRUNTIME = /D_DEBUG
201 !endif
202 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
203 ____DEBUGRUNTIME =
204 !endif
205 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
206 ____DEBUGRUNTIME =
207 !endif
208 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
209 ____DEBUGRUNTIME = /D_DEBUG
210 !endif
211 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
212 __DEBUGRUNTIME = d
213 !endif
214 !if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
215 __DEBUGRUNTIME =
216 !endif
217 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
218 __DEBUGRUNTIME =
219 !endif
220 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
221 __DEBUGRUNTIME = d
222 !endif
223 !if "$(BUILD)" == "debug"
224 __OPTIMIZEFLAG = /Od
225 !endif
226 !if "$(BUILD)" == "release"
227 __OPTIMIZEFLAG = /O2
228 !endif
229 !if "$(USE_THREADS)" == "0"
230 __THREADSFLAG = L
231 !endif
232 !if "$(USE_THREADS)" == "1"
233 __THREADSFLAG = T
234 !endif
235 !if "$(USE_RTTI)" == "0"
236 __RTTIFLAG =
237 !endif
238 !if "$(USE_RTTI)" == "1"
239 __RTTIFLAG = /GR
240 !endif
241 !if "$(USE_EXCEPTIONS)" == "0"
242 __EXCEPTIONSFLAG =
243 !endif
244 !if "$(USE_EXCEPTIONS)" == "1"
245 __EXCEPTIONSFLAG = /EHsc
246 !endif
247 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
248 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
249 !endif
250 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
251 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
252 !endif
253 !if "$(WXUNIV)" == "1"
254 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
255 !endif
256 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
257 __DEBUG_DEFINE_p = /D__WXDEBUG__
258 !endif
259 !if "$(DEBUG_FLAG)" == "1"
260 __DEBUG_DEFINE_p = /D__WXDEBUG__
261 !endif
262 !if "$(USE_EXCEPTIONS)" == "0"
263 __EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
264 !endif
265 !if "$(USE_RTTI)" == "0"
266 __RTTI_DEFINE_p = /DwxNO_RTTI
267 !endif
268 !if "$(USE_THREADS)" == "0"
269 __THREAD_DEFINE_p = /DwxNO_THREADS
270 !endif
271 !if "$(UNICODE)" == "1"
272 __UNICODE_DEFINE_p = /D_UNICODE
273 !endif
274 !if "$(MSLU)" == "1"
275 __MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
276 !endif
277
278
279 all: $(OBJS)
280 $(OBJS):
281 -if not exist $(OBJS) mkdir $(OBJS)
282
283 ### Targets: ###
284
285 all: $(__plotdll___depname) $(__plotlib___depname)
286
287 clean:
288 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
289 -if exist $(OBJS)\*.res del $(OBJS)\*.res
290 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
291 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_vc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_vc$(VENDORTAG).dll
292 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_vc$(VENDORTAG).ilk del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_vc$(VENDORTAG).ilk
293 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_vc$(VENDORTAG).pdb del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_vc$(VENDORTAG).pdb
294 -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
295 -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
296
297 !if "$(SHARED)" == "1"
298 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_vc$(VENDORTAG).dll: $(OBJS)\plotdll_dummy.obj $(PLOTDLL_OBJECTS) $(OBJS)\plotdll_version.res
299 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_2) /LIBPATH:$(LIBDIRNAME) @<<
300 $(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) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib oleacc.lib odbc32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) /IMPLIB:$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.lib
301 <<
302 !endif
303
304 !if "$(SHARED)" == "0"
305 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.lib: $(OBJS)\plotlib_dummy.obj $(PLOTLIB_OBJECTS)
306 if exist $@ del $@
307 link /LIB /NOLOGO /OUT:$@ @<<
308 $(PLOTLIB_OBJECTS)
309 <<
310 !endif
311
312 $(OBJS)\plotdll_dummy.obj: ../../src/plot\..\..\..\src\msw\dummy.cpp
313 $(CXX) /c /nologo /TP /Fo$@ $(PLOTDLL_CXXFLAGS) /Ycwx/wxprec.h $**
314
315 $(OBJS)\plotdll_version.res: ../../src/plot\..\..\..\src\msw\version.rc
316 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_3_p_1) $(__NO_VC_CRTDBG_p_1) /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) /i ..\..\src\plot\..\..\..\include /i $(SETUPHDIR) /d WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_vc$(VENDORTAG) $**
317
318 $(OBJS)\plotdll_plot.obj: ../../src/plot\plot.cpp
319 $(CXX) /c /nologo /TP /Fo$@ $(PLOTDLL_CXXFLAGS) $**
320
321 $(OBJS)\plotlib_dummy.obj: ../../src/plot\..\..\..\src\msw\dummy.cpp
322 $(CXX) /c /nologo /TP /Fo$@ $(PLOTLIB_CXXFLAGS) /Ycwx/wxprec.h $**
323
324 $(OBJS)\plotlib_plot.obj: ../../src/plot\plot.cpp
325 $(CXX) /c /nologo /TP /Fo$@ $(PLOTLIB_CXXFLAGS) $**
326