]> git.saurik.com Git - wxWidgets.git/blob - utils/tex2rtf/src/makefile.gcc
use generic dialogs under Palm (generic.diff part of patch 1894861)
[wxWidgets.git] / utils / tex2rtf / src / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.3 (http://www.bakefile.org)
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
15 CPPDEPS = -MT$@ -MF$@.d -MD
16 WX_RELEASE_NODOT = 29
17 COMPILER_PREFIX = gcc
18 OBJS = \
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = .\..\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
21 SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
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) \
26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
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)
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
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) \
42 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
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)
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
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
76 ifeq ($(UNICODE),1)
77 WXUNICODEFLAG = u
78 endif
79 ifeq ($(WXUNIV),1)
80 WXUNIVNAME = univ
81 endif
82 ifeq ($(SHARED),1)
83 WXDLLFLAG = dll
84 endif
85 ifeq ($(SHARED),0)
86 LIBTYPE_SUFFIX = lib
87 endif
88 ifeq ($(SHARED),1)
89 LIBTYPE_SUFFIX = dll
90 endif
91 ifeq ($(MONOLITHIC),0)
92 EXTRALIBS_FOR_BASE =
93 endif
94 ifeq ($(MONOLITHIC),1)
95 EXTRALIBS_FOR_BASE =
96 endif
97 ifeq ($(USE_GUI),1)
98 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
99 endif
100 ifeq ($(WXUNIV),1)
101 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
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
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
120 ifeq ($(UNICODE),0)
121 __UNICODE_DEFINE_p_3 = --define wxUSE_UNICODE=0
122 endif
123 ifeq ($(UNICODE),1)
124 __UNICODE_DEFINE_p_3 = --define _UNICODE
125 endif
126 ifeq ($(MSLU),1)
127 __MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=1
128 endif
129 ifeq ($(USE_GDIPLUS),1)
130 __GFXCTX_DEFINE_p_3 = --define wxUSE_GRAPHICS_CONTEXT=1
131 endif
132 ifeq ($(SHARED),1)
133 __DLLFLAG_p_3 = --define WXUSINGDLL
134 endif
135 ifeq ($(MONOLITHIC),0)
136 __WXLIB_HTML_p = \
137 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
138 endif
139 ifeq ($(MONOLITHIC),0)
140 __WXLIB_CORE_p = \
141 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
142 endif
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
152 ifeq ($(BUILD),debug)
153 __OPTIMIZEFLAG = -O0
154 endif
155 ifeq ($(BUILD),release)
156 __OPTIMIZEFLAG = -O2
157 endif
158 ifeq ($(USE_RTTI),0)
159 __RTTIFLAG = -fno-rtti
160 endif
161 ifeq ($(USE_RTTI),1)
162 __RTTIFLAG =
163 endif
164 ifeq ($(USE_EXCEPTIONS),0)
165 __EXCEPTIONSFLAG = -fno-exceptions
166 endif
167 ifeq ($(USE_EXCEPTIONS),1)
168 __EXCEPTIONSFLAG =
169 endif
170 ifeq ($(WXUNIV),1)
171 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
172 endif
173 ifeq ($(BUILD),debug)
174 ifeq ($(DEBUG_FLAG),default)
175 __DEBUG_DEFINE_p = -D__WXDEBUG__
176 endif
177 endif
178 ifeq ($(DEBUG_FLAG),1)
179 __DEBUG_DEFINE_p = -D__WXDEBUG__
180 endif
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
190 ifeq ($(UNICODE),0)
191 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
192 endif
193 ifeq ($(UNICODE),1)
194 __UNICODE_DEFINE_p = -D_UNICODE
195 endif
196 ifeq ($(MSLU),1)
197 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
198 endif
199 ifeq ($(USE_GDIPLUS),1)
200 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
201 endif
202 ifeq ($(SHARED),1)
203 __DLLFLAG_p = -DWXUSINGDLL
204 endif
205 ifeq ($(MONOLITHIC),0)
206 __WXLIB_BASE_p = \
207 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
208 endif
209 ifeq ($(MONOLITHIC),1)
210 __WXLIB_MONO_p = \
211 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
212 endif
213 ifeq ($(MSLU),1)
214 __UNICOWS_LIB_p = -lunicows
215 endif
216 ifeq ($(USE_GDIPLUS),1)
217 __GDIPLUS_LIB_p = -lgdiplus
218 endif
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
234 endif
235 ifeq ($(USE_THREADS),0)
236 __THREADSFLAG =
237 endif
238 ifeq ($(USE_THREADS),1)
239 __THREADSFLAG = -mthreads
240 endif
241
242
243 all: $(OBJS)
244 $(OBJS):
245 -if not exist $(OBJS) mkdir $(OBJS)
246
247 ### Targets: ###
248
249 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
250
251 clean:
252 -if exist $(OBJS)\*.o del $(OBJS)\*.o
253 -if exist $(OBJS)\*.d del $(OBJS)\*.d
254 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
255 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
256
257 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
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
259
260 ifeq ($(USE_GUI),1)
261 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample_rc.o
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
263 endif
264
265 $(OBJS)\tex2rtf_tex2rtf.o: ./tex2rtf.cpp
266 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
267
268 $(OBJS)\tex2rtf_tex2any.o: ./tex2any.cpp
269 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
270
271 $(OBJS)\tex2rtf_texutils.o: ./texutils.cpp
272 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
273
274 $(OBJS)\tex2rtf_rtfutils.o: ./rtfutils.cpp
275 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
276
277 $(OBJS)\tex2rtf_xlputils.o: ./xlputils.cpp
278 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
279
280 $(OBJS)\tex2rtf_htmlutil.o: ./htmlutil.cpp
281 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
282
283 $(OBJS)\tex2rtf_readshg.o: ./readshg.cpp
284 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
285
286 $(OBJS)\tex2rtf_table.o: ./table.cpp
287 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
288
289 $(OBJS)\tex2rtf_gui_sample_rc.o: ./../../../samples/sample.rc
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
291
292 $(OBJS)\tex2rtf_gui_tex2rtf.o: ./tex2rtf.cpp
293 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
294
295 $(OBJS)\tex2rtf_gui_tex2any.o: ./tex2any.cpp
296 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
297
298 $(OBJS)\tex2rtf_gui_texutils.o: ./texutils.cpp
299 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
300
301 $(OBJS)\tex2rtf_gui_rtfutils.o: ./rtfutils.cpp
302 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
303
304 $(OBJS)\tex2rtf_gui_xlputils.o: ./xlputils.cpp
305 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
306
307 $(OBJS)\tex2rtf_gui_htmlutil.o: ./htmlutil.cpp
308 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
309
310 $(OBJS)\tex2rtf_gui_readshg.o: ./readshg.cpp
311 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
312
313 $(OBJS)\tex2rtf_gui_table.o: ./table.cpp
314 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
315
316 .PHONY: all clean
317
318
319 SHELL := $(COMSPEC)
320
321 # Dependencies tracking:
322 -include $(OBJS)/*.d