regenerated makefiles
[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) -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) -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 = -tWR
130 !endif
131 !if "$(RUNTIME_LIBS)" == "static"
132 __RUNTIME_LIBS = 
133 !endif
134 !if "$(RUNTIME_LIBS)" == "dynamic"
135 __RUNTIME_LIBS_0 = i
136 !endif
137 !if "$(RUNTIME_LIBS)" == "static"
138 __RUNTIME_LIBS_0 = 
139 !endif
140 !if "$(UNICODE)" == "1"
141 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
142 !endif
143 !if "$(UNICODE)" == "1"
144 __UNICODE_DEFINE_p_3 = -dwxUSE_UNICODE=1
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
171
172 all: $(OBJS)
173 $(OBJS):
174         -if not exist $(OBJS) mkdir $(OBJS)
175
176 ### Targets: ###
177
178 all: $(OBJS)\tex2rtf.exe $(OBJS)\tex2rtf_gui.exe
179
180 $(OBJS)\tex2rtf_gui_htmlutil.obj: .\htmlutil.cpp
181         $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
182
183 $(OBJS)\tex2rtf_gui_readshg.obj: .\readshg.cpp
184         $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
185
186 $(OBJS)\tex2rtf_gui_rtfutils.obj: .\rtfutils.cpp
187         $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
188
189 $(OBJS)\tex2rtf_gui_sample.res: .\..\..\..\samples\sample.rc
190         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 $**
191
192 $(OBJS)\tex2rtf_gui_table.obj: .\table.cpp
193         $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
194
195 $(OBJS)\tex2rtf_gui_tex2any.obj: .\tex2any.cpp
196         $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
197
198 $(OBJS)\tex2rtf_gui_tex2rtf.obj: .\tex2rtf.cpp
199         $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
200
201 $(OBJS)\tex2rtf_gui_texutils.obj: .\texutils.cpp
202         $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
203
204 $(OBJS)\tex2rtf_gui_xlputils.obj: .\xlputils.cpp
205         $(CXX) -q -c -P -o$@ $(TEX2RTF_GUI_CXXFLAGS) $**
206
207 $(OBJS)\tex2rtf_htmlutil.obj: .\htmlutil.cpp
208         $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
209
210 $(OBJS)\tex2rtf_readshg.obj: .\readshg.cpp
211         $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
212
213 $(OBJS)\tex2rtf_rtfutils.obj: .\rtfutils.cpp
214         $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
215
216 $(OBJS)\tex2rtf_table.obj: .\table.cpp
217         $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
218
219 $(OBJS)\tex2rtf_tex2any.obj: .\tex2any.cpp
220         $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
221
222 $(OBJS)\tex2rtf_tex2rtf.obj: .\tex2rtf.cpp
223         $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
224
225 $(OBJS)\tex2rtf_texutils.obj: .\texutils.cpp
226         $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
227
228 $(OBJS)\tex2rtf_xlputils.obj: .\xlputils.cpp
229         $(CXX) -q -c -P -o$@ $(TEX2RTF_CXXFLAGS) $**
230
231 clean: 
232         -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
233         -if exist $(OBJS)\*.res del $(OBJS)\*.res
234         -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
235         -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
236
237 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
238         ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO)  -L$(LIBDIRNAME) -ap @&&|
239         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 import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,,
240 |
241
242 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS)  $(OBJS)\tex2rtf_gui_sample.res
243         ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO)  -L$(LIBDIRNAME) -aa @&&|
244         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  import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\tex2rtf_gui_sample.res
245 |