1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (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) $(GCCFLAGS) -DHAVE_W32API_H \
22 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
23 -I.\..\..\..\include -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
24 -DNO_GUI $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy \
25 $(CPPFLAGS) $(CXXFLAGS)
27 $(OBJS)\tex2rtf_tex2rtf.o \
28 $(OBJS)\tex2rtf_tex2any.o \
29 $(OBJS)\tex2rtf_texutils.o \
30 $(OBJS)\tex2rtf_rtfutils.o \
31 $(OBJS)\tex2rtf_xlputils.o \
32 $(OBJS)\tex2rtf_htmlutil.o \
33 $(OBJS)\tex2rtf_readshg.o \
34 $(OBJS)\tex2rtf_table.o
35 TEX2RTF_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
36 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
37 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
38 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH $(__EXCEPTIONSFLAG) \
39 $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
40 TEX2RTF_GUI_OBJECTS = \
41 $(OBJS)\tex2rtf_gui_sample_rc.o \
42 $(OBJS)\tex2rtf_gui_tex2rtf.o \
43 $(OBJS)\tex2rtf_gui_tex2any.o \
44 $(OBJS)\tex2rtf_gui_texutils.o \
45 $(OBJS)\tex2rtf_gui_rtfutils.o \
46 $(OBJS)\tex2rtf_gui_xlputils.o \
47 $(OBJS)\tex2rtf_gui_htmlutil.o \
48 $(OBJS)\tex2rtf_gui_readshg.o \
49 $(OBJS)\tex2rtf_gui_table.o
51 ### Conditionally set variables: ###
53 ifeq ($(GCC_VERSION),2.95)
54 GCCFLAGS = -fvtable-thunks
63 ifeq ($(DEBUG_FLAG),default)
67 ifeq ($(DEBUG_FLAG),1)
85 ifeq ($(MONOLITHIC),0)
88 ifeq ($(MONOLITHIC),1)
92 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
95 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
98 ifeq ($(DEBUG_FLAG),default)
99 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
102 ifeq ($(DEBUG_FLAG),1)
103 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
106 __UNICODE_DEFINE_p_3 = --define _UNICODE
109 __DLLFLAG_p_3 = --define WXUSINGDLL
111 ifeq ($(MONOLITHIC),0)
113 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
115 ifeq ($(MONOLITHIC),0)
117 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
119 ifeq ($(BUILD),debug)
122 ifeq ($(BUILD),release)
125 ifeq ($(USE_EXCEPTIONS),0)
126 __EXCEPTIONSFLAG = -fno-rtti
128 ifeq ($(USE_EXCEPTIONS),1)
131 ifeq ($(USE_EXCEPTIONS),0)
132 __EXCEPTIONSFLAG_0 = -fno-exceptions
134 ifeq ($(USE_EXCEPTIONS),1)
138 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
140 ifeq ($(BUILD),debug)
141 ifeq ($(DEBUG_FLAG),default)
142 __DEBUG_DEFINE_p = -D__WXDEBUG__
145 ifeq ($(DEBUG_FLAG),1)
146 __DEBUG_DEFINE_p = -D__WXDEBUG__
149 __UNICODE_DEFINE_p = -D_UNICODE
152 __DLLFLAG_p = -DWXUSINGDLL
154 ifeq ($(MONOLITHIC),0)
156 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
158 ifeq ($(MONOLITHIC),1)
160 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
163 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
166 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
169 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
172 __UNICOWS_LIB_p = -lunicows
174 ifeq ($(BUILD),debug)
175 ifeq ($(DEBUG_INFO),default)
179 ifeq ($(BUILD),release)
180 ifeq ($(DEBUG_INFO),default)
184 ifeq ($(DEBUG_INFO),0)
187 ifeq ($(DEBUG_INFO),1)
194 -if not exist $(OBJS) mkdir $(OBJS)
198 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
201 -if exist $(OBJS)\*.o del $(OBJS)\*.o
202 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
203 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
205 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
206 $(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$(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
209 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample_rc.o
210 $(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$(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
213 $(OBJS)\tex2rtf_tex2rtf.o: ./tex2rtf.cpp
214 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
216 $(OBJS)\tex2rtf_tex2any.o: ./tex2any.cpp
217 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
219 $(OBJS)\tex2rtf_texutils.o: ./texutils.cpp
220 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
222 $(OBJS)\tex2rtf_rtfutils.o: ./rtfutils.cpp
223 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
225 $(OBJS)\tex2rtf_xlputils.o: ./xlputils.cpp
226 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
228 $(OBJS)\tex2rtf_htmlutil.o: ./htmlutil.cpp
229 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
231 $(OBJS)\tex2rtf_readshg.o: ./readshg.cpp
232 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
234 $(OBJS)\tex2rtf_table.o: ./table.cpp
235 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
237 $(OBJS)\tex2rtf_gui_sample_rc.o: ./../../../samples/sample.rc
238 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
240 $(OBJS)\tex2rtf_gui_tex2rtf.o: ./tex2rtf.cpp
241 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
243 $(OBJS)\tex2rtf_gui_tex2any.o: ./tex2any.cpp
244 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
246 $(OBJS)\tex2rtf_gui_texutils.o: ./texutils.cpp
247 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
249 $(OBJS)\tex2rtf_gui_rtfutils.o: ./rtfutils.cpp
250 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
252 $(OBJS)\tex2rtf_gui_xlputils.o: ./xlputils.cpp
253 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
255 $(OBJS)\tex2rtf_gui_htmlutil.o: ./htmlutil.cpp
256 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
258 $(OBJS)\tex2rtf_gui_readshg.o: ./readshg.cpp
259 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
261 $(OBJS)\tex2rtf_gui_table.o: ./table.cpp
262 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<