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