]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/plot/makefile.vc
Fixed compile error (seen on OS/2).
[wxWidgets.git] / contrib / build / plot / makefile.vc
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
fd9f42b6 7!include <../../../build/msw/config.vc>
15e8daec
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15e8daec
VS
15OBJS = \
16 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17PLOTDLL_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \
18 $(__DEBUGINFO_2) \
19 /Fd$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_vc$(VENDORTAG).pdb \
20 $(____DEBUGRUNTIME_2_p) $(__OPTIMIZEFLAG) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
21 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
75a0a7b7
VS
22 /I..\..\src\plot\..\..\..\include /I$(SETUPHDIR) \
23 /I..\..\src\plot\..\..\include /DWXUSINGDLL /DWXMAKINGDLL_PLOT $(CXXFLAGS) \
24 /Yu"wx/wxprec.h" /Fp"$(OBJS)\wxprec_plotdll.pch"
15e8daec
VS
25PLOTDLL_OBJECTS = \
26 $(OBJS)\plotdll_dummy.obj \
27 $(OBJS)\plotdll_plot.obj
28PLOTLIB_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_12) /DWIN32 \
29 $(__DEBUGINFO_2) \
30 /Fd$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.pdb \
31 $(____DEBUGRUNTIME_11_p) $(__OPTIMIZEFLAG) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
32 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
75a0a7b7
VS
33 /I..\..\src\plot\..\..\..\include /I$(SETUPHDIR) \
34 /I..\..\src\plot\..\..\include $(CXXFLAGS) /Yu"wx/wxprec.h" \
35 /Fp"$(OBJS)\wxprec_plotlib.pch"
15e8daec
VS
36PLOTLIB_OBJECTS = \
37 $(OBJS)\plotlib_dummy.obj \
38 $(OBJS)\plotlib_plot.obj
75a0a7b7
VS
39SETUPHDIR = \
40 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
15e8daec
VS
41
42### Conditionally set variables: ###
43
75a0a7b7
VS
44!if "$(SHARED)" == "0"
45LIBDIRNAME = ..\..\src\plot\..\..\..\lib\vc_lib$(CFG)
46!endif
47!if "$(SHARED)" == "1"
48LIBDIRNAME = ..\..\src\plot\..\..\..\lib\vc_dll$(CFG)
49!endif
15e8daec
VS
50!if "$(USE_GUI)" == "0"
51PORTNAME = base
52!endif
53!if "$(USE_GUI)" == "1"
54PORTNAME = msw
55!endif
56!if "$(OFFICIAL_BUILD)" == "0"
57VENDORTAG = _$(VENDOR)
58!endif
59!if "$(OFFICIAL_BUILD)" == "1"
60VENDORTAG =
61!endif
62!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
63WXDEBUGFLAG = d
64!endif
65!if "$(DEBUG_FLAG)" == "1"
66WXDEBUGFLAG = d
67!endif
68!if "$(SHARED)" == "1"
69WXDLLFLAG = dll
70!endif
71!if "$(UNICODE)" == "1"
72WXUNICODEFLAG = u
73!endif
74!if "$(WXUNIV)" == "1"
75WXUNIVNAME = univ
76!endif
77!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
78__DEBUGINFO = d
79!endif
80!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
81__DEBUGINFO =
82!endif
83!if "$(DEBUG_INFO)" == "0"
84__DEBUGINFO =
85!endif
86!if "$(DEBUG_INFO)" == "1"
87__DEBUGINFO = d
88!endif
89!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
90__DEBUGINFO_1 = /DEBUG
91!endif
92!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
93__DEBUGINFO_1 =
94!endif
95!if "$(DEBUG_INFO)" == "0"
96__DEBUGINFO_1 =
97!endif
98!if "$(DEBUG_INFO)" == "1"
99__DEBUGINFO_1 = /DEBUG
100!endif
101!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
102__DEBUGINFO_2 = /Zi
103!endif
104!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
105__DEBUGINFO_2 =
106!endif
107!if "$(DEBUG_INFO)" == "0"
108__DEBUGINFO_2 =
109!endif
110!if "$(DEBUG_INFO)" == "1"
111__DEBUGINFO_2 = /Zi
112!endif
113!if "$(DEBUG_RUNTIME_LIBS)" == "0"
114__DEBUGRUNTIME_12 =
115!endif
116!if "$(DEBUG_RUNTIME_LIBS)" == "1"
117__DEBUGRUNTIME_12 = d
118!endif
119!if "$(DEBUG_RUNTIME_LIBS)" == "default"
120__DEBUGRUNTIME_12 = $(__DEBUGINFO)
121!endif
122!if "$(DEBUG_RUNTIME_LIBS)" == "0"
123__DEBUGRUNTIME_3 =
124!endif
125!if "$(DEBUG_RUNTIME_LIBS)" == "1"
126__DEBUGRUNTIME_3 = d
127!endif
128!if "$(DEBUG_RUNTIME_LIBS)" == "default"
129__DEBUGRUNTIME_3 = $(__DEBUGINFO)
130!endif
131!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
132__DEBUG_DEFINE_p = /D__WXDEBUG__
133!endif
134!if "$(DEBUG_FLAG)" == "1"
135__DEBUG_DEFINE_p = /D__WXDEBUG__
136!endif
137!if "$(USE_GUI)" == "1"
138__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
139!endif
140!if "$(USE_GUI)" == "1"
141__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
142!endif
143!if "$(USE_GUI)" == "1"
144__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
145!endif
146!if "$(BUILD)" == "debug"
147__OPTIMIZEFLAG = /Od
148!endif
149!if "$(BUILD)" == "release"
150__OPTIMIZEFLAG = /O2
151!endif
152!if "$(RUNTIME_LIBS)" == "dynamic"
153__RUNTIME_LIBS = D
154!endif
155!if "$(RUNTIME_LIBS)" == "static"
156__RUNTIME_LIBS = T
157!endif
158!if "$(UNICODE)" == "1"
159__UNICODE_DEFINE_p = /DwxUSE_UNICODE=1
160!endif
2265a2d5
VS
161!if "$(MSLU)" == "1"
162__UNICOWS_LIB_p = unicows.lib
163!endif
15e8daec
VS
164!if "$(MONOLITHIC)" == "0"
165__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
166!endif
167!if "$(MONOLITHIC)" == "0"
168__WXLIB_CORE_p = \
169 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
170!endif
171!if "$(MONOLITHIC)" == "1"
172__WXLIB_MONO_p = \
173 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
174!endif
175!if "$(WXUNIV)" == "1"
176__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
177!endif
178!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
179____DEBUGINFO = /D_DEBUG
180!endif
181!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
182____DEBUGINFO =
183!endif
184!if "$(DEBUG_INFO)" == "0"
185____DEBUGINFO =
186!endif
187!if "$(DEBUG_INFO)" == "1"
188____DEBUGINFO = /D_DEBUG
189!endif
190!if "$(DEBUG_RUNTIME_LIBS)" == "0"
191____DEBUGRUNTIME_11_p =
192!endif
193!if "$(DEBUG_RUNTIME_LIBS)" == "1"
194____DEBUGRUNTIME_11_p = /D_DEBUG
195!endif
196!if "$(DEBUG_RUNTIME_LIBS)" == "default"
197____DEBUGRUNTIME_11_p = $(____DEBUGINFO)
198!endif
199!if "$(DEBUG_RUNTIME_LIBS)" == "0"
200____DEBUGRUNTIME_2_p =
201!endif
202!if "$(DEBUG_RUNTIME_LIBS)" == "1"
203____DEBUGRUNTIME_2_p = /D_DEBUG
204!endif
205!if "$(DEBUG_RUNTIME_LIBS)" == "default"
206____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
207!endif
208!if "$(SHARED)" == "1"
209__plotdll___depname = \
210 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_vc$(VENDORTAG).dll
211!endif
212!if "$(SHARED)" == "0"
213__plotlib___depname = \
214 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib
215!endif
216
217
218all: $(OBJS)
219$(OBJS):
220 -if not exist $(OBJS) mkdir $(OBJS)
221
222### Targets: ###
223
224all: $(__plotdll___depname) $(__plotlib___depname)
225
226$(OBJS)\plotdll_dummy.obj: ../../src/plot\..\..\..\src\msw\dummy.cpp
227 $(CXX) /c /nologo /TP /Fo$@ $(PLOTDLL_CXXFLAGS) /Ycwx/wxprec.h $**
228
229$(OBJS)\plotdll_plot.obj: ../../src/plot\plot.cpp
230 $(CXX) /c /nologo /TP /Fo$@ $(PLOTDLL_CXXFLAGS) $**
231
232$(OBJS)\plotlib_dummy.obj: ../../src/plot\..\..\..\src\msw\dummy.cpp
233 $(CXX) /c /nologo /TP /Fo$@ $(PLOTLIB_CXXFLAGS) /Ycwx/wxprec.h $**
234
235$(OBJS)\plotlib_plot.obj: ../../src/plot\plot.cpp
236 $(CXX) /c /nologo /TP /Fo$@ $(PLOTLIB_CXXFLAGS) $**
237
238clean:
239 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
240 -if exist $(OBJS)\*.res del $(OBJS)\*.res
241 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_vc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_vc$(VENDORTAG).dll
242 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib
243 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib
244
245!if "$(SHARED)" == "1"
75a0a7b7 246$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_vc$(VENDORTAG).dll: $(OBJS)\plotdll_dummy.obj $(PLOTDLL_OBJECTS)
15e8daec 247 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) @<<
2265a2d5 248 $(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) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) /IMPLIB:$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib
15e8daec
VS
249<<
250!endif
251
252!if "$(SHARED)" == "0"
75a0a7b7 253$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.lib: $(OBJS)\plotlib_dummy.obj $(PLOTLIB_OBJECTS)
15e8daec
VS
254 if exist $@ del $@
255 lib /NOLOGO /OUT:$@ @<<
256 $(PLOTLIB_OBJECTS)
257<<
258!endif