1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.9 (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) -I.\..\..\..\include \
26 -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 -DNO_GUI $(__RTTIFLAG) \
27 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
29 $(OBJS)\tex2rtf_tex2rtf.o \
30 $(OBJS)\tex2rtf_tex2any.o \
31 $(OBJS)\tex2rtf_texutils.o \
32 $(OBJS)\tex2rtf_rtfutils.o \
33 $(OBJS)\tex2rtf_xlputils.o \
34 $(OBJS)\tex2rtf_htmlutil.o \
35 $(OBJS)\tex2rtf_readshg.o \
36 $(OBJS)\tex2rtf_table.o
37 TEX2RTF_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
38 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
39 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
40 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
41 -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH \
42 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
44 TEX2RTF_GUI_OBJECTS = \
45 $(OBJS)\tex2rtf_gui_sample_rc.o \
46 $(OBJS)\tex2rtf_gui_tex2rtf.o \
47 $(OBJS)\tex2rtf_gui_tex2any.o \
48 $(OBJS)\tex2rtf_gui_texutils.o \
49 $(OBJS)\tex2rtf_gui_rtfutils.o \
50 $(OBJS)\tex2rtf_gui_xlputils.o \
51 $(OBJS)\tex2rtf_gui_htmlutil.o \
52 $(OBJS)\tex2rtf_gui_readshg.o \
53 $(OBJS)\tex2rtf_gui_table.o
55 ### Conditionally set variables: ###
57 ifeq ($(GCC_VERSION),2.95)
58 GCCFLAGS = -fvtable-thunks
67 ifeq ($(DEBUG_FLAG),default)
71 ifeq ($(DEBUG_FLAG),1)
89 ifeq ($(MONOLITHIC),0)
92 ifeq ($(MONOLITHIC),1)
96 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
99 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
101 ifeq ($(BUILD),debug)
102 ifeq ($(DEBUG_FLAG),default)
103 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
106 ifeq ($(DEBUG_FLAG),1)
107 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
109 ifeq ($(USE_EXCEPTIONS),0)
110 __EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS
113 __RTTI_DEFINE_p_3 = --define wxNO_RTTI
115 ifeq ($(USE_THREADS),0)
116 __THREAD_DEFINE_p_3 = --define wxNO_THREADS
119 __UNICODE_DEFINE_p_3 = --define _UNICODE
122 __DLLFLAG_p_3 = --define WXUSINGDLL
124 ifeq ($(MONOLITHIC),0)
126 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
128 ifeq ($(MONOLITHIC),0)
130 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
132 ifeq ($(BUILD),debug)
135 ifeq ($(BUILD),release)
139 __RTTIFLAG = -fno-rtti
144 ifeq ($(USE_EXCEPTIONS),0)
145 __EXCEPTIONSFLAG = -fno-exceptions
147 ifeq ($(USE_EXCEPTIONS),1)
151 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
153 ifeq ($(BUILD),debug)
154 ifeq ($(DEBUG_FLAG),default)
155 __DEBUG_DEFINE_p = -D__WXDEBUG__
158 ifeq ($(DEBUG_FLAG),1)
159 __DEBUG_DEFINE_p = -D__WXDEBUG__
161 ifeq ($(USE_EXCEPTIONS),0)
162 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
165 __RTTI_DEFINE_p = -DwxNO_RTTI
167 ifeq ($(USE_THREADS),0)
168 __THREAD_DEFINE_p = -DwxNO_THREADS
171 __UNICODE_DEFINE_p = -D_UNICODE
174 __DLLFLAG_p = -DWXUSINGDLL
176 ifeq ($(MONOLITHIC),0)
178 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
180 ifeq ($(MONOLITHIC),1)
182 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
185 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
188 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
191 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
194 __UNICOWS_LIB_p = -lunicows
196 ifeq ($(BUILD),debug)
197 ifeq ($(DEBUG_INFO),default)
201 ifeq ($(BUILD),release)
202 ifeq ($(DEBUG_INFO),default)
206 ifeq ($(DEBUG_INFO),0)
209 ifeq ($(DEBUG_INFO),1)
212 ifeq ($(USE_THREADS),0)
215 ifeq ($(USE_THREADS),1)
216 __THREADSFLAG = -mthreads
222 -if not exist $(OBJS) mkdir $(OBJS)
226 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
229 -if exist $(OBJS)\*.o del $(OBJS)\*.o
230 -if exist $(OBJS)\*.d del $(OBJS)\*.d
231 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
232 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
234 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
235 $(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
238 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample_rc.o
239 $(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
242 $(OBJS)\tex2rtf_tex2rtf.o: ./tex2rtf.cpp
243 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
245 $(OBJS)\tex2rtf_tex2any.o: ./tex2any.cpp
246 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
248 $(OBJS)\tex2rtf_texutils.o: ./texutils.cpp
249 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
251 $(OBJS)\tex2rtf_rtfutils.o: ./rtfutils.cpp
252 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
254 $(OBJS)\tex2rtf_xlputils.o: ./xlputils.cpp
255 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
257 $(OBJS)\tex2rtf_htmlutil.o: ./htmlutil.cpp
258 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
260 $(OBJS)\tex2rtf_readshg.o: ./readshg.cpp
261 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
263 $(OBJS)\tex2rtf_table.o: ./table.cpp
264 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $(CPPDEPS) $<
266 $(OBJS)\tex2rtf_gui_sample_rc.o: ./../../../samples/sample.rc
267 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) --include-dir ./../../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_3) --include-dir ./../../../samples
269 $(OBJS)\tex2rtf_gui_tex2rtf.o: ./tex2rtf.cpp
270 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
272 $(OBJS)\tex2rtf_gui_tex2any.o: ./tex2any.cpp
273 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
275 $(OBJS)\tex2rtf_gui_texutils.o: ./texutils.cpp
276 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
278 $(OBJS)\tex2rtf_gui_rtfutils.o: ./rtfutils.cpp
279 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
281 $(OBJS)\tex2rtf_gui_xlputils.o: ./xlputils.cpp
282 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
284 $(OBJS)\tex2rtf_gui_htmlutil.o: ./htmlutil.cpp
285 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
287 $(OBJS)\tex2rtf_gui_readshg.o: ./readshg.cpp
288 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
290 $(OBJS)\tex2rtf_gui_table.o: ./table.cpp
291 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $(CPPDEPS) $<
296 # Dependencies tracking: