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