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