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