1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.3 (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 # -------------------------------------------------------------------------
25 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
28 TEX2RTF_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
29 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
30 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
31 -DNO_GUI $(CPPFLAGS) $(CXXFLAGS)
33 $(OBJS)\tex2rtf_tex2rtf.obj \
34 $(OBJS)\tex2rtf_tex2any.obj \
35 $(OBJS)\tex2rtf_texutils.obj \
36 $(OBJS)\tex2rtf_rtfutils.obj \
37 $(OBJS)\tex2rtf_xlputils.obj \
38 $(OBJS)\tex2rtf_htmlutil.obj \
39 $(OBJS)\tex2rtf_readshg.obj \
40 $(OBJS)\tex2rtf_table.obj
41 TEX2RTF_GUI_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
42 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
43 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
44 -I.\..\..\..\samples $(CPPFLAGS) $(CXXFLAGS)
45 TEX2RTF_GUI_OBJECTS = \
46 $(OBJS)\tex2rtf_gui_tex2rtf.obj \
47 $(OBJS)\tex2rtf_gui_tex2any.obj \
48 $(OBJS)\tex2rtf_gui_texutils.obj \
49 $(OBJS)\tex2rtf_gui_rtfutils.obj \
50 $(OBJS)\tex2rtf_gui_xlputils.obj \
51 $(OBJS)\tex2rtf_gui_htmlutil.obj \
52 $(OBJS)\tex2rtf_gui_readshg.obj \
53 $(OBJS)\tex2rtf_gui_table.obj
55 ### Conditionally set variables: ###
57 !if "$(USE_GUI)" == "0"
60 !if "$(USE_GUI)" == "1"
63 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
66 !if "$(DEBUG_FLAG)" == "1"
69 !if "$(UNICODE)" == "1"
72 !if "$(WXUNIV)" == "1"
75 !if "$(SHARED)" == "1"
78 !if "$(USE_GUI)" == "1"
79 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
81 !if "$(WXUNIV)" == "1"
82 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
84 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
85 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
87 !if "$(DEBUG_FLAG)" == "1"
88 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
90 !if "$(UNICODE)" == "1"
91 __UNICODE_DEFINE_p_3 = -d_UNICODE
93 !if "$(SHARED)" == "1"
94 __DLLFLAG_p_3 = -dWXUSINGDLL
96 !if "$(MONOLITHIC)" == "0"
98 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
100 !if "$(MONOLITHIC)" == "0"
102 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
104 !if "$(BUILD)" == "debug"
107 !if "$(BUILD)" == "release"
110 !if "$(RUNTIME_LIBS)" == "dynamic"
111 __RUNTIME_LIBS = -tWR
113 !if "$(RUNTIME_LIBS)" == "static"
116 !if "$(RUNTIME_LIBS)" == "dynamic"
119 !if "$(RUNTIME_LIBS)" == "static"
122 !if "$(WXUNIV)" == "1"
123 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
125 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
126 __DEBUG_DEFINE_p = -D__WXDEBUG__
128 !if "$(DEBUG_FLAG)" == "1"
129 __DEBUG_DEFINE_p = -D__WXDEBUG__
131 !if "$(UNICODE)" == "1"
132 __UNICODE_DEFINE_p = -D_UNICODE
134 !if "$(SHARED)" == "0"
135 LIBDIRNAME = .\..\..\..\lib\bcc_lib$(CFG)
137 !if "$(SHARED)" == "1"
138 LIBDIRNAME = .\..\..\..\lib\bcc_dll$(CFG)
140 !if "$(SHARED)" == "1"
141 __DLLFLAG_p = -DWXUSINGDLL
143 !if "$(MONOLITHIC)" == "0"
144 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
146 !if "$(MONOLITHIC)" == "1"
148 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
150 !if "$(USE_GUI)" == "1"
151 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
153 !if "$(USE_GUI)" == "1"
154 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
156 !if "$(USE_GUI)" == "1"
157 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
160 __UNICOWS_LIB_p = unicows.lib
162 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
165 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
168 !if "$(DEBUG_INFO)" == "0"
171 !if "$(DEBUG_INFO)" == "1"
178 -if not exist $(OBJS) mkdir $(OBJS)
182 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
185 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
186 -if exist $(OBJS)\*.res del $(OBJS)\*.res
187 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
188 -if exist $(OBJS)\tex2rtf.tds del $(OBJS)\tex2rtf.tds
189 -if exist $(OBJS)\tex2rtf.ilc del $(OBJS)\tex2rtf.ilc
190 -if exist $(OBJS)\tex2rtf.ild del $(OBJS)\tex2rtf.ild
191 -if exist $(OBJS)\tex2rtf.ilf del $(OBJS)\tex2rtf.ilf
192 -if exist $(OBJS)\tex2rtf.ils del $(OBJS)\tex2rtf.ils
193 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
194 -if exist $(OBJS)\tex2rtf_gui.tds del $(OBJS)\tex2rtf_gui.tds
195 -if exist $(OBJS)\tex2rtf_gui.ilc del $(OBJS)\tex2rtf_gui.ilc
196 -if exist $(OBJS)\tex2rtf_gui.ild del $(OBJS)\tex2rtf_gui.ild
197 -if exist $(OBJS)\tex2rtf_gui.ilf del $(OBJS)\tex2rtf_gui.ilf
198 -if exist $(OBJS)\tex2rtf_gui.ils del $(OBJS)\tex2rtf_gui.ils
200 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
201 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap @&&|
202 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) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,,
205 !if "$(USE_GUI)" == "1"
206 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
207 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
208 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) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\tex2rtf_gui_sample.res
212 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
213 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
215 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
216 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
218 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
219 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
221 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
222 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
224 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
225 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
227 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
228 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
230 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
231 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
233 $(OBJS)\tex2rtf_table.obj: .\table.cpp
234 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
236 $(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
237 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 $**
239 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
240 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
242 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
243 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
245 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
246 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
248 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
249 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
251 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
252 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
254 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
255 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
257 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
258 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
260 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
261 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**