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