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