1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
13 BCCDIR = $(MAKEDIR)\..
16 !include ../../../build/msw/config.bcc
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 LIBDIRNAME = .\..\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
30 TEX2RTF_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
32 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
33 -DwxUSE_GUI=0 -DNO_GUI $(CPPFLAGS) $(CXXFLAGS)
35 $(OBJS)\tex2rtf_tex2rtf.obj \
36 $(OBJS)\tex2rtf_tex2any.obj \
37 $(OBJS)\tex2rtf_texutils.obj \
38 $(OBJS)\tex2rtf_rtfutils.obj \
39 $(OBJS)\tex2rtf_xlputils.obj \
40 $(OBJS)\tex2rtf_htmlutil.obj \
41 $(OBJS)\tex2rtf_readshg.obj \
42 $(OBJS)\tex2rtf_table.obj
43 TEX2RTF_GUI_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
44 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
45 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
46 -I.\..\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
47 TEX2RTF_GUI_OBJECTS = \
48 $(OBJS)\tex2rtf_gui_tex2rtf.obj \
49 $(OBJS)\tex2rtf_gui_tex2any.obj \
50 $(OBJS)\tex2rtf_gui_texutils.obj \
51 $(OBJS)\tex2rtf_gui_rtfutils.obj \
52 $(OBJS)\tex2rtf_gui_xlputils.obj \
53 $(OBJS)\tex2rtf_gui_htmlutil.obj \
54 $(OBJS)\tex2rtf_gui_readshg.obj \
55 $(OBJS)\tex2rtf_gui_table.obj
57 ### Conditionally set variables: ###
59 !if "$(USE_GUI)" == "0"
62 !if "$(USE_GUI)" == "1"
65 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
68 !if "$(DEBUG_FLAG)" == "1"
71 !if "$(UNICODE)" == "1"
74 !if "$(WXUNIV)" == "1"
77 !if "$(SHARED)" == "1"
80 !if "$(SHARED)" == "0"
83 !if "$(SHARED)" == "1"
86 !if "$(MONOLITHIC)" == "0"
89 !if "$(MONOLITHIC)" == "1"
92 !if "$(USE_GUI)" == "1"
93 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
95 !if "$(WXUNIV)" == "1"
96 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
98 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
99 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
101 !if "$(DEBUG_FLAG)" == "1"
102 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
104 !if "$(UNICODE)" == "1"
105 __UNICODE_DEFINE_p_3 = -d_UNICODE
107 !if "$(SHARED)" == "1"
108 __DLLFLAG_p_3 = -dWXUSINGDLL
110 !if "$(MONOLITHIC)" == "0"
112 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
114 !if "$(MONOLITHIC)" == "0"
116 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
118 !if "$(BUILD)" == "debug"
121 !if "$(BUILD)" == "release"
124 !if "$(RUNTIME_LIBS)" == "dynamic"
125 __RUNTIME_LIBS = -tWR
127 !if "$(RUNTIME_LIBS)" == "static"
130 !if "$(RUNTIME_LIBS)" == "dynamic"
133 !if "$(RUNTIME_LIBS)" == "static"
136 !if "$(WXUNIV)" == "1"
137 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
139 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
140 __DEBUG_DEFINE_p = -D__WXDEBUG__
142 !if "$(DEBUG_FLAG)" == "1"
143 __DEBUG_DEFINE_p = -D__WXDEBUG__
145 !if "$(UNICODE)" == "1"
146 __UNICODE_DEFINE_p = -D_UNICODE
148 !if "$(SHARED)" == "1"
149 __DLLFLAG_p = -DWXUSINGDLL
151 !if "$(MONOLITHIC)" == "0"
153 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
155 !if "$(MONOLITHIC)" == "1"
157 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
159 !if "$(USE_GUI)" == "1"
160 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
162 !if "$(USE_GUI)" == "1"
163 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
165 !if "$(USE_GUI)" == "1"
166 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
169 __UNICOWS_LIB_p = unicows.lib
171 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
174 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
177 !if "$(DEBUG_INFO)" == "0"
180 !if "$(DEBUG_INFO)" == "1"
187 -if not exist $(OBJS) mkdir $(OBJS)
191 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
194 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
195 -if exist $(OBJS)\*.res del $(OBJS)\*.res
196 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
197 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
198 -if exist $(OBJS)\tex2rtf.tds del $(OBJS)\tex2rtf.tds
199 -if exist $(OBJS)\tex2rtf.ilc del $(OBJS)\tex2rtf.ilc
200 -if exist $(OBJS)\tex2rtf.ild del $(OBJS)\tex2rtf.ild
201 -if exist $(OBJS)\tex2rtf.ilf del $(OBJS)\tex2rtf.ilf
202 -if exist $(OBJS)\tex2rtf.ils del $(OBJS)\tex2rtf.ils
203 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
204 -if exist $(OBJS)\tex2rtf_gui.tds del $(OBJS)\tex2rtf_gui.tds
205 -if exist $(OBJS)\tex2rtf_gui.ilc del $(OBJS)\tex2rtf_gui.ilc
206 -if exist $(OBJS)\tex2rtf_gui.ild del $(OBJS)\tex2rtf_gui.ild
207 -if exist $(OBJS)\tex2rtf_gui.ilf del $(OBJS)\tex2rtf_gui.ilf
208 -if exist $(OBJS)\tex2rtf_gui.ils del $(OBJS)\tex2rtf_gui.ils
210 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
211 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap @&&|
212 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,,
215 !if "$(USE_GUI)" == "1"
216 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
217 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
218 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
222 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
223 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
225 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
226 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
228 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
229 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
231 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
232 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
234 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
235 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
237 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
238 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
240 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
241 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
243 $(OBJS)\tex2rtf_table.obj: .\table.cpp
244 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
246 $(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
247 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 $**
249 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
250 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
252 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
253 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
255 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
256 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
258 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
259 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
261 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
262 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
264 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
265 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
267 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
268 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
270 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
271 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**