]> git.saurik.com Git - wxWidgets.git/blob - utils/tex2rtf/src/makefile.vc
Added script to bake everthing (OK, so it's trivial...)
[wxWidgets.git] / utils / tex2rtf / src / makefile.vc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (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 = 25
16 OBJS = \
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 SETUPHDIR = \
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20 TEX2RTF_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \
21 $(__DEBUGINFO) /Fd$(OBJS)\tex2rtf.pdb $(____DEBUGRUNTIME_2_p) \
22 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\..\include \
24 /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) /D_CONSOLE /DNO_GUI $(__EXCEPTIONSFLAG) \
25 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
26 TEX2RTF_OBJECTS = \
27 $(OBJS)\tex2rtf_tex2rtf.obj \
28 $(OBJS)\tex2rtf_tex2any.obj \
29 $(OBJS)\tex2rtf_texutils.obj \
30 $(OBJS)\tex2rtf_rtfutils.obj \
31 $(OBJS)\tex2rtf_xlputils.obj \
32 $(OBJS)\tex2rtf_htmlutil.obj \
33 $(OBJS)\tex2rtf_readshg.obj \
34 $(OBJS)\tex2rtf_table.obj
35 TEX2RTF_GUI_CXXFLAGS = /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_16) /DWIN32 \
36 $(__DEBUGINFO) /Fd$(OBJS)\tex2rtf_gui.pdb $(____DEBUGRUNTIME_15_p) \
37 $(__OPTIMIZEFLAG) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
38 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\..\include \
39 /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\samples /DNOPCH \
40 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
41 TEX2RTF_GUI_OBJECTS = \
42 $(OBJS)\tex2rtf_gui_sample.res \
43 $(OBJS)\tex2rtf_gui_tex2rtf.obj \
44 $(OBJS)\tex2rtf_gui_tex2any.obj \
45 $(OBJS)\tex2rtf_gui_texutils.obj \
46 $(OBJS)\tex2rtf_gui_rtfutils.obj \
47 $(OBJS)\tex2rtf_gui_xlputils.obj \
48 $(OBJS)\tex2rtf_gui_htmlutil.obj \
49 $(OBJS)\tex2rtf_gui_readshg.obj \
50 $(OBJS)\tex2rtf_gui_table.obj
51
52 ### Conditionally set variables: ###
53
54 !if "$(USE_GUI)" == "0"
55 PORTNAME = base
56 !endif
57 !if "$(USE_GUI)" == "1"
58 PORTNAME = msw
59 !endif
60 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
61 WXDEBUGFLAG = d
62 !endif
63 !if "$(DEBUG_FLAG)" == "1"
64 WXDEBUGFLAG = d
65 !endif
66 !if "$(UNICODE)" == "1"
67 WXUNICODEFLAG = u
68 !endif
69 !if "$(WXUNIV)" == "1"
70 WXUNIVNAME = univ
71 !endif
72 !if "$(SHARED)" == "1"
73 WXDLLFLAG = dll
74 !endif
75 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
76 ____DEBUGRUNTIME_2_p =
77 !endif
78 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
79 ____DEBUGRUNTIME_2_p = /D_DEBUG
80 !endif
81 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
82 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
83 !endif
84 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
85 __DEBUGRUNTIME_3 =
86 !endif
87 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
88 __DEBUGRUNTIME_3 = d
89 !endif
90 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
91 __DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
92 !endif
93 !if "$(USE_GUI)" == "1"
94 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
95 !endif
96 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
97 ____DEBUGRUNTIME_15_p =
98 !endif
99 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
100 ____DEBUGRUNTIME_15_p = /D_DEBUG
101 !endif
102 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
103 ____DEBUGRUNTIME_15_p = $(____DEBUGINFO)
104 !endif
105 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
106 ____DEBUGRUNTIME_15_p_1 =
107 !endif
108 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
109 ____DEBUGRUNTIME_15_p_1 = /d _DEBUG
110 !endif
111 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
112 ____DEBUGRUNTIME_15_p_1 = $(____DEBUGINFO_15_p_1)
113 !endif
114 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
115 ____DEBUGINFO_15_p_1 = /d _DEBUG
116 !endif
117 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
118 ____DEBUGINFO_15_p_1 =
119 !endif
120 !if "$(DEBUG_INFO)" == "0"
121 ____DEBUGINFO_15_p_1 =
122 !endif
123 !if "$(DEBUG_INFO)" == "1"
124 ____DEBUGINFO_15_p_1 = /d _DEBUG
125 !endif
126 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
127 __DEBUGRUNTIME_16 =
128 !endif
129 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
130 __DEBUGRUNTIME_16 = d
131 !endif
132 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
133 __DEBUGRUNTIME_16 = $(__DEBUGINFO_2)
134 !endif
135 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
136 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
137 !endif
138 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
139 __NO_VC_CRTDBG_p_3 = /d __NO_VC_CRTDBG__
140 !endif
141 !if "$(WXUNIV)" == "1"
142 __WXUNIV_DEFINE_p_3 = /d __WXUNIVERSAL__
143 !endif
144 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
145 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
146 !endif
147 !if "$(DEBUG_FLAG)" == "1"
148 __DEBUG_DEFINE_p_3 = /d __WXDEBUG__
149 !endif
150 !if "$(UNICODE)" == "1"
151 __UNICODE_DEFINE_p_3 = /d _UNICODE
152 !endif
153 !if "$(SHARED)" == "1"
154 __DLLFLAG_p_3 = /d WXUSINGDLL
155 !endif
156 !if "$(MONOLITHIC)" == "0"
157 __WXLIB_HTML_p = \
158 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
159 !endif
160 !if "$(MONOLITHIC)" == "0"
161 __WXLIB_CORE_p = \
162 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
163 !endif
164 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
165 __DEBUGINFO = /Zi
166 !endif
167 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
168 __DEBUGINFO =
169 !endif
170 !if "$(DEBUG_INFO)" == "0"
171 __DEBUGINFO =
172 !endif
173 !if "$(DEBUG_INFO)" == "1"
174 __DEBUGINFO = /Zi
175 !endif
176 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
177 __DEBUGINFO_1 = /DEBUG
178 !endif
179 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
180 __DEBUGINFO_1 =
181 !endif
182 !if "$(DEBUG_INFO)" == "0"
183 __DEBUGINFO_1 =
184 !endif
185 !if "$(DEBUG_INFO)" == "1"
186 __DEBUGINFO_1 = /DEBUG
187 !endif
188 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
189 ____DEBUGINFO = /D_DEBUG
190 !endif
191 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
192 ____DEBUGINFO =
193 !endif
194 !if "$(DEBUG_INFO)" == "0"
195 ____DEBUGINFO =
196 !endif
197 !if "$(DEBUG_INFO)" == "1"
198 ____DEBUGINFO = /D_DEBUG
199 !endif
200 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
201 __DEBUGINFO_2 = d
202 !endif
203 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
204 __DEBUGINFO_2 =
205 !endif
206 !if "$(DEBUG_INFO)" == "0"
207 __DEBUGINFO_2 =
208 !endif
209 !if "$(DEBUG_INFO)" == "1"
210 __DEBUGINFO_2 = d
211 !endif
212 !if "$(BUILD)" == "debug"
213 __OPTIMIZEFLAG = /Od
214 !endif
215 !if "$(BUILD)" == "release"
216 __OPTIMIZEFLAG = /O2
217 !endif
218 !if "$(RUNTIME_LIBS)" == "dynamic"
219 __RUNTIME_LIBS = D
220 !endif
221 !if "$(RUNTIME_LIBS)" == "static"
222 __RUNTIME_LIBS = T
223 !endif
224 !if "$(USE_EXCEPTIONS)" == "0"
225 __EXCEPTIONSFLAG =
226 !endif
227 !if "$(USE_EXCEPTIONS)" == "1"
228 __EXCEPTIONSFLAG = /GR
229 !endif
230 !if "$(USE_EXCEPTIONS)" == "0"
231 __EXCEPTIONSFLAG_0 =
232 !endif
233 !if "$(USE_EXCEPTIONS)" == "1"
234 __EXCEPTIONSFLAG_0 = /GX
235 !endif
236 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
237 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
238 !endif
239 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
240 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
241 !endif
242 !if "$(WXUNIV)" == "1"
243 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
244 !endif
245 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
246 __DEBUG_DEFINE_p = /D__WXDEBUG__
247 !endif
248 !if "$(DEBUG_FLAG)" == "1"
249 __DEBUG_DEFINE_p = /D__WXDEBUG__
250 !endif
251 !if "$(UNICODE)" == "1"
252 __UNICODE_DEFINE_p = /D_UNICODE
253 !endif
254 !if "$(SHARED)" == "0"
255 LIBDIRNAME = .\..\..\..\lib\vc_lib$(CFG)
256 !endif
257 !if "$(SHARED)" == "1"
258 LIBDIRNAME = .\..\..\..\lib\vc_dll$(CFG)
259 !endif
260 !if "$(SHARED)" == "1"
261 __DLLFLAG_p = /DWXUSINGDLL
262 !endif
263 !if "$(MONOLITHIC)" == "0"
264 __WXLIB_BASE_p = \
265 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
266 !endif
267 !if "$(MONOLITHIC)" == "1"
268 __WXLIB_MONO_p = \
269 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
270 !endif
271 !if "$(USE_GUI)" == "1"
272 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
273 !endif
274 !if "$(USE_GUI)" == "1"
275 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
276 !endif
277 !if "$(USE_GUI)" == "1"
278 __LIB_PNG_p = wxpng$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
279 !endif
280 !if "$(MSLU)" == "1"
281 __UNICOWS_LIB_p = unicows.lib
282 !endif
283
284
285 all: $(OBJS)
286 $(OBJS):
287 -if not exist $(OBJS) mkdir $(OBJS)
288
289 ### Targets: ###
290
291 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
292
293 clean:
294 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
295 -if exist $(OBJS)\*.res del $(OBJS)\*.res
296 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
297 -if exist $(OBJS)\tex2rtf.ilk del $(OBJS)\tex2rtf.ilk
298 -if exist $(OBJS)\tex2rtf.pdb del $(OBJS)\tex2rtf.pdb
299 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
300 -if exist $(OBJS)\tex2rtf_gui.ilk del $(OBJS)\tex2rtf_gui.ilk
301 -if exist $(OBJS)\tex2rtf_gui.pdb del $(OBJS)\tex2rtf_gui.pdb
302
303 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
304 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE @<<
305 $(TEX2RTF_OBJECTS) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib $(__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
306 <<
307
308 !if "$(USE_GUI)" == "1"
309 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
310 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
311 $(TEX2RTF_GUI_OBJECTS) $(__WXLIB_HTML_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib $(__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
312 <<
313 !endif
314
315 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
316 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
317
318 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
319 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
320
321 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
322 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
323
324 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
325 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
326
327 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
328 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
329
330 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
331 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
332
333 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
334 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
335
336 $(OBJS)\tex2rtf_table.obj: .\table.cpp
337 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_CXXFLAGS) $**
338
339 $(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
340 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_15_p_1) $(__NO_VC_CRTDBG_p_3) /d __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) /i .\..\..\..\include /i $(SETUPHDIR) /i . $(__DLLFLAG_p_3) /d _WINDOWS /i .\..\..\..\samples $**
341
342 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
343 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
344
345 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
346 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
347
348 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
349 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
350
351 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
352 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
353
354 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
355 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
356
357 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
358 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
359
360 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
361 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**
362
363 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
364 $(CXX) /c /nologo /TP /Fo$@ $(TEX2RTF_GUI_CXXFLAGS) $**