]> git.saurik.com Git - wxWidgets.git/blob - utils/tex2rtf/src/makefile.bcc
Unicode fixes. Avoid int 'ch' and '(wx)char ch' in the same scope.
[wxWidgets.git] / utils / tex2rtf / src / makefile.bcc
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 .autodepend
8
9 !ifndef BCCDIR
10 !ifndef MAKEDIR
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12 !endif
13 BCCDIR = $(MAKEDIR)\..
14 !endif
15
16 !include ../../../build/msw/config.bcc
17
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
21
22 ### Variables: ###
23
24 WX_RELEASE_NODOT = 25
25 OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 SETUPHDIR = \
28 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
29 TEX2RTF_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
30 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
31 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
32 -DNO_GUI $(CPPFLAGS) $(CXXFLAGS)
33 TEX2RTF_OBJECTS = \
34 $(OBJS)\tex2rtf_tex2rtf.obj \
35 $(OBJS)\tex2rtf_tex2any.obj \
36 $(OBJS)\tex2rtf_texutils.obj \
37 $(OBJS)\tex2rtf_rtfutils.obj \
38 $(OBJS)\tex2rtf_xlputils.obj \
39 $(OBJS)\tex2rtf_htmlutil.obj \
40 $(OBJS)\tex2rtf_readshg.obj \
41 $(OBJS)\tex2rtf_table.obj
42 TEX2RTF_GUI_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
43 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
44 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
45 -I.\..\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
46 TEX2RTF_GUI_OBJECTS = \
47 $(OBJS)\tex2rtf_gui_tex2rtf.obj \
48 $(OBJS)\tex2rtf_gui_tex2any.obj \
49 $(OBJS)\tex2rtf_gui_texutils.obj \
50 $(OBJS)\tex2rtf_gui_rtfutils.obj \
51 $(OBJS)\tex2rtf_gui_xlputils.obj \
52 $(OBJS)\tex2rtf_gui_htmlutil.obj \
53 $(OBJS)\tex2rtf_gui_readshg.obj \
54 $(OBJS)\tex2rtf_gui_table.obj
55
56 ### Conditionally set variables: ###
57
58 !if "$(USE_GUI)" == "0"
59 PORTNAME = base
60 !endif
61 !if "$(USE_GUI)" == "1"
62 PORTNAME = msw
63 !endif
64 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
65 WXDEBUGFLAG = d
66 !endif
67 !if "$(DEBUG_FLAG)" == "1"
68 WXDEBUGFLAG = d
69 !endif
70 !if "$(UNICODE)" == "1"
71 WXUNICODEFLAG = u
72 !endif
73 !if "$(WXUNIV)" == "1"
74 WXUNIVNAME = univ
75 !endif
76 !if "$(SHARED)" == "1"
77 WXDLLFLAG = dll
78 !endif
79 !if "$(MONOLITHIC)" == "0"
80 EXTRALIBS_FOR_BASE =
81 !endif
82 !if "$(MONOLITHIC)" == "1"
83 EXTRALIBS_FOR_BASE =
84 !endif
85 !if "$(USE_GUI)" == "1"
86 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
87 !endif
88 !if "$(WXUNIV)" == "1"
89 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
90 !endif
91 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
92 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
93 !endif
94 !if "$(DEBUG_FLAG)" == "1"
95 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
96 !endif
97 !if "$(UNICODE)" == "1"
98 __UNICODE_DEFINE_p_3 = -d_UNICODE
99 !endif
100 !if "$(SHARED)" == "1"
101 __DLLFLAG_p_3 = -dWXUSINGDLL
102 !endif
103 !if "$(MONOLITHIC)" == "0"
104 __WXLIB_HTML_p = \
105 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
106 !endif
107 !if "$(MONOLITHIC)" == "0"
108 __WXLIB_CORE_p = \
109 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
110 !endif
111 !if "$(BUILD)" == "debug"
112 __OPTIMIZEFLAG = -Od
113 !endif
114 !if "$(BUILD)" == "release"
115 __OPTIMIZEFLAG = -O2
116 !endif
117 !if "$(RUNTIME_LIBS)" == "dynamic"
118 __RUNTIME_LIBS = -tWR
119 !endif
120 !if "$(RUNTIME_LIBS)" == "static"
121 __RUNTIME_LIBS =
122 !endif
123 !if "$(RUNTIME_LIBS)" == "dynamic"
124 __RUNTIME_LIBS_0 = i
125 !endif
126 !if "$(RUNTIME_LIBS)" == "static"
127 __RUNTIME_LIBS_0 =
128 !endif
129 !if "$(WXUNIV)" == "1"
130 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
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 "$(UNICODE)" == "1"
139 __UNICODE_DEFINE_p = -D_UNICODE
140 !endif
141 !if "$(SHARED)" == "0"
142 LIBDIRNAME = .\..\..\..\lib\bcc_lib$(CFG)
143 !endif
144 !if "$(SHARED)" == "1"
145 LIBDIRNAME = .\..\..\..\lib\bcc_dll$(CFG)
146 !endif
147 !if "$(SHARED)" == "1"
148 __DLLFLAG_p = -DWXUSINGDLL
149 !endif
150 !if "$(MONOLITHIC)" == "0"
151 __WXLIB_BASE_p = \
152 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
153 !endif
154 !if "$(MONOLITHIC)" == "1"
155 __WXLIB_MONO_p = \
156 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
157 !endif
158 !if "$(USE_GUI)" == "1"
159 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
160 !endif
161 !if "$(USE_GUI)" == "1"
162 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
163 !endif
164 !if "$(USE_GUI)" == "1"
165 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
166 !endif
167 !if "$(MSLU)" == "1"
168 __UNICOWS_LIB_p = unicows.lib
169 !endif
170 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
171 __DEBUGINFO = -v
172 !endif
173 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
174 __DEBUGINFO = -v-
175 !endif
176 !if "$(DEBUG_INFO)" == "0"
177 __DEBUGINFO = -v-
178 !endif
179 !if "$(DEBUG_INFO)" == "1"
180 __DEBUGINFO = -v
181 !endif
182
183
184 all: $(OBJS)
185 $(OBJS):
186 -if not exist $(OBJS) mkdir $(OBJS)
187
188 ### Targets: ###
189
190 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
191
192 clean:
193 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
194 -if exist $(OBJS)\*.res del $(OBJS)\*.res
195 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
196 -if exist $(OBJS)\tex2rtf.tds del $(OBJS)\tex2rtf.tds
197 -if exist $(OBJS)\tex2rtf.ilc del $(OBJS)\tex2rtf.ilc
198 -if exist $(OBJS)\tex2rtf.ild del $(OBJS)\tex2rtf.ild
199 -if exist $(OBJS)\tex2rtf.ilf del $(OBJS)\tex2rtf.ilf
200 -if exist $(OBJS)\tex2rtf.ils del $(OBJS)\tex2rtf.ils
201 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
202 -if exist $(OBJS)\tex2rtf_gui.tds del $(OBJS)\tex2rtf_gui.tds
203 -if exist $(OBJS)\tex2rtf_gui.ilc del $(OBJS)\tex2rtf_gui.ilc
204 -if exist $(OBJS)\tex2rtf_gui.ild del $(OBJS)\tex2rtf_gui.ild
205 -if exist $(OBJS)\tex2rtf_gui.ilf del $(OBJS)\tex2rtf_gui.ilf
206 -if exist $(OBJS)\tex2rtf_gui.ils del $(OBJS)\tex2rtf_gui.ils
207
208 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
209 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap @&&|
210 c0x32.obj $(TEX2RTF_OBJECTS),$@,, $(__WXLIB_BASE_p) $(__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) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,,
211 |
212
213 !if "$(USE_GUI)" == "1"
214 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
215 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
216 c0w32.obj $(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$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\tex2rtf_gui_sample.res
217 |
218 !endif
219
220 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
221 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
222
223 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
224 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
225
226 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
227 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
228
229 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
230 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
231
232 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
233 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
234
235 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
236 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
237
238 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
239 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
240
241 $(OBJS)\tex2rtf_table.obj: .\table.cpp
242 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
243
244 $(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
245 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) -i.\..\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_3) -i.\..\..\..\samples $**
246
247 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
248 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
249
250 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
251 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
252
253 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
254 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
255
256 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
257 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
258
259 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
260 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
261
262 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
263 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
264
265 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
266 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
267
268 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
269 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**