]> git.saurik.com Git - wxWidgets.git/blob - utils/tex2rtf/src/makefile.gcc
wxHTML not used
[wxWidgets.git] / utils / tex2rtf / src / makefile.gcc
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
7 include ../../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17 SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 TEX2RTF_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)
23 TEX2RTF_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
32 TEX2RTF_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)
37 TEX2RTF_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
50 ifeq ($(GCC_VERSION),2.95)
51 GCCFLAGS = -fvtable-thunks
52 endif
53 ifeq ($(USE_GUI),0)
54 PORTNAME = base
55 endif
56 ifeq ($(USE_GUI),1)
57 PORTNAME = msw
58 endif
59 ifeq ($(BUILD),debug)
60 ifeq ($(DEBUG_FLAG),default)
61 WXDEBUGFLAG = d
62 endif
63 endif
64 ifeq ($(DEBUG_FLAG),1)
65 WXDEBUGFLAG = d
66 endif
67 ifeq ($(UNICODE),1)
68 WXUNICODEFLAG = u
69 endif
70 ifeq ($(WXUNIV),1)
71 WXUNIVNAME = univ
72 endif
73 ifeq ($(SHARED),1)
74 WXDLLFLAG = dll
75 endif
76 ifeq ($(USE_GUI),1)
77 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
78 endif
79 ifeq ($(WXUNIV),1)
80 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
81 endif
82 ifeq ($(BUILD),debug)
83 ifeq ($(DEBUG_FLAG),default)
84 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
85 endif
86 endif
87 ifeq ($(DEBUG_FLAG),1)
88 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
89 endif
90 ifeq ($(UNICODE),1)
91 __UNICODE_DEFINE_p_3 = --define _UNICODE
92 endif
93 ifeq ($(SHARED),1)
94 __DLLFLAG_p_3 = --define WXUSINGDLL
95 endif
96 ifeq ($(MONOLITHIC),0)
97 __WXLIB_CORE_p = \
98 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
99 endif
100 ifeq ($(BUILD),debug)
101 __OPTIMIZEFLAG = -O0
102 endif
103 ifeq ($(BUILD),release)
104 __OPTIMIZEFLAG = -O2
105 endif
106 ifeq ($(USE_EXCEPTIONS),0)
107 __EXCEPTIONSFLAG = -fno-rtti
108 endif
109 ifeq ($(USE_EXCEPTIONS),1)
110 __EXCEPTIONSFLAG =
111 endif
112 ifeq ($(USE_EXCEPTIONS),0)
113 __EXCEPTIONSFLAG_0 = -fno-exceptions
114 endif
115 ifeq ($(USE_EXCEPTIONS),1)
116 __EXCEPTIONSFLAG_0 =
117 endif
118 ifeq ($(WXUNIV),1)
119 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
120 endif
121 ifeq ($(BUILD),debug)
122 ifeq ($(DEBUG_FLAG),default)
123 __DEBUG_DEFINE_p = -D__WXDEBUG__
124 endif
125 endif
126 ifeq ($(DEBUG_FLAG),1)
127 __DEBUG_DEFINE_p = -D__WXDEBUG__
128 endif
129 ifeq ($(UNICODE),1)
130 __UNICODE_DEFINE_p = -D_UNICODE
131 endif
132 ifeq ($(SHARED),0)
133 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
134 endif
135 ifeq ($(SHARED),1)
136 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
137 endif
138 ifeq ($(SHARED),1)
139 __DLLFLAG_p = -DWXUSINGDLL
140 endif
141 ifeq ($(MONOLITHIC),0)
142 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
143 endif
144 ifeq ($(MONOLITHIC),1)
145 __WXLIB_MONO_p = \
146 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
147 endif
148 ifeq ($(USE_GUI),1)
149 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
150 endif
151 ifeq ($(USE_GUI),1)
152 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
153 endif
154 ifeq ($(USE_GUI),1)
155 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
156 endif
157 ifeq ($(MSLU),1)
158 __UNICOWS_LIB_p = -lunicows
159 endif
160 ifeq ($(BUILD),debug)
161 ifeq ($(DEBUG_INFO),default)
162 __DEBUGINFO = -g
163 endif
164 endif
165 ifeq ($(BUILD),release)
166 ifeq ($(DEBUG_INFO),default)
167 __DEBUGINFO =
168 endif
169 endif
170 ifeq ($(DEBUG_INFO),0)
171 __DEBUGINFO =
172 endif
173 ifeq ($(DEBUG_INFO),1)
174 __DEBUGINFO = -g
175 endif
176
177
178 all: $(OBJS)
179 $(OBJS):
180 -if not exist $(OBJS) mkdir $(OBJS)
181
182 ### Targets: ###
183
184 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
185
186 clean:
187 -if exist $(OBJS)\*.o del $(OBJS)\*.o
188 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
189 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
190
191 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
192 $(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
193
194 ifeq ($(USE_GUI),1)
195 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample_rc.o
196 $(CXX) -o $@ $(TEX2RTF_GUI_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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
197 endif
198
199 $(OBJS)\tex2rtf_tex2rtf.o: ./tex2rtf.cpp
200 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
201
202 $(OBJS)\tex2rtf_tex2any.o: ./tex2any.cpp
203 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
204
205 $(OBJS)\tex2rtf_texutils.o: ./texutils.cpp
206 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
207
208 $(OBJS)\tex2rtf_rtfutils.o: ./rtfutils.cpp
209 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
210
211 $(OBJS)\tex2rtf_xlputils.o: ./xlputils.cpp
212 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
213
214 $(OBJS)\tex2rtf_htmlutil.o: ./htmlutil.cpp
215 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
216
217 $(OBJS)\tex2rtf_readshg.o: ./readshg.cpp
218 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
219
220 $(OBJS)\tex2rtf_table.o: ./table.cpp
221 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
222
223 $(OBJS)\tex2rtf_gui_sample_rc.o: ./../../../samples/sample.rc
224 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
225
226 $(OBJS)\tex2rtf_gui_tex2rtf.o: ./tex2rtf.cpp
227 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
228
229 $(OBJS)\tex2rtf_gui_tex2any.o: ./tex2any.cpp
230 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
231
232 $(OBJS)\tex2rtf_gui_texutils.o: ./texutils.cpp
233 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
234
235 $(OBJS)\tex2rtf_gui_rtfutils.o: ./rtfutils.cpp
236 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
237
238 $(OBJS)\tex2rtf_gui_xlputils.o: ./xlputils.cpp
239 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
240
241 $(OBJS)\tex2rtf_gui_htmlutil.o: ./htmlutil.cpp
242 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
243
244 $(OBJS)\tex2rtf_gui_readshg.o: ./readshg.cpp
245 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
246
247 $(OBJS)\tex2rtf_gui_table.o: ./table.cpp
248 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
249
250 .PHONY: all clean