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