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 # =========================================================================
11 !include ../../../build/msw/config.bcc
13 # -------------------------------------------------------------------------
14 # Do not modify the rest of this file!
15 # -------------------------------------------------------------------------
17 !if "$(BCCDIR)" == "\.."
18 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
24 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
26 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
27 TEX2RTF_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_0) -I$(BCCDIR)\include \
28 $(__DEBUGINFO) $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
29 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
30 -I$(SETUPHDIR) -I. $(__DLLFLAG_p) -DNO_GUI $(CXXFLAGS)
31 TEX2RTF_GUI_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_0) -I$(BCCDIR)\include \
32 $(__DEBUGINFO) $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
33 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
34 -I$(SETUPHDIR) -I. $(__DLLFLAG_p) -I.\..\..\..\samples $(CXXFLAGS)
35 TEX2RTF_GUI_OBJECTS = \
36 $(OBJS)\tex2rtf_gui_tex2rtf.obj \
37 $(OBJS)\tex2rtf_gui_tex2any.obj \
38 $(OBJS)\tex2rtf_gui_texutils.obj \
39 $(OBJS)\tex2rtf_gui_rtfutils.obj \
40 $(OBJS)\tex2rtf_gui_xlputils.obj \
41 $(OBJS)\tex2rtf_gui_htmlutil.obj \
42 $(OBJS)\tex2rtf_gui_readshg.obj \
43 $(OBJS)\tex2rtf_gui_table.obj
45 $(OBJS)\tex2rtf_tex2rtf.obj \
46 $(OBJS)\tex2rtf_tex2any.obj \
47 $(OBJS)\tex2rtf_texutils.obj \
48 $(OBJS)\tex2rtf_rtfutils.obj \
49 $(OBJS)\tex2rtf_xlputils.obj \
50 $(OBJS)\tex2rtf_htmlutil.obj \
51 $(OBJS)\tex2rtf_readshg.obj \
52 $(OBJS)\tex2rtf_table.obj
54 ### Conditionally set variables: ###
56 !if "$(SHARED)" == "0"
57 LIBDIRNAME = .\..\..\..\lib\bcc_lib$(CFG)
59 !if "$(SHARED)" == "1"
60 LIBDIRNAME = .\..\..\..\lib\bcc_dll$(CFG)
62 !if "$(USE_GUI)" == "0"
65 !if "$(USE_GUI)" == "1"
68 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
71 !if "$(DEBUG_FLAG)" == "1"
74 !if "$(SHARED)" == "1"
77 !if "$(UNICODE)" == "1"
80 !if "$(WXUNIV)" == "1"
83 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
86 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
89 !if "$(DEBUG_INFO)" == "0"
92 !if "$(DEBUG_INFO)" == "1"
95 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
96 __DEBUG_DEFINE_p = -D__WXDEBUG__
98 !if "$(DEBUG_FLAG)" == "1"
99 __DEBUG_DEFINE_p = -D__WXDEBUG__
101 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
102 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
104 !if "$(DEBUG_FLAG)" == "1"
105 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
107 !if "$(SHARED)" == "1"
108 __DLLFLAG_p = -DWXUSINGDLL
110 !if "$(SHARED)" == "1"
111 __DLLFLAG_p_3 = -dWXUSINGDLL
113 !if "$(USE_GUI)" == "1"
114 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
116 !if "$(USE_GUI)" == "1"
117 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
119 !if "$(USE_GUI)" == "1"
120 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
122 !if "$(BUILD)" == "debug"
125 !if "$(BUILD)" == "release"
128 !if "$(RUNTIME_LIBS)" == "dynamic"
131 !if "$(RUNTIME_LIBS)" == "static"
134 !if "$(RUNTIME_LIBS)" == "dynamic"
135 __RUNTIME_LIBS_0 = -tWR
137 !if "$(RUNTIME_LIBS)" == "static"
140 !if "$(UNICODE)" == "1"
141 __UNICODE_DEFINE_p = -D_UNICODE
143 !if "$(UNICODE)" == "1"
144 __UNICODE_DEFINE_p_3 = -d_UNICODE
147 __UNICOWS_LIB_p = unicows.lib
149 !if "$(MONOLITHIC)" == "0"
150 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
152 !if "$(MONOLITHIC)" == "0"
154 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
156 !if "$(MONOLITHIC)" == "0"
158 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
160 !if "$(MONOLITHIC)" == "1"
162 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
164 !if "$(WXUNIV)" == "1"
165 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
167 !if "$(WXUNIV)" == "1"
168 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
170 !if "$(USE_GUI)" == "1"
171 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
177 -if not exist $(OBJS) mkdir $(OBJS)
181 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
183 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
184 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
186 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
187 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
189 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
190 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
192 $(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
193 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 $**
195 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
196 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
198 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
199 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
201 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
202 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
204 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
205 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
207 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
208 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
210 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
211 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
213 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
214 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
216 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
217 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
219 $(OBJS)\tex2rtf_table.obj: .\table.cpp
220 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
222 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
223 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
225 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.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_xlputils.obj: .\xlputils.cpp
232 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
235 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
236 -if exist $(OBJS)\*.res del $(OBJS)\*.res
237 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
238 -if exist $(OBJS)\tex2rtf.tds del $(OBJS)\tex2rtf.tds
239 -if exist $(OBJS)\tex2rtf.ilc del $(OBJS)\tex2rtf.ilc
240 -if exist $(OBJS)\tex2rtf.ild del $(OBJS)\tex2rtf.ild
241 -if exist $(OBJS)\tex2rtf.ilf del $(OBJS)\tex2rtf.ilf
242 -if exist $(OBJS)\tex2rtf.ils del $(OBJS)\tex2rtf.ils
243 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
244 -if exist $(OBJS)\tex2rtf_gui.tds del $(OBJS)\tex2rtf_gui.tds
245 -if exist $(OBJS)\tex2rtf_gui.ilc del $(OBJS)\tex2rtf_gui.ilc
246 -if exist $(OBJS)\tex2rtf_gui.ild del $(OBJS)\tex2rtf_gui.ild
247 -if exist $(OBJS)\tex2rtf_gui.ilf del $(OBJS)\tex2rtf_gui.ilf
248 -if exist $(OBJS)\tex2rtf_gui.ils del $(OBJS)\tex2rtf_gui.ils
250 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
251 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO) -L$(LIBDIRNAME) -ap @&&|
252 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 import32.lib cw32mt$(__RUNTIME_LIBS).lib,,
255 !if "$(USE_GUI)" == "1"
256 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res
257 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
258 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 import32.lib cw32mt$(__RUNTIME_LIBS).lib,, $(OBJS)\tex2rtf_gui_sample.res