]>
Commit | Line | Data |
---|---|---|
f98da3fb VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
c3255f5f | 3 | # Bakefile 0.1.3 (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 | ||
f98da3fb VS |
24 | OBJS = \ |
25 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
75a0a7b7 VS |
26 | SETUPHDIR = \ |
27 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
b17c1746 | 28 | TEX2RTF_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \ |
9bfe7ad9 VS |
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) | |
b17c1746 DE |
32 | TEX2RTF_OBJECTS = \ |
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) \ | |
9bfe7ad9 VS |
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) | |
f98da3fb VS |
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 | |
f98da3fb VS |
54 | |
55 | ### Conditionally set variables: ### | |
56 | ||
57 | !if "$(USE_GUI)" == "0" | |
58 | PORTNAME = base | |
59 | !endif | |
60 | !if "$(USE_GUI)" == "1" | |
61 | PORTNAME = msw | |
62 | !endif | |
63 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
64 | WXDEBUGFLAG = d | |
65 | !endif | |
66 | !if "$(DEBUG_FLAG)" == "1" | |
67 | WXDEBUGFLAG = d | |
68 | !endif | |
f98da3fb VS |
69 | !if "$(UNICODE)" == "1" |
70 | WXUNICODEFLAG = u | |
71 | !endif | |
72 | !if "$(WXUNIV)" == "1" | |
73 | WXUNIVNAME = univ | |
74 | !endif | |
b17c1746 DE |
75 | !if "$(SHARED)" == "1" |
76 | WXDLLFLAG = dll | |
f98da3fb | 77 | !endif |
b17c1746 DE |
78 | !if "$(USE_GUI)" == "1" |
79 | __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe | |
f98da3fb | 80 | !endif |
b17c1746 DE |
81 | !if "$(WXUNIV)" == "1" |
82 | __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__ | |
f98da3fb VS |
83 | !endif |
84 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
85 | __DEBUG_DEFINE_p_3 = -d__WXDEBUG__ | |
86 | !endif | |
87 | !if "$(DEBUG_FLAG)" == "1" | |
88 | __DEBUG_DEFINE_p_3 = -d__WXDEBUG__ | |
89 | !endif | |
b17c1746 DE |
90 | !if "$(UNICODE)" == "1" |
91 | __UNICODE_DEFINE_p_3 = -d_UNICODE | |
f98da3fb VS |
92 | !endif |
93 | !if "$(SHARED)" == "1" | |
94 | __DLLFLAG_p_3 = -dWXUSINGDLL | |
95 | !endif | |
b17c1746 | 96 | !if "$(MONOLITHIC)" == "0" |
5259a417 RL |
97 | __WXLIB_HTML_p = \ |
98 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib | |
99 | !endif | |
100 | !if "$(MONOLITHIC)" == "0" | |
b17c1746 DE |
101 | __WXLIB_CORE_p = \ |
102 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib | |
f98da3fb VS |
103 | !endif |
104 | !if "$(BUILD)" == "debug" | |
105 | __OPTIMIZEFLAG = -Od | |
106 | !endif | |
107 | !if "$(BUILD)" == "release" | |
108 | __OPTIMIZEFLAG = -O2 | |
109 | !endif | |
110 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
b17c1746 | 111 | __RUNTIME_LIBS = -tWR |
f98da3fb VS |
112 | !endif |
113 | !if "$(RUNTIME_LIBS)" == "static" | |
114 | __RUNTIME_LIBS = | |
115 | !endif | |
116 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
b17c1746 | 117 | __RUNTIME_LIBS_0 = i |
f98da3fb VS |
118 | !endif |
119 | !if "$(RUNTIME_LIBS)" == "static" | |
120 | __RUNTIME_LIBS_0 = | |
121 | !endif | |
b17c1746 DE |
122 | !if "$(WXUNIV)" == "1" |
123 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
124 | !endif | |
125 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
126 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
127 | !endif | |
128 | !if "$(DEBUG_FLAG)" == "1" | |
129 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
f98da3fb VS |
130 | !endif |
131 | !if "$(UNICODE)" == "1" | |
b17c1746 | 132 | __UNICODE_DEFINE_p = -D_UNICODE |
f98da3fb | 133 | !endif |
b17c1746 DE |
134 | !if "$(SHARED)" == "0" |
135 | LIBDIRNAME = .\..\..\..\lib\bcc_lib$(CFG) | |
f98da3fb | 136 | !endif |
b17c1746 DE |
137 | !if "$(SHARED)" == "1" |
138 | LIBDIRNAME = .\..\..\..\lib\bcc_dll$(CFG) | |
f98da3fb | 139 | !endif |
b17c1746 DE |
140 | !if "$(SHARED)" == "1" |
141 | __DLLFLAG_p = -DWXUSINGDLL | |
f98da3fb VS |
142 | !endif |
143 | !if "$(MONOLITHIC)" == "0" | |
b17c1746 | 144 | __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib |
f98da3fb VS |
145 | !endif |
146 | !if "$(MONOLITHIC)" == "1" | |
147 | __WXLIB_MONO_p = \ | |
148 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
149 | !endif | |
b17c1746 DE |
150 | !if "$(USE_GUI)" == "1" |
151 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib | |
f98da3fb | 152 | !endif |
b17c1746 DE |
153 | !if "$(USE_GUI)" == "1" |
154 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib | |
f98da3fb | 155 | !endif |
8be1c2c5 | 156 | !if "$(USE_GUI)" == "1" |
b17c1746 DE |
157 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib |
158 | !endif | |
159 | !if "$(MSLU)" == "1" | |
160 | __UNICOWS_LIB_p = unicows.lib | |
161 | !endif | |
162 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" | |
163 | __DEBUGINFO = -v | |
164 | !endif | |
165 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
166 | __DEBUGINFO = -v- | |
167 | !endif | |
168 | !if "$(DEBUG_INFO)" == "0" | |
169 | __DEBUGINFO = -v- | |
170 | !endif | |
171 | !if "$(DEBUG_INFO)" == "1" | |
172 | __DEBUGINFO = -v | |
8be1c2c5 | 173 | !endif |
f98da3fb VS |
174 | |
175 | ||
176 | all: $(OBJS) | |
177 | $(OBJS): | |
178 | -if not exist $(OBJS) mkdir $(OBJS) | |
179 | ||
180 | ### Targets: ### | |
181 | ||
8be1c2c5 | 182 | all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname) |
f98da3fb | 183 | |
f98da3fb VS |
184 | clean: |
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 | |
ec08d395 JS |
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 | |
f98da3fb | 193 | -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe |
ec08d395 JS |
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 | |
f98da3fb VS |
199 | |
200 | $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS) | |
9bfe7ad9 | 201 | ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -ap @&&| |
b92ca8cf | 202 | 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 $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,, |
f98da3fb | 203 | | |
9a29912f | 204 | |
8be1c2c5 | 205 | !if "$(USE_GUI)" == "1" |
f98da3fb | 206 | $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample.res |
9bfe7ad9 | 207 | ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&| |
5259a417 | 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$(WXUNICODEFLAG)$(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 |
f98da3fb | 209 | | |
8be1c2c5 | 210 | !endif |
b17c1746 DE |
211 | |
212 | $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp | |
213 | $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $** | |
214 | ||
215 | $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp | |
216 | $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $** | |
217 | ||
218 | $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp | |
219 | $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $** | |
220 | ||
221 | $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp | |
222 | $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $** | |
223 | ||
224 | $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp | |
225 | $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $** | |
226 | ||
227 | $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp | |
228 | $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $** | |
229 | ||
230 | $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp | |
231 | $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $** | |
232 | ||
233 | $(OBJS)\tex2rtf_table.obj: .\table.cpp | |
234 | $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $** | |
235 | ||
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 $** | |
238 | ||
239 | $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp | |
240 | $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $** | |
241 | ||
242 | $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp | |
243 | $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $** | |
244 | ||
245 | $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp | |
246 | $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $** | |
247 | ||
248 | $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp | |
249 | $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $** | |
250 | ||
251 | $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp | |
252 | $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $** | |
253 | ||
254 | $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp | |
255 | $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $** | |
256 | ||
257 | $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp | |
258 | $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $** | |
259 | ||
260 | $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp | |
261 | $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $** |