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