]>
Commit | Line | Data |
---|---|---|
f98da3fb VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
162a956b | 3 | # Bakefile 0.1.6 (http://bakefile.sourceforge.net) |
f98da3fb VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
9a29912f | 6 | |
9bfe7ad9 VS |
7 | .autodepend |
8 | ||
f98da3fb | 9 | !ifndef BCCDIR |
9bfe7ad9 VS |
10 | !ifndef MAKEDIR |
11 | !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4 | |
12 | !endif | |
f98da3fb | 13 | BCCDIR = $(MAKEDIR)\.. |
9a29912f JS |
14 | !endif |
15 | ||
f98da3fb | 16 | !include ../../../build/msw/config.bcc |
9a29912f | 17 | |
f98da3fb VS |
18 | # ------------------------------------------------------------------------- |
19 | # Do not modify the rest of this file! | |
20 | # ------------------------------------------------------------------------- | |
9a29912f | 21 | |
f98da3fb VS |
22 | ### Variables: ### |
23 | ||
c33fae85 | 24 | WX_RELEASE_NODOT = 25 |
f98da3fb VS |
25 | OBJS = \ |
26 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
162a956b | 27 | LIBDIRNAME = .\..\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG) |
75a0a7b7 VS |
28 | SETUPHDIR = \ |
29 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
b17c1746 | 30 | TEX2RTF_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \ |
9bfe7ad9 VS |
31 | $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
32 | $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \ | |
162a956b | 33 | -DwxUSE_GUI=0 -DNO_GUI $(CPPFLAGS) $(CXXFLAGS) |
b17c1746 DE |
34 | TEX2RTF_OBJECTS = \ |
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) \ | |
9bfe7ad9 VS |
44 | $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
45 | $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \ | |
c33fae85 | 46 | -I.\..\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS) |
f98da3fb VS |
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 | |
f98da3fb VS |
56 | |
57 | ### Conditionally set variables: ### | |
58 | ||
59 | !if "$(USE_GUI)" == "0" | |
60 | PORTNAME = base | |
61 | !endif | |
62 | !if "$(USE_GUI)" == "1" | |
63 | PORTNAME = msw | |
64 | !endif | |
65 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
66 | WXDEBUGFLAG = d | |
67 | !endif | |
68 | !if "$(DEBUG_FLAG)" == "1" | |
69 | WXDEBUGFLAG = d | |
70 | !endif | |
f98da3fb VS |
71 | !if "$(UNICODE)" == "1" |
72 | WXUNICODEFLAG = u | |
73 | !endif | |
74 | !if "$(WXUNIV)" == "1" | |
75 | WXUNIVNAME = univ | |
76 | !endif | |
b17c1746 DE |
77 | !if "$(SHARED)" == "1" |
78 | WXDLLFLAG = dll | |
f98da3fb | 79 | !endif |
162a956b JS |
80 | !if "$(SHARED)" == "0" |
81 | LIBTYPE_SUFFIX = lib | |
82 | !endif | |
83 | !if "$(SHARED)" == "1" | |
84 | LIBTYPE_SUFFIX = dll | |
85 | !endif | |
dd65d8c8 RN |
86 | !if "$(MONOLITHIC)" == "0" |
87 | EXTRALIBS_FOR_BASE = | |
88 | !endif | |
89 | !if "$(MONOLITHIC)" == "1" | |
90 | EXTRALIBS_FOR_BASE = | |
91 | !endif | |
b17c1746 DE |
92 | !if "$(USE_GUI)" == "1" |
93 | __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe | |
f98da3fb | 94 | !endif |
b17c1746 DE |
95 | !if "$(WXUNIV)" == "1" |
96 | __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__ | |
f98da3fb VS |
97 | !endif |
98 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
99 | __DEBUG_DEFINE_p_3 = -d__WXDEBUG__ | |
100 | !endif | |
101 | !if "$(DEBUG_FLAG)" == "1" | |
102 | __DEBUG_DEFINE_p_3 = -d__WXDEBUG__ | |
103 | !endif | |
b17c1746 DE |
104 | !if "$(UNICODE)" == "1" |
105 | __UNICODE_DEFINE_p_3 = -d_UNICODE | |
f98da3fb VS |
106 | !endif |
107 | !if "$(SHARED)" == "1" | |
108 | __DLLFLAG_p_3 = -dWXUSINGDLL | |
109 | !endif | |
b17c1746 | 110 | !if "$(MONOLITHIC)" == "0" |
5259a417 | 111 | __WXLIB_HTML_p = \ |
c33fae85 | 112 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib |
5259a417 RL |
113 | !endif |
114 | !if "$(MONOLITHIC)" == "0" | |
b17c1746 | 115 | __WXLIB_CORE_p = \ |
c33fae85 | 116 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib |
f98da3fb VS |
117 | !endif |
118 | !if "$(BUILD)" == "debug" | |
119 | __OPTIMIZEFLAG = -Od | |
120 | !endif | |
121 | !if "$(BUILD)" == "release" | |
122 | __OPTIMIZEFLAG = -O2 | |
123 | !endif | |
124 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
b17c1746 | 125 | __RUNTIME_LIBS = -tWR |
f98da3fb VS |
126 | !endif |
127 | !if "$(RUNTIME_LIBS)" == "static" | |
128 | __RUNTIME_LIBS = | |
129 | !endif | |
130 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
b17c1746 | 131 | __RUNTIME_LIBS_0 = i |
f98da3fb VS |
132 | !endif |
133 | !if "$(RUNTIME_LIBS)" == "static" | |
134 | __RUNTIME_LIBS_0 = | |
135 | !endif | |
b17c1746 DE |
136 | !if "$(WXUNIV)" == "1" |
137 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
138 | !endif | |
139 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
140 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
141 | !endif | |
142 | !if "$(DEBUG_FLAG)" == "1" | |
143 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
f98da3fb VS |
144 | !endif |
145 | !if "$(UNICODE)" == "1" | |
b17c1746 | 146 | __UNICODE_DEFINE_p = -D_UNICODE |
f98da3fb | 147 | !endif |
b17c1746 DE |
148 | !if "$(SHARED)" == "1" |
149 | __DLLFLAG_p = -DWXUSINGDLL | |
f98da3fb VS |
150 | !endif |
151 | !if "$(MONOLITHIC)" == "0" | |
c33fae85 RN |
152 | __WXLIB_BASE_p = \ |
153 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib | |
f98da3fb VS |
154 | !endif |
155 | !if "$(MONOLITHIC)" == "1" | |
156 | __WXLIB_MONO_p = \ | |
c33fae85 | 157 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib |
f98da3fb | 158 | !endif |
b17c1746 | 159 | !if "$(USE_GUI)" == "1" |
9c2d002b | 160 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib |
f98da3fb | 161 | !endif |
b17c1746 | 162 | !if "$(USE_GUI)" == "1" |
9c2d002b | 163 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib |
f98da3fb | 164 | !endif |
8be1c2c5 | 165 | !if "$(USE_GUI)" == "1" |
9c2d002b | 166 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib |
b17c1746 DE |
167 | !endif |
168 | !if "$(MSLU)" == "1" | |
169 | __UNICOWS_LIB_p = unicows.lib | |
170 | !endif | |
171 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" | |
172 | __DEBUGINFO = -v | |
173 | !endif | |
174 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
175 | __DEBUGINFO = -v- | |
176 | !endif | |
177 | !if "$(DEBUG_INFO)" == "0" | |
178 | __DEBUGINFO = -v- | |
179 | !endif | |
180 | !if "$(DEBUG_INFO)" == "1" | |
181 | __DEBUGINFO = -v | |
8be1c2c5 | 182 | !endif |
f98da3fb VS |
183 | |
184 | ||
185 | all: $(OBJS) | |
186 | $(OBJS): | |
187 | -if not exist $(OBJS) mkdir $(OBJS) | |
188 | ||
189 | ### Targets: ### | |
190 | ||
8be1c2c5 | 191 | all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname) |
f98da3fb | 192 | |
f98da3fb VS |
193 | clean: |
194 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
195 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
162a956b | 196 | -if exist $(OBJS)\*.csm del $(OBJS)\*.csm |
f98da3fb | 197 | -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe |
ec08d395 JS |
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 | |
f98da3fb | 203 | -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe |
ec08d395 JS |
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 | |
f98da3fb VS |
209 | |
210 | $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS) | |
9bfe7ad9 | 211 | ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap @&&| |
dd65d8c8 | 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,, |
f98da3fb | 213 | | |
9a29912f | 214 | |
8be1c2c5 | 215 | !if "$(USE_GUI)" == "1" |
f98da3fb | 216 | $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res |
9bfe7ad9 | 217 | ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&| |
dd65d8c8 | 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 |
f98da3fb | 219 | | |
8be1c2c5 | 220 | !endif |
b17c1746 DE |
221 | |
222 | $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp | |
223 | $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $** | |
224 | ||
225 | $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp | |
226 | $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $** | |
227 | ||
228 | $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp | |
229 | $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $** | |
230 | ||
231 | $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp | |
232 | $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $** | |
233 | ||
234 | $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp | |
235 | $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $** | |
236 | ||
237 | $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp | |
238 | $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $** | |
239 | ||
240 | $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp | |
241 | $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $** | |
242 | ||
243 | $(OBJS)\tex2rtf_table.obj: .\table.cpp | |
244 | $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $** | |
245 | ||
246 | $(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc | |
162a956b | 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 $** |
b17c1746 DE |
248 | |
249 | $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp | |
250 | $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $** | |
251 | ||
252 | $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp | |
253 | $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $** | |
254 | ||
255 | $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp | |
256 | $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $** | |
257 | ||
258 | $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp | |
259 | $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $** | |
260 | ||
261 | $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp | |
262 | $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $** | |
263 | ||
264 | $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp | |
265 | $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $** | |
266 | ||
267 | $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp | |
268 | $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $** | |
269 | ||
270 | $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp | |
271 | $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $** | |
162a956b | 272 |