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