1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (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 = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
20 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
21 -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) -DNO_GUI \
22 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
24 $(OBJS)\tex2rtf_tex2rtf.o \
25 $(OBJS)\tex2rtf_tex2any.o \
26 $(OBJS)\tex2rtf_texutils.o \
27 $(OBJS)\tex2rtf_rtfutils.o \
28 $(OBJS)\tex2rtf_xlputils.o \
29 $(OBJS)\tex2rtf_htmlutil.o \
30 $(OBJS)\tex2rtf_readshg.o \
31 $(OBJS)\tex2rtf_table.o
32 TEX2RTF_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
33 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
34 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
35 $(__DLLFLAG_p) -I.\..\..\..\samples $(__EXCEPTIONSFLAG) \
36 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
37 TEX2RTF_GUI_OBJECTS = \
38 $(OBJS)\tex2rtf_gui_sample_rc.o \
39 $(OBJS)\tex2rtf_gui_tex2rtf.o \
40 $(OBJS)\tex2rtf_gui_tex2any.o \
41 $(OBJS)\tex2rtf_gui_texutils.o \
42 $(OBJS)\tex2rtf_gui_rtfutils.o \
43 $(OBJS)\tex2rtf_gui_xlputils.o \
44 $(OBJS)\tex2rtf_gui_htmlutil.o \
45 $(OBJS)\tex2rtf_gui_readshg.o \
46 $(OBJS)\tex2rtf_gui_table.o
48 ### Conditionally set variables: ###
50 ifeq ($(GCC_VERSION),2.95)
51 GCCFLAGS = -fvtable-thunks
60 ifeq ($(DEBUG_FLAG),default)
64 ifeq ($(DEBUG_FLAG),1)
77 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
80 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
83 ifeq ($(DEBUG_FLAG),default)
84 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
87 ifeq ($(DEBUG_FLAG),1)
88 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
91 __UNICODE_DEFINE_p_3 = --define _UNICODE
94 __DLLFLAG_p_3 = --define WXUSINGDLL
96 ifeq ($(MONOLITHIC),0)
98 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html
100 ifeq ($(MONOLITHIC),0)
102 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
104 ifeq ($(BUILD),debug)
107 ifeq ($(BUILD),release)
110 ifeq ($(USE_EXCEPTIONS),0)
111 __EXCEPTIONSFLAG = -fno-rtti
113 ifeq ($(USE_EXCEPTIONS),1)
116 ifeq ($(USE_EXCEPTIONS),0)
117 __EXCEPTIONSFLAG_0 = -fno-exceptions
119 ifeq ($(USE_EXCEPTIONS),1)
123 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
125 ifeq ($(BUILD),debug)
126 ifeq ($(DEBUG_FLAG),default)
127 __DEBUG_DEFINE_p = -D__WXDEBUG__
130 ifeq ($(DEBUG_FLAG),1)
131 __DEBUG_DEFINE_p = -D__WXDEBUG__
134 __UNICODE_DEFINE_p = -D_UNICODE
137 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
140 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
143 __DLLFLAG_p = -DWXUSINGDLL
145 ifeq ($(MONOLITHIC),0)
146 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
148 ifeq ($(MONOLITHIC),1)
150 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
153 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
156 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
159 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
162 __UNICOWS_LIB_p = -lunicows
164 ifeq ($(BUILD),debug)
165 ifeq ($(DEBUG_INFO),default)
169 ifeq ($(BUILD),release)
170 ifeq ($(DEBUG_INFO),default)
174 ifeq ($(DEBUG_INFO),0)
177 ifeq ($(DEBUG_INFO),1)
184 -if not exist $(OBJS) mkdir $(OBJS)
188 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
191 -if exist $(OBJS)\*.o del $(OBJS)\*.o
192 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
193 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
195 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
196 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
199 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample_rc.o
200 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
203 $(OBJS)\tex2rtf_tex2rtf.o: ./tex2rtf.cpp
204 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
206 $(OBJS)\tex2rtf_tex2any.o: ./tex2any.cpp
207 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
209 $(OBJS)\tex2rtf_texutils.o: ./texutils.cpp
210 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
212 $(OBJS)\tex2rtf_rtfutils.o: ./rtfutils.cpp
213 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
215 $(OBJS)\tex2rtf_xlputils.o: ./xlputils.cpp
216 $(CXX) -c -o $@ $(TEX2RTF_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_table.o: ./table.cpp
225 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
227 $(OBJS)\tex2rtf_gui_sample_rc.o: ./../../../samples/sample.rc
228 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
230 $(OBJS)\tex2rtf_gui_tex2rtf.o: ./tex2rtf.cpp
231 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
233 $(OBJS)\tex2rtf_gui_tex2any.o: ./tex2any.cpp
234 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
236 $(OBJS)\tex2rtf_gui_texutils.o: ./texutils.cpp
237 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
239 $(OBJS)\tex2rtf_gui_rtfutils.o: ./rtfutils.cpp
240 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
242 $(OBJS)\tex2rtf_gui_xlputils.o: ./xlputils.cpp
243 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
245 $(OBJS)\tex2rtf_gui_htmlutil.o: ./htmlutil.cpp
246 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
248 $(OBJS)\tex2rtf_gui_readshg.o: ./readshg.cpp
249 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
251 $(OBJS)\tex2rtf_gui_table.o: ./table.cpp
252 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<