1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.0 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
7 include ../../../build/msw/config.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
15 CPPDEPS = -MT$@ -MF$@.d -MD
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = .\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22 TEX2RTF_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
23 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
26 -I$(SETUPHDIR) -I.\..\..\..\include -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
27 -DNO_GUI $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy \
28 $(CPPFLAGS) $(CXXFLAGS)
30 $(OBJS)\tex2rtf_tex2rtf.o \
31 $(OBJS)\tex2rtf_tex2any.o \
32 $(OBJS)\tex2rtf_texutils.o \
33 $(OBJS)\tex2rtf_rtfutils.o \
34 $(OBJS)\tex2rtf_xlputils.o \
35 $(OBJS)\tex2rtf_htmlutil.o \
36 $(OBJS)\tex2rtf_readshg.o \
37 $(OBJS)\tex2rtf_table.o
38 TEX2RTF_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
39 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
40 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
41 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
42 -I$(SETUPHDIR) -I.\..\..\..\include -W -Wall -I. $(__DLLFLAG_p) \
43 -I.\..\..\..\samples -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
44 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
45 TEX2RTF_GUI_OBJECTS = \
46 $(OBJS)\tex2rtf_gui_sample_rc.o \
47 $(OBJS)\tex2rtf_gui_tex2rtf.o \
48 $(OBJS)\tex2rtf_gui_tex2any.o \
49 $(OBJS)\tex2rtf_gui_texutils.o \
50 $(OBJS)\tex2rtf_gui_rtfutils.o \
51 $(OBJS)\tex2rtf_gui_xlputils.o \
52 $(OBJS)\tex2rtf_gui_htmlutil.o \
53 $(OBJS)\tex2rtf_gui_readshg.o \
54 $(OBJS)\tex2rtf_gui_table.o
56 ### Conditionally set variables: ###
58 ifeq ($(GCC_VERSION),2.95)
59 GCCFLAGS = -fvtable-thunks
68 ifeq ($(DEBUG_FLAG),default)
72 ifeq ($(DEBUG_FLAG),1)
90 ifeq ($(MONOLITHIC),0)
93 ifeq ($(MONOLITHIC),1)
97 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
100 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
102 ifeq ($(BUILD),debug)
103 ifeq ($(DEBUG_FLAG),default)
104 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
107 ifeq ($(DEBUG_FLAG),1)
108 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
110 ifeq ($(USE_EXCEPTIONS),0)
111 __EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS
114 __RTTI_DEFINE_p_3 = --define wxNO_RTTI
116 ifeq ($(USE_THREADS),0)
117 __THREAD_DEFINE_p_3 = --define wxNO_THREADS
120 __UNICODE_DEFINE_p_3 = --define _UNICODE
123 __MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=1
126 __DLLFLAG_p_3 = --define WXUSINGDLL
128 ifeq ($(MONOLITHIC),0)
130 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
132 ifeq ($(MONOLITHIC),0)
134 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
136 ifeq ($(BUILD),debug)
139 ifeq ($(BUILD),release)
143 __RTTIFLAG = -fno-rtti
148 ifeq ($(USE_EXCEPTIONS),0)
149 __EXCEPTIONSFLAG = -fno-exceptions
151 ifeq ($(USE_EXCEPTIONS),1)
155 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
157 ifeq ($(BUILD),debug)
158 ifeq ($(DEBUG_FLAG),default)
159 __DEBUG_DEFINE_p = -D__WXDEBUG__
162 ifeq ($(DEBUG_FLAG),1)
163 __DEBUG_DEFINE_p = -D__WXDEBUG__
165 ifeq ($(USE_EXCEPTIONS),0)
166 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
169 __RTTI_DEFINE_p = -DwxNO_RTTI
171 ifeq ($(USE_THREADS),0)
172 __THREAD_DEFINE_p = -DwxNO_THREADS
175 __UNICODE_DEFINE_p = -D_UNICODE
178 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
181 __DLLFLAG_p = -DWXUSINGDLL
183 ifeq ($(MONOLITHIC),0)
185 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
187 ifeq ($(MONOLITHIC),1)
189 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
192 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
195 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
198 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
201 __UNICOWS_LIB_p = -lunicows
203 ifeq ($(BUILD),debug)
204 ifeq ($(DEBUG_INFO),default)
208 ifeq ($(BUILD),release)
209 ifeq ($(DEBUG_INFO),default)
213 ifeq ($(DEBUG_INFO),0)
216 ifeq ($(DEBUG_INFO),1)
219 ifeq ($(USE_THREADS),0)
222 ifeq ($(USE_THREADS),1)
223 __THREADSFLAG = -mthreads
229 -if not exist $(OBJS) mkdir $(OBJS)
233 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
236 -if exist $(OBJS)\*.o del $(OBJS)\*.o
237 -if exist $(OBJS)\*.d del $(OBJS)\*.d
238 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
239 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
241 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
242 $(CXX) -o $@ $(TEX2RTF_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -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
245 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample_rc.o
246 $(CXX) -o $@ $(TEX2RTF_GUI_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -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
249 $(OBJS)\tex2rtf_tex2rtf.o: ./tex2rtf.cpp
250 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
252 $(OBJS)\tex2rtf_tex2any.o: ./tex2any.cpp
253 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
255 $(OBJS)\tex2rtf_texutils.o: ./texutils.cpp
256 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
258 $(OBJS)\tex2rtf_rtfutils.o: ./rtfutils.cpp
259 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
261 $(OBJS)\tex2rtf_xlputils.o: ./xlputils.cpp
262 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
264 $(OBJS)\tex2rtf_htmlutil.o: ./htmlutil.cpp
265 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
267 $(OBJS)\tex2rtf_readshg.o: ./readshg.cpp
268 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
270 $(OBJS)\tex2rtf_table.o: ./table.cpp
271 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
273 $(OBJS)\tex2rtf_gui_sample_rc.o: ./../../../samples/sample.rc
274 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__EXCEPTIONS_DEFINE_p_3) $(__RTTI_DEFINE_p_3) $(__THREAD_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) $(__MSLU_DEFINE_p_3) --include-dir $(SETUPHDIR) --include-dir ./../../../include --include-dir . $(__DLLFLAG_p_3) --include-dir ./../../../samples
276 $(OBJS)\tex2rtf_gui_tex2rtf.o: ./tex2rtf.cpp
277 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
279 $(OBJS)\tex2rtf_gui_tex2any.o: ./tex2any.cpp
280 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
282 $(OBJS)\tex2rtf_gui_texutils.o: ./texutils.cpp
283 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
285 $(OBJS)\tex2rtf_gui_rtfutils.o: ./rtfutils.cpp
286 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
288 $(OBJS)\tex2rtf_gui_xlputils.o: ./xlputils.cpp
289 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
291 $(OBJS)\tex2rtf_gui_htmlutil.o: ./htmlutil.cpp
292 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
294 $(OBJS)\tex2rtf_gui_readshg.o: ./readshg.cpp
295 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
297 $(OBJS)\tex2rtf_gui_table.o: ./table.cpp
298 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
303 # Dependencies tracking: