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 # =========================================================================
7 include ../../../build/msw/config.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
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) \
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) \
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
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
49 ### Conditionally set variables: ###
51 ifeq ($(GCC_VERSION),2.95)
52 GCCFLAGS = -fvtable-thunks
55 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
58 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
67 ifeq ($(DEBUG_FLAG),default)
71 ifeq ($(DEBUG_FLAG),1)
84 ifeq ($(DEBUG_INFO),default)
88 ifeq ($(BUILD),release)
89 ifeq ($(DEBUG_INFO),default)
93 ifeq ($(DEBUG_INFO),0)
96 ifeq ($(DEBUG_INFO),1)
100 ifeq ($(DEBUG_FLAG),default)
101 __DEBUG_DEFINE_p = -D__WXDEBUG__
104 ifeq ($(DEBUG_FLAG),1)
105 __DEBUG_DEFINE_p = -D__WXDEBUG__
107 ifeq ($(BUILD),debug)
108 ifeq ($(DEBUG_FLAG),default)
109 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
112 ifeq ($(DEBUG_FLAG),1)
113 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
116 __DLLFLAG_p = -DWXUSINGDLL
119 __DLLFLAG_p_3 = --define WXUSINGDLL
121 ifeq ($(USE_EXCEPTIONS),0)
122 __EXCEPTIONSFLAG = -fno-exceptions
124 ifeq ($(USE_EXCEPTIONS),1)
127 ifeq ($(USE_EXCEPTIONS),0)
128 __EXCEPTIONSFLAG_0 = -fno-rtti
130 ifeq ($(USE_EXCEPTIONS),1)
134 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
137 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
140 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
142 ifeq ($(BUILD),debug)
145 ifeq ($(BUILD),release)
149 __UNICODE_DEFINE_p = -D_UNICODE
152 __UNICODE_DEFINE_p_3 = --define _UNICODE
155 __UNICOWS_LIB_p = -lunicows
157 ifeq ($(MONOLITHIC),0)
158 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
160 ifeq ($(MONOLITHIC),0)
162 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
164 ifeq ($(MONOLITHIC),0)
166 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html
168 ifeq ($(MONOLITHIC),1)
170 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
173 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
176 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
179 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
185 -if not exist $(OBJS) mkdir $(OBJS)
189 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
191 $(OBJS)\tex2rtf_gui_htmlutil.o: ./htmlutil.cpp
192 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
194 $(OBJS)\tex2rtf_gui_readshg.o: ./readshg.cpp
195 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
197 $(OBJS)\tex2rtf_gui_rtfutils.o: ./rtfutils.cpp
198 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
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
203 $(OBJS)\tex2rtf_gui_table.o: ./table.cpp
204 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
206 $(OBJS)\tex2rtf_gui_tex2any.o: ./tex2any.cpp
207 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
209 $(OBJS)\tex2rtf_gui_tex2rtf.o: ./tex2rtf.cpp
210 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
212 $(OBJS)\tex2rtf_gui_texutils.o: ./texutils.cpp
213 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
215 $(OBJS)\tex2rtf_gui_xlputils.o: ./xlputils.cpp
216 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
218 $(OBJS)\tex2rtf_htmlutil.o: ./htmlutil.cpp
219 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
221 $(OBJS)\tex2rtf_readshg.o: ./readshg.cpp
222 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
224 $(OBJS)\tex2rtf_rtfutils.o: ./rtfutils.cpp
225 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
227 $(OBJS)\tex2rtf_table.o: ./table.cpp
228 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
230 $(OBJS)\tex2rtf_tex2any.o: ./tex2any.cpp
231 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
233 $(OBJS)\tex2rtf_tex2rtf.o: ./tex2rtf.cpp
234 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
236 $(OBJS)\tex2rtf_texutils.o: ./texutils.cpp
237 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
239 $(OBJS)\tex2rtf_xlputils.o: ./xlputils.cpp
240 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
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
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
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