]>
Commit | Line | Data |
---|---|---|
f98da3fb VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
25bb1412 | 3 | # Bakefile 0.2.1 (http://bakefile.sourceforge.net) |
f98da3fb VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
7 | include ../../../build/msw/config.gcc | |
8 | ||
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
0d90d6ea | 15 | CPPDEPS = -MT$@ -MF$@.d -MD |
25bb1412 | 16 | WX_RELEASE_NODOT = 28 |
f98da3fb VS |
17 | OBJS = \ |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
162a956b | 19 | LIBDIRNAME = .\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
75a0a7b7 VS |
20 | SETUPHDIR = \ |
21 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
22 | TEX2RTF_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \ |
23 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
24 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
2113bc77 | 25 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \ |
3abcf424 RD |
26 | $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\include -W -Wall -I. \ |
27 | $(__DLLFLAG_p) -DwxUSE_GUI=0 -DNO_GUI $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \ | |
28 | -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
b17c1746 DE |
29 | TEX2RTF_OBJECTS = \ |
30 | $(OBJS)\tex2rtf_tex2rtf.o \ | |
31 | $(OBJS)\tex2rtf_tex2any.o \ | |
32 | $(OBJS)\tex2rtf_texutils.o \ | |
33 | $(OBJS)\tex2rtf_rtfutils.o \ | |
34 | $(OBJS)\tex2rtf_xlputils.o \ | |
35 | $(OBJS)\tex2rtf_htmlutil.o \ | |
36 | $(OBJS)\tex2rtf_readshg.o \ | |
37 | $(OBJS)\tex2rtf_table.o | |
8c9f8f91 JS |
38 | TEX2RTF_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \ |
39 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
40 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
2113bc77 | 41 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \ |
3abcf424 RD |
42 | $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\include -W -Wall -I. \ |
43 | $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH $(__RTTIFLAG) \ | |
44 | $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
f98da3fb VS |
45 | TEX2RTF_GUI_OBJECTS = \ |
46 | $(OBJS)\tex2rtf_gui_sample_rc.o \ | |
47 | $(OBJS)\tex2rtf_gui_tex2rtf.o \ | |
48 | $(OBJS)\tex2rtf_gui_tex2any.o \ | |
49 | $(OBJS)\tex2rtf_gui_texutils.o \ | |
50 | $(OBJS)\tex2rtf_gui_rtfutils.o \ | |
51 | $(OBJS)\tex2rtf_gui_xlputils.o \ | |
52 | $(OBJS)\tex2rtf_gui_htmlutil.o \ | |
53 | $(OBJS)\tex2rtf_gui_readshg.o \ | |
54 | $(OBJS)\tex2rtf_gui_table.o | |
f98da3fb VS |
55 | |
56 | ### Conditionally set variables: ### | |
57 | ||
58 | ifeq ($(GCC_VERSION),2.95) | |
59 | GCCFLAGS = -fvtable-thunks | |
60 | endif | |
61 | ifeq ($(USE_GUI),0) | |
62 | PORTNAME = base | |
63 | endif | |
64 | ifeq ($(USE_GUI),1) | |
65 | PORTNAME = msw | |
66 | endif | |
67 | ifeq ($(BUILD),debug) | |
68 | ifeq ($(DEBUG_FLAG),default) | |
69 | WXDEBUGFLAG = d | |
70 | endif | |
71 | endif | |
72 | ifeq ($(DEBUG_FLAG),1) | |
73 | WXDEBUGFLAG = d | |
74 | endif | |
f98da3fb VS |
75 | ifeq ($(UNICODE),1) |
76 | WXUNICODEFLAG = u | |
77 | endif | |
78 | ifeq ($(WXUNIV),1) | |
79 | WXUNIVNAME = univ | |
80 | endif | |
b17c1746 DE |
81 | ifeq ($(SHARED),1) |
82 | WXDLLFLAG = dll | |
f98da3fb | 83 | endif |
162a956b JS |
84 | ifeq ($(SHARED),0) |
85 | LIBTYPE_SUFFIX = lib | |
86 | endif | |
87 | ifeq ($(SHARED),1) | |
88 | LIBTYPE_SUFFIX = dll | |
89 | endif | |
dd65d8c8 RN |
90 | ifeq ($(MONOLITHIC),0) |
91 | EXTRALIBS_FOR_BASE = | |
92 | endif | |
93 | ifeq ($(MONOLITHIC),1) | |
94 | EXTRALIBS_FOR_BASE = | |
95 | endif | |
b17c1746 DE |
96 | ifeq ($(USE_GUI),1) |
97 | __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe | |
f98da3fb | 98 | endif |
b17c1746 DE |
99 | ifeq ($(WXUNIV),1) |
100 | __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__ | |
f98da3fb VS |
101 | endif |
102 | ifeq ($(BUILD),debug) | |
103 | ifeq ($(DEBUG_FLAG),default) | |
104 | __DEBUG_DEFINE_p_3 = --define __WXDEBUG__ | |
105 | endif | |
106 | endif | |
107 | ifeq ($(DEBUG_FLAG),1) | |
108 | __DEBUG_DEFINE_p_3 = --define __WXDEBUG__ | |
109 | endif | |
8c9f8f91 JS |
110 | ifeq ($(USE_EXCEPTIONS),0) |
111 | __EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS | |
112 | endif | |
113 | ifeq ($(USE_RTTI),0) | |
114 | __RTTI_DEFINE_p_3 = --define wxNO_RTTI | |
115 | endif | |
116 | ifeq ($(USE_THREADS),0) | |
117 | __THREAD_DEFINE_p_3 = --define wxNO_THREADS | |
118 | endif | |
b17c1746 DE |
119 | ifeq ($(UNICODE),1) |
120 | __UNICODE_DEFINE_p_3 = --define _UNICODE | |
f98da3fb | 121 | endif |
2113bc77 MW |
122 | ifeq ($(MSLU),1) |
123 | __MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=1 | |
124 | endif | |
3abcf424 RD |
125 | ifeq ($(USE_GDIPLUS),1) |
126 | __GFXCTX_DEFINE_p_3 = --define wxUSE_GRAPHICS_CONTEXT=1 | |
127 | endif | |
f98da3fb VS |
128 | ifeq ($(SHARED),1) |
129 | __DLLFLAG_p_3 = --define WXUSINGDLL | |
130 | endif | |
b17c1746 | 131 | ifeq ($(MONOLITHIC),0) |
5259a417 | 132 | __WXLIB_HTML_p = \ |
c33fae85 | 133 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html |
5259a417 RL |
134 | endif |
135 | ifeq ($(MONOLITHIC),0) | |
b17c1746 | 136 | __WXLIB_CORE_p = \ |
c33fae85 | 137 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b17c1746 | 138 | endif |
3b2cb431 JS |
139 | ifeq ($(USE_GUI),1) |
140 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
141 | endif | |
142 | ifeq ($(USE_GUI),1) | |
143 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
144 | endif | |
145 | ifeq ($(USE_GUI),1) | |
146 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
147 | endif | |
b17c1746 DE |
148 | ifeq ($(BUILD),debug) |
149 | __OPTIMIZEFLAG = -O0 | |
150 | endif | |
151 | ifeq ($(BUILD),release) | |
152 | __OPTIMIZEFLAG = -O2 | |
153 | endif | |
8c9f8f91 JS |
154 | ifeq ($(USE_RTTI),0) |
155 | __RTTIFLAG = -fno-rtti | |
a4ad36cd | 156 | endif |
8c9f8f91 JS |
157 | ifeq ($(USE_RTTI),1) |
158 | __RTTIFLAG = | |
a4ad36cd VS |
159 | endif |
160 | ifeq ($(USE_EXCEPTIONS),0) | |
8c9f8f91 | 161 | __EXCEPTIONSFLAG = -fno-exceptions |
a4ad36cd VS |
162 | endif |
163 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 164 | __EXCEPTIONSFLAG = |
a4ad36cd | 165 | endif |
b17c1746 DE |
166 | ifeq ($(WXUNIV),1) |
167 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
f98da3fb VS |
168 | endif |
169 | ifeq ($(BUILD),debug) | |
b17c1746 DE |
170 | ifeq ($(DEBUG_FLAG),default) |
171 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
f98da3fb | 172 | endif |
f98da3fb | 173 | endif |
b17c1746 DE |
174 | ifeq ($(DEBUG_FLAG),1) |
175 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
f98da3fb | 176 | endif |
8c9f8f91 JS |
177 | ifeq ($(USE_EXCEPTIONS),0) |
178 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
179 | endif | |
180 | ifeq ($(USE_RTTI),0) | |
181 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
182 | endif | |
183 | ifeq ($(USE_THREADS),0) | |
184 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
185 | endif | |
f98da3fb | 186 | ifeq ($(UNICODE),1) |
b17c1746 | 187 | __UNICODE_DEFINE_p = -D_UNICODE |
f98da3fb | 188 | endif |
2113bc77 MW |
189 | ifeq ($(MSLU),1) |
190 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1 | |
191 | endif | |
3abcf424 RD |
192 | ifeq ($(USE_GDIPLUS),1) |
193 | __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1 | |
194 | endif | |
b17c1746 DE |
195 | ifeq ($(SHARED),1) |
196 | __DLLFLAG_p = -DWXUSINGDLL | |
f98da3fb VS |
197 | endif |
198 | ifeq ($(MONOLITHIC),0) | |
c33fae85 RN |
199 | __WXLIB_BASE_p = \ |
200 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
f98da3fb VS |
201 | endif |
202 | ifeq ($(MONOLITHIC),1) | |
203 | __WXLIB_MONO_p = \ | |
c33fae85 | 204 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
f98da3fb | 205 | endif |
b17c1746 DE |
206 | ifeq ($(MSLU),1) |
207 | __UNICOWS_LIB_p = -lunicows | |
208 | endif | |
3abcf424 RD |
209 | ifeq ($(USE_GDIPLUS),1) |
210 | __GDIPLUS_LIB_p = -lgdiplus | |
211 | endif | |
b17c1746 DE |
212 | ifeq ($(BUILD),debug) |
213 | ifeq ($(DEBUG_INFO),default) | |
214 | __DEBUGINFO = -g | |
215 | endif | |
216 | endif | |
217 | ifeq ($(BUILD),release) | |
218 | ifeq ($(DEBUG_INFO),default) | |
219 | __DEBUGINFO = | |
220 | endif | |
221 | endif | |
222 | ifeq ($(DEBUG_INFO),0) | |
223 | __DEBUGINFO = | |
224 | endif | |
225 | ifeq ($(DEBUG_INFO),1) | |
226 | __DEBUGINFO = -g | |
8be1c2c5 | 227 | endif |
8c9f8f91 JS |
228 | ifeq ($(USE_THREADS),0) |
229 | __THREADSFLAG = | |
230 | endif | |
231 | ifeq ($(USE_THREADS),1) | |
232 | __THREADSFLAG = -mthreads | |
233 | endif | |
f98da3fb VS |
234 | |
235 | ||
236 | all: $(OBJS) | |
237 | $(OBJS): | |
238 | -if not exist $(OBJS) mkdir $(OBJS) | |
239 | ||
240 | ### Targets: ### | |
241 | ||
8be1c2c5 | 242 | all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname) |
f98da3fb | 243 | |
b17c1746 DE |
244 | clean: |
245 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
0d90d6ea | 246 | -if exist $(OBJS)\*.d del $(OBJS)\*.d |
b17c1746 DE |
247 | -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe |
248 | -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe | |
f98da3fb | 249 | |
b17c1746 | 250 | $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS) |
3abcf424 | 251 | $(CXX) -o $@ $(TEX2RTF_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 |
f98da3fb | 252 | |
b17c1746 DE |
253 | ifeq ($(USE_GUI),1) |
254 | $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample_rc.o | |
3abcf424 | 255 | $(CXX) -o $@ $(TEX2RTF_GUI_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_HTML_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 |
b17c1746 | 256 | endif |
f98da3fb | 257 | |
b17c1746 | 258 | $(OBJS)\tex2rtf_tex2rtf.o: ./tex2rtf.cpp |
0d90d6ea | 259 | $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $< |
f98da3fb | 260 | |
b17c1746 | 261 | $(OBJS)\tex2rtf_tex2any.o: ./tex2any.cpp |
0d90d6ea | 262 | $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $< |
f98da3fb | 263 | |
b17c1746 | 264 | $(OBJS)\tex2rtf_texutils.o: ./texutils.cpp |
0d90d6ea | 265 | $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $< |
f98da3fb | 266 | |
b17c1746 | 267 | $(OBJS)\tex2rtf_rtfutils.o: ./rtfutils.cpp |
0d90d6ea | 268 | $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $< |
f98da3fb | 269 | |
b17c1746 | 270 | $(OBJS)\tex2rtf_xlputils.o: ./xlputils.cpp |
0d90d6ea | 271 | $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $< |
f98da3fb | 272 | |
1c3a6972 | 273 | $(OBJS)\tex2rtf_htmlutil.o: ./htmlutil.cpp |
0d90d6ea | 274 | $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $< |
f98da3fb | 275 | |
1c3a6972 | 276 | $(OBJS)\tex2rtf_readshg.o: ./readshg.cpp |
0d90d6ea | 277 | $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $< |
f98da3fb | 278 | |
1c3a6972 | 279 | $(OBJS)\tex2rtf_table.o: ./table.cpp |
0d90d6ea | 280 | $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $< |
f98da3fb | 281 | |
b17c1746 | 282 | $(OBJS)\tex2rtf_gui_sample_rc.o: ./../../../samples/sample.rc |
3abcf424 | 283 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__EXCEPTIONS_DEFINE_p_3) $(__RTTI_DEFINE_p_3) $(__THREAD_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) $(__MSLU_DEFINE_p_3) $(__GFXCTX_DEFINE_p_3) --include-dir $(SETUPHDIR) --include-dir ./../../../include --include-dir . $(__DLLFLAG_p_3) --include-dir ./../../../samples |
f98da3fb | 284 | |
b17c1746 | 285 | $(OBJS)\tex2rtf_gui_tex2rtf.o: ./tex2rtf.cpp |
0d90d6ea | 286 | $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $< |
f98da3fb | 287 | |
b17c1746 | 288 | $(OBJS)\tex2rtf_gui_tex2any.o: ./tex2any.cpp |
0d90d6ea | 289 | $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $< |
f98da3fb | 290 | |
b17c1746 | 291 | $(OBJS)\tex2rtf_gui_texutils.o: ./texutils.cpp |
0d90d6ea | 292 | $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $< |
f98da3fb | 293 | |
b17c1746 | 294 | $(OBJS)\tex2rtf_gui_rtfutils.o: ./rtfutils.cpp |
0d90d6ea | 295 | $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $< |
f98da3fb | 296 | |
b17c1746 | 297 | $(OBJS)\tex2rtf_gui_xlputils.o: ./xlputils.cpp |
0d90d6ea | 298 | $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $< |
f98da3fb | 299 | |
b17c1746 | 300 | $(OBJS)\tex2rtf_gui_htmlutil.o: ./htmlutil.cpp |
0d90d6ea | 301 | $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $< |
b17c1746 DE |
302 | |
303 | $(OBJS)\tex2rtf_gui_readshg.o: ./readshg.cpp | |
0d90d6ea | 304 | $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $< |
b17c1746 DE |
305 | |
306 | $(OBJS)\tex2rtf_gui_table.o: ./table.cpp | |
0d90d6ea | 307 | $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $< |
f98da3fb VS |
308 | |
309 | .PHONY: all clean | |
162a956b | 310 | |
8c9f8f91 | 311 | |
0d90d6ea JS |
312 | # Dependencies tracking: |
313 | -include $(OBJS)/*.d |