1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (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 # -------------------------------------------------------------------------
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 TEX2RTF_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
22 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
24 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
25 -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 -DNO_GUI $(__RTTIFLAG) \
26 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
28 $(OBJS)\tex2rtf_tex2rtf.o \
29 $(OBJS)\tex2rtf_tex2any.o \
30 $(OBJS)\tex2rtf_texutils.o \
31 $(OBJS)\tex2rtf_rtfutils.o \
32 $(OBJS)\tex2rtf_xlputils.o \
33 $(OBJS)\tex2rtf_htmlutil.o \
34 $(OBJS)\tex2rtf_readshg.o \
35 $(OBJS)\tex2rtf_table.o
36 TEX2RTF_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
37 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
38 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
39 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
40 -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH \
41 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
43 TEX2RTF_GUI_OBJECTS = \
44 $(OBJS)\tex2rtf_gui_sample_rc.o \
45 $(OBJS)\tex2rtf_gui_tex2rtf.o \
46 $(OBJS)\tex2rtf_gui_tex2any.o \
47 $(OBJS)\tex2rtf_gui_texutils.o \
48 $(OBJS)\tex2rtf_gui_rtfutils.o \
49 $(OBJS)\tex2rtf_gui_xlputils.o \
50 $(OBJS)\tex2rtf_gui_htmlutil.o \
51 $(OBJS)\tex2rtf_gui_readshg.o \
52 $(OBJS)\tex2rtf_gui_table.o
54 ### Conditionally set variables: ###
56 ifeq ($(GCC_VERSION),2.95)
57 GCCFLAGS = -fvtable-thunks
66 ifeq ($(DEBUG_FLAG),default)
70 ifeq ($(DEBUG_FLAG),1)
88 ifeq ($(MONOLITHIC),0)
91 ifeq ($(MONOLITHIC),1)
95 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
98 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
100 ifeq ($(BUILD),debug)
101 ifeq ($(DEBUG_FLAG),default)
102 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
105 ifeq ($(DEBUG_FLAG),1)
106 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
108 ifeq ($(USE_EXCEPTIONS),0)
109 __EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS
112 __RTTI_DEFINE_p_3 = --define wxNO_RTTI
114 ifeq ($(USE_THREADS),0)
115 __THREAD_DEFINE_p_3 = --define wxNO_THREADS
118 __UNICODE_DEFINE_p_3 = --define _UNICODE
121 __DLLFLAG_p_3 = --define WXUSINGDLL
123 ifeq ($(MONOLITHIC),0)
125 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
127 ifeq ($(MONOLITHIC),0)
129 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
131 ifeq ($(BUILD),debug)
134 ifeq ($(BUILD),release)
138 __RTTIFLAG = -fno-rtti
143 ifeq ($(USE_EXCEPTIONS),0)
144 __EXCEPTIONSFLAG = -fno-exceptions
146 ifeq ($(USE_EXCEPTIONS),1)
150 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
152 ifeq ($(BUILD),debug)
153 ifeq ($(DEBUG_FLAG),default)
154 __DEBUG_DEFINE_p = -D__WXDEBUG__
157 ifeq ($(DEBUG_FLAG),1)
158 __DEBUG_DEFINE_p = -D__WXDEBUG__
160 ifeq ($(USE_EXCEPTIONS),0)
161 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
164 __RTTI_DEFINE_p = -DwxNO_RTTI
166 ifeq ($(USE_THREADS),0)
167 __THREAD_DEFINE_p = -DwxNO_THREADS
170 __UNICODE_DEFINE_p = -D_UNICODE
173 __DLLFLAG_p = -DWXUSINGDLL
175 ifeq ($(MONOLITHIC),0)
177 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
179 ifeq ($(MONOLITHIC),1)
181 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
184 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
187 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
190 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
193 __UNICOWS_LIB_p = -lunicows
195 ifeq ($(BUILD),debug)
196 ifeq ($(DEBUG_INFO),default)
200 ifeq ($(BUILD),release)
201 ifeq ($(DEBUG_INFO),default)
205 ifeq ($(DEBUG_INFO),0)
208 ifeq ($(DEBUG_INFO),1)
211 ifeq ($(USE_THREADS),0)
214 ifeq ($(USE_THREADS),1)
215 __THREADSFLAG = -mthreads
221 -if not exist $(OBJS) mkdir $(OBJS)
225 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
228 -if exist $(OBJS)\*.o del $(OBJS)\*.o
229 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
230 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
232 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
233 $(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
236 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample_rc.o
237 $(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
240 $(OBJS)\tex2rtf_tex2rtf.o: ./tex2rtf.cpp
241 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
243 $(OBJS)\tex2rtf_tex2any.o: ./tex2any.cpp
244 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
246 $(OBJS)\tex2rtf_texutils.o: ./texutils.cpp
247 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
249 $(OBJS)\tex2rtf_rtfutils.o: ./rtfutils.cpp
250 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
252 $(OBJS)\tex2rtf_xlputils.o: ./xlputils.cpp
253 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
255 $(OBJS)\tex2rtf_htmlutil.o: ./htmlutil.cpp
256 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
258 $(OBJS)\tex2rtf_readshg.o: ./readshg.cpp
259 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
261 $(OBJS)\tex2rtf_table.o: ./table.cpp
262 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
264 $(OBJS)\tex2rtf_gui_sample_rc.o: ./../../../samples/sample.rc
265 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
267 $(OBJS)\tex2rtf_gui_tex2rtf.o: ./tex2rtf.cpp
268 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
270 $(OBJS)\tex2rtf_gui_tex2any.o: ./tex2any.cpp
271 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
273 $(OBJS)\tex2rtf_gui_texutils.o: ./texutils.cpp
274 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
276 $(OBJS)\tex2rtf_gui_rtfutils.o: ./rtfutils.cpp
277 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
279 $(OBJS)\tex2rtf_gui_xlputils.o: ./xlputils.cpp
280 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
282 $(OBJS)\tex2rtf_gui_htmlutil.o: ./htmlutil.cpp
283 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
285 $(OBJS)\tex2rtf_gui_readshg.o: ./readshg.cpp
286 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
288 $(OBJS)\tex2rtf_gui_table.o: ./table.cpp
289 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<