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