]> git.saurik.com Git - wxWidgets.git/blob - utils/tex2rtf/src/makefile.bcc
16864bdbaeea59d6af43921d3402c5c7695481a5
[wxWidgets.git] / utils / tex2rtf / src / makefile.bcc
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 # =========================================================================
6
7 !ifndef BCCDIR
8 BCCDIR = $(MAKEDIR)\..
9 !endif
10
11 !include ../../../build/msw/config.bcc
12
13 # -------------------------------------------------------------------------
14 # Do not modify the rest of this file!
15 # -------------------------------------------------------------------------
16
17 !if "$(BCCDIR)" == "\.."
18 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
19 !endif
20
21 ### Variables: ###
22
23 OBJS = \
24 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
25 SETUPHDIR = \
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
44 TEX2RTF_OBJECTS = \
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
53
54 ### Conditionally set variables: ###
55
56 !if "$(SHARED)" == "0"
57 LIBDIRNAME = .\..\..\..\lib\bcc_lib$(CFG)
58 !endif
59 !if "$(SHARED)" == "1"
60 LIBDIRNAME = .\..\..\..\lib\bcc_dll$(CFG)
61 !endif
62 !if "$(USE_GUI)" == "0"
63 PORTNAME = base
64 !endif
65 !if "$(USE_GUI)" == "1"
66 PORTNAME = msw
67 !endif
68 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
69 WXDEBUGFLAG = d
70 !endif
71 !if "$(DEBUG_FLAG)" == "1"
72 WXDEBUGFLAG = d
73 !endif
74 !if "$(SHARED)" == "1"
75 WXDLLFLAG = dll
76 !endif
77 !if "$(UNICODE)" == "1"
78 WXUNICODEFLAG = u
79 !endif
80 !if "$(WXUNIV)" == "1"
81 WXUNIVNAME = univ
82 !endif
83 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
84 __DEBUGINFO = -v
85 !endif
86 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
87 __DEBUGINFO = -v-
88 !endif
89 !if "$(DEBUG_INFO)" == "0"
90 __DEBUGINFO = -v-
91 !endif
92 !if "$(DEBUG_INFO)" == "1"
93 __DEBUGINFO = -v
94 !endif
95 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
96 __DEBUG_DEFINE_p = -D__WXDEBUG__
97 !endif
98 !if "$(DEBUG_FLAG)" == "1"
99 __DEBUG_DEFINE_p = -D__WXDEBUG__
100 !endif
101 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
102 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
103 !endif
104 !if "$(DEBUG_FLAG)" == "1"
105 __DEBUG_DEFINE_p_3 = -d__WXDEBUG__
106 !endif
107 !if "$(SHARED)" == "1"
108 __DLLFLAG_p = -DWXUSINGDLL
109 !endif
110 !if "$(SHARED)" == "1"
111 __DLLFLAG_p_3 = -dWXUSINGDLL
112 !endif
113 !if "$(USE_GUI)" == "1"
114 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
115 !endif
116 !if "$(USE_GUI)" == "1"
117 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
118 !endif
119 !if "$(USE_GUI)" == "1"
120 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
121 !endif
122 !if "$(BUILD)" == "debug"
123 __OPTIMIZEFLAG = -Od
124 !endif
125 !if "$(BUILD)" == "release"
126 __OPTIMIZEFLAG = -O2
127 !endif
128 !if "$(RUNTIME_LIBS)" == "dynamic"
129 __RUNTIME_LIBS = i
130 !endif
131 !if "$(RUNTIME_LIBS)" == "static"
132 __RUNTIME_LIBS =
133 !endif
134 !if "$(RUNTIME_LIBS)" == "dynamic"
135 __RUNTIME_LIBS_0 = -tWR
136 !endif
137 !if "$(RUNTIME_LIBS)" == "static"
138 __RUNTIME_LIBS_0 =
139 !endif
140 !if "$(UNICODE)" == "1"
141 __UNICODE_DEFINE_p = -D_UNICODE
142 !endif
143 !if "$(UNICODE)" == "1"
144 __UNICODE_DEFINE_p_3 = -d_UNICODE
145 !endif
146 !if "$(MSLU)" == "1"
147 __UNICOWS_LIB_p = unicows.lib
148 !endif
149 !if "$(MONOLITHIC)" == "0"
150 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
151 !endif
152 !if "$(MONOLITHIC)" == "0"
153 __WXLIB_CORE_p = \
154 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
155 !endif
156 !if "$(MONOLITHIC)" == "0"
157 __WXLIB_HTML_p = \
158 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
159 !endif
160 !if "$(MONOLITHIC)" == "1"
161 __WXLIB_MONO_p = \
162 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
163 !endif
164 !if "$(WXUNIV)" == "1"
165 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
166 !endif
167 !if "$(WXUNIV)" == "1"
168 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
169 !endif
170 !if "$(USE_GUI)" == "1"
171 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
172 !endif
173
174
175 all: $(OBJS)
176 $(OBJS):
177 -if not exist $(OBJS) mkdir $(OBJS)
178
179 ### Targets: ###
180
181 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
182
183 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
184 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
185
186 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
187 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
188
189 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
190 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
191
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 $**
194
195 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
196 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
197
198 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
199 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
200
201 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
202 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
203
204 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
205 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
206
207 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
208 $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
209
210 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
211 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
212
213 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
214 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
215
216 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
217 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
218
219 $(OBJS)\tex2rtf_table.obj: .\table.cpp
220 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
221
222 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
223 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
224
225 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.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_xlputils.obj: .\xlputils.cpp
232 $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
233
234 clean:
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
249
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,,
253 |
254
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
259 |
260 !endif