]> git.saurik.com Git - wxWidgets.git/blame_incremental - utils/tex2rtf/src/makefile.gcc
Now does cleanup when returning false from OnInit
[wxWidgets.git] / utils / tex2rtf / src / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.3 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19TEX2RTF_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
20 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
21 -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) -DNO_GUI \
22 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
23TEX2RTF_OBJECTS = \
24 $(OBJS)\tex2rtf_tex2rtf.o \
25 $(OBJS)\tex2rtf_tex2any.o \
26 $(OBJS)\tex2rtf_texutils.o \
27 $(OBJS)\tex2rtf_rtfutils.o \
28 $(OBJS)\tex2rtf_xlputils.o \
29 $(OBJS)\tex2rtf_htmlutil.o \
30 $(OBJS)\tex2rtf_readshg.o \
31 $(OBJS)\tex2rtf_table.o
32TEX2RTF_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
33 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
34 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
35 $(__DLLFLAG_p) -I.\..\..\..\samples $(__EXCEPTIONSFLAG) \
36 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
37TEX2RTF_GUI_OBJECTS = \
38 $(OBJS)\tex2rtf_gui_sample_rc.o \
39 $(OBJS)\tex2rtf_gui_tex2rtf.o \
40 $(OBJS)\tex2rtf_gui_tex2any.o \
41 $(OBJS)\tex2rtf_gui_texutils.o \
42 $(OBJS)\tex2rtf_gui_rtfutils.o \
43 $(OBJS)\tex2rtf_gui_xlputils.o \
44 $(OBJS)\tex2rtf_gui_htmlutil.o \
45 $(OBJS)\tex2rtf_gui_readshg.o \
46 $(OBJS)\tex2rtf_gui_table.o
47
48### Conditionally set variables: ###
49
50ifeq ($(GCC_VERSION),2.95)
51GCCFLAGS = -fvtable-thunks
52endif
53ifeq ($(USE_GUI),0)
54PORTNAME = base
55endif
56ifeq ($(USE_GUI),1)
57PORTNAME = msw
58endif
59ifeq ($(BUILD),debug)
60ifeq ($(DEBUG_FLAG),default)
61WXDEBUGFLAG = d
62endif
63endif
64ifeq ($(DEBUG_FLAG),1)
65WXDEBUGFLAG = d
66endif
67ifeq ($(UNICODE),1)
68WXUNICODEFLAG = u
69endif
70ifeq ($(WXUNIV),1)
71WXUNIVNAME = univ
72endif
73ifeq ($(SHARED),1)
74WXDLLFLAG = dll
75endif
76ifeq ($(USE_GUI),1)
77__tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
78endif
79ifeq ($(WXUNIV),1)
80__WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
81endif
82ifeq ($(BUILD),debug)
83ifeq ($(DEBUG_FLAG),default)
84__DEBUG_DEFINE_p_3 = --define __WXDEBUG__
85endif
86endif
87ifeq ($(DEBUG_FLAG),1)
88__DEBUG_DEFINE_p_3 = --define __WXDEBUG__
89endif
90ifeq ($(UNICODE),1)
91__UNICODE_DEFINE_p_3 = --define _UNICODE
92endif
93ifeq ($(SHARED),1)
94__DLLFLAG_p_3 = --define WXUSINGDLL
95endif
96ifeq ($(MONOLITHIC),0)
97__WXLIB_HTML_p = \
98 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html
99endif
100ifeq ($(MONOLITHIC),0)
101__WXLIB_CORE_p = \
102 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
103endif
104ifeq ($(BUILD),debug)
105__OPTIMIZEFLAG = -O0
106endif
107ifeq ($(BUILD),release)
108__OPTIMIZEFLAG = -O2
109endif
110ifeq ($(USE_EXCEPTIONS),0)
111__EXCEPTIONSFLAG = -fno-rtti
112endif
113ifeq ($(USE_EXCEPTIONS),1)
114__EXCEPTIONSFLAG =
115endif
116ifeq ($(USE_EXCEPTIONS),0)
117__EXCEPTIONSFLAG_0 = -fno-exceptions
118endif
119ifeq ($(USE_EXCEPTIONS),1)
120__EXCEPTIONSFLAG_0 =
121endif
122ifeq ($(WXUNIV),1)
123__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
124endif
125ifeq ($(BUILD),debug)
126ifeq ($(DEBUG_FLAG),default)
127__DEBUG_DEFINE_p = -D__WXDEBUG__
128endif
129endif
130ifeq ($(DEBUG_FLAG),1)
131__DEBUG_DEFINE_p = -D__WXDEBUG__
132endif
133ifeq ($(UNICODE),1)
134__UNICODE_DEFINE_p = -D_UNICODE
135endif
136ifeq ($(SHARED),0)
137LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
138endif
139ifeq ($(SHARED),1)
140LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
141endif
142ifeq ($(SHARED),1)
143__DLLFLAG_p = -DWXUSINGDLL
144endif
145ifeq ($(MONOLITHIC),0)
146__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
147endif
148ifeq ($(MONOLITHIC),1)
149__WXLIB_MONO_p = \
150 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
151endif
152ifeq ($(USE_GUI),1)
153__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
154endif
155ifeq ($(USE_GUI),1)
156__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
157endif
158ifeq ($(USE_GUI),1)
159__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
160endif
161ifeq ($(MSLU),1)
162__UNICOWS_LIB_p = -lunicows
163endif
164ifeq ($(BUILD),debug)
165ifeq ($(DEBUG_INFO),default)
166__DEBUGINFO = -g
167endif
168endif
169ifeq ($(BUILD),release)
170ifeq ($(DEBUG_INFO),default)
171__DEBUGINFO =
172endif
173endif
174ifeq ($(DEBUG_INFO),0)
175__DEBUGINFO =
176endif
177ifeq ($(DEBUG_INFO),1)
178__DEBUGINFO = -g
179endif
180
181
182all: $(OBJS)
183$(OBJS):
184 -if not exist $(OBJS) mkdir $(OBJS)
185
186### Targets: ###
187
188all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
189
190clean:
191 -if exist $(OBJS)\*.o del $(OBJS)\*.o
192 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
193 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
194
195$(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
196 $(CXX) -o $@ $(TEX2RTF_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
197
198ifeq ($(USE_GUI),1)
199$(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample_rc.o
200 $(CXX) -o $@ $(TEX2RTF_GUI_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
201endif
202
203$(OBJS)\tex2rtf_tex2rtf.o: ./tex2rtf.cpp
204 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
205
206$(OBJS)\tex2rtf_tex2any.o: ./tex2any.cpp
207 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
208
209$(OBJS)\tex2rtf_texutils.o: ./texutils.cpp
210 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
211
212$(OBJS)\tex2rtf_rtfutils.o: ./rtfutils.cpp
213 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
214
215$(OBJS)\tex2rtf_xlputils.o: ./xlputils.cpp
216 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
217
218$(OBJS)\tex2rtf_htmlutil.o: ./htmlutil.cpp
219 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
220
221$(OBJS)\tex2rtf_readshg.o: ./readshg.cpp
222 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
223
224$(OBJS)\tex2rtf_table.o: ./table.cpp
225 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
226
227$(OBJS)\tex2rtf_gui_sample_rc.o: ./../../../samples/sample.rc
228 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_3) --include-dir ./../../../samples
229
230$(OBJS)\tex2rtf_gui_tex2rtf.o: ./tex2rtf.cpp
231 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
232
233$(OBJS)\tex2rtf_gui_tex2any.o: ./tex2any.cpp
234 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
235
236$(OBJS)\tex2rtf_gui_texutils.o: ./texutils.cpp
237 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
238
239$(OBJS)\tex2rtf_gui_rtfutils.o: ./rtfutils.cpp
240 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
241
242$(OBJS)\tex2rtf_gui_xlputils.o: ./xlputils.cpp
243 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
244
245$(OBJS)\tex2rtf_gui_htmlutil.o: ./htmlutil.cpp
246 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
247
248$(OBJS)\tex2rtf_gui_readshg.o: ./readshg.cpp
249 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
250
251$(OBJS)\tex2rtf_gui_table.o: ./table.cpp
252 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
253
254.PHONY: all clean