]> git.saurik.com Git - wxWidgets.git/blame - 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
CommitLineData
f98da3fb
VS
1# =========================================================================
2# This makefile was generated by
c4839ccf 3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
f98da3fb
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
9a29912f 6
9bfe7ad9
VS
7.autodepend
8
f98da3fb 9!ifndef BCCDIR
9bfe7ad9
VS
10!ifndef MAKEDIR
11!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12!endif
f98da3fb 13BCCDIR = $(MAKEDIR)\..
9a29912f
JS
14!endif
15
f98da3fb 16!include ../../../build/msw/config.bcc
9a29912f 17
f98da3fb
VS
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
9a29912f 21
f98da3fb
VS
22### Variables: ###
23
c33fae85 24WX_RELEASE_NODOT = 25
f98da3fb
VS
25OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
75a0a7b7
VS
27SETUPHDIR = \
28 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
b17c1746 29TEX2RTF_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
9bfe7ad9
VS
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)
b17c1746
DE
33TEX2RTF_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
42TEX2RTF_GUI_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
9bfe7ad9
VS
43 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
44 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
c33fae85 45 -I.\..\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
f98da3fb
VS
46TEX2RTF_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
f98da3fb
VS
55
56### Conditionally set variables: ###
57
58!if "$(USE_GUI)" == "0"
59PORTNAME = base
60!endif
61!if "$(USE_GUI)" == "1"
62PORTNAME = msw
63!endif
64!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
65WXDEBUGFLAG = d
66!endif
67!if "$(DEBUG_FLAG)" == "1"
68WXDEBUGFLAG = d
69!endif
f98da3fb
VS
70!if "$(UNICODE)" == "1"
71WXUNICODEFLAG = u
72!endif
73!if "$(WXUNIV)" == "1"
74WXUNIVNAME = univ
75!endif
b17c1746
DE
76!if "$(SHARED)" == "1"
77WXDLLFLAG = dll
f98da3fb 78!endif
dd65d8c8
RN
79!if "$(MONOLITHIC)" == "0"
80EXTRALIBS_FOR_BASE =
81!endif
82!if "$(MONOLITHIC)" == "1"
83EXTRALIBS_FOR_BASE =
84!endif
b17c1746
DE
85!if "$(USE_GUI)" == "1"
86__tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
f98da3fb 87!endif
b17c1746
DE
88!if "$(WXUNIV)" == "1"
89__WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
f98da3fb
VS
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
b17c1746
DE
97!if "$(UNICODE)" == "1"
98__UNICODE_DEFINE_p_3 = -d_UNICODE
f98da3fb
VS
99!endif
100!if "$(SHARED)" == "1"
101__DLLFLAG_p_3 = -dWXUSINGDLL
102!endif
b17c1746 103!if "$(MONOLITHIC)" == "0"
5259a417 104__WXLIB_HTML_p = \
c33fae85 105 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
5259a417
RL
106!endif
107!if "$(MONOLITHIC)" == "0"
b17c1746 108__WXLIB_CORE_p = \
c33fae85 109 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
f98da3fb
VS
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"
b17c1746 118__RUNTIME_LIBS = -tWR
f98da3fb
VS
119!endif
120!if "$(RUNTIME_LIBS)" == "static"
121__RUNTIME_LIBS =
122!endif
123!if "$(RUNTIME_LIBS)" == "dynamic"
b17c1746 124__RUNTIME_LIBS_0 = i
f98da3fb
VS
125!endif
126!if "$(RUNTIME_LIBS)" == "static"
127__RUNTIME_LIBS_0 =
128!endif
b17c1746
DE
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__
f98da3fb
VS
137!endif
138!if "$(UNICODE)" == "1"
b17c1746 139__UNICODE_DEFINE_p = -D_UNICODE
f98da3fb 140!endif
b17c1746
DE
141!if "$(SHARED)" == "0"
142LIBDIRNAME = .\..\..\..\lib\bcc_lib$(CFG)
f98da3fb 143!endif
b17c1746
DE
144!if "$(SHARED)" == "1"
145LIBDIRNAME = .\..\..\..\lib\bcc_dll$(CFG)
f98da3fb 146!endif
b17c1746
DE
147!if "$(SHARED)" == "1"
148__DLLFLAG_p = -DWXUSINGDLL
f98da3fb
VS
149!endif
150!if "$(MONOLITHIC)" == "0"
c33fae85
RN
151__WXLIB_BASE_p = \
152 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
f98da3fb
VS
153!endif
154!if "$(MONOLITHIC)" == "1"
155__WXLIB_MONO_p = \
c33fae85 156 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
f98da3fb 157!endif
b17c1746 158!if "$(USE_GUI)" == "1"
9c2d002b 159__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
f98da3fb 160!endif
b17c1746 161!if "$(USE_GUI)" == "1"
9c2d002b 162__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
f98da3fb 163!endif
8be1c2c5 164!if "$(USE_GUI)" == "1"
9c2d002b 165__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
b17c1746
DE
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
8be1c2c5 181!endif
f98da3fb
VS
182
183
184all: $(OBJS)
185$(OBJS):
186 -if not exist $(OBJS) mkdir $(OBJS)
187
188### Targets: ###
189
8be1c2c5 190all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
f98da3fb 191
f98da3fb
VS
192clean:
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
ec08d395
JS
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
f98da3fb 201 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
ec08d395
JS
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
f98da3fb
VS
207
208$(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
9bfe7ad9 209 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap @&&|
dd65d8c8 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,,
f98da3fb 211|
9a29912f 212
8be1c2c5 213!if "$(USE_GUI)" == "1"
f98da3fb 214$(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
9bfe7ad9 215 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
dd65d8c8 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
f98da3fb 217|
8be1c2c5 218!endif
b17c1746
DE
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) $**