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 .\..\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
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
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
58 ### Conditionally set variables: ###
60 !if "$(USE_GUI)" == "0"
63 !if "$(USE_GUI)" == "1"
66 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
69 !if "$(DEBUG_FLAG)" == "1"
72 !if "$(SHARED)" == "1"
75 !if "$(UNICODE)" == "1"
78 !if "$(WXUNIV)" == "1"
81 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
84 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
87 !if "$(DEBUG_INFO)" == "0"
90 !if "$(DEBUG_INFO)" == "1"
93 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
94 __DEBUG_DEFINE_p = -D__WXDEBUG__
96 !if "$(DEBUG_FLAG)" == "1"
97 __DEBUG_DEFINE_p = -D__WXDEBUG__
99 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
100 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
102 !if "$(DEBUG_FLAG)" == "1"
103 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
105 !if "$(SHARED)" == "1"
106 __DLLFLAG_p = -DWXUSINGDLL
108 !if "$(SHARED)" == "1"
109 __DLLFLAG_p_3 = -dWXUSINGDLL
111 !if "$(USE_GUI)" == "1"
112 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
114 !if "$(USE_GUI)" == "1"
115 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
117 !if "$(USE_GUI)" == "1"
118 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
120 !if "$(BUILD)" == "debug"
123 !if "$(BUILD)" == "release"
126 !if "$(RUNTIME_LIBS)" == "dynamic"
127 __RUNTIME_LIBS = -tWR
129 !if "$(RUNTIME_LIBS)" == "static"
132 !if "$(RUNTIME_LIBS)" == "dynamic"
135 !if "$(RUNTIME_LIBS)" == "static"
138 !if "$(UNICODE)" == "1"
139 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
141 !if "$(UNICODE)" == "1"
142 __UNICODE_DEFINE_p_3 = -dwxUSE_UNICODE=1
145 __UNICOWS_LIB_p = unicows.lib
147 !if "$(MONOLITHIC)" == "0"
148 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
150 !if "$(MONOLITHIC)" == "0"
152 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
154 !if "$(MONOLITHIC)" == "0"
156 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
158 !if "$(MONOLITHIC)" == "1"
160 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
162 !if "$(WXUNIV)" == "1"
163 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
165 !if "$(WXUNIV)" == "1"
166 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
172 -if not exist $(OBJS) mkdir $(OBJS)
176 all: $(OBJS)\tex2rtf.exe $(OBJS)\tex2rtf_gui.exe
178 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
179 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
181 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
182 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
184 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
185 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
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 $**
190 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
191 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
193 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
194 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
196 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
197 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
199 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
200 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
202 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
203 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
205 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
206 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
208 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
209 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
211 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
212 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
214 $(OBJS)\tex2rtf_table.obj: .\table.cpp
215 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
217 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
218 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
220 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
221 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
223 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
224 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
226 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
227 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
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
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,,
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