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 # -------------------------------------------------------------------------
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20 TEX2RTF_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
21 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
22 -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) -DNO_GUI \
23 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
25 $(OBJS)\tex2rtf_tex2rtf.o \
26 $(OBJS)\tex2rtf_tex2any.o \
27 $(OBJS)\tex2rtf_texutils.o \
28 $(OBJS)\tex2rtf_rtfutils.o \
29 $(OBJS)\tex2rtf_xlputils.o \
30 $(OBJS)\tex2rtf_htmlutil.o \
31 $(OBJS)\tex2rtf_readshg.o \
32 $(OBJS)\tex2rtf_table.o
33 TEX2RTF_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
34 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
35 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
36 $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH $(__EXCEPTIONSFLAG) \
37 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
38 TEX2RTF_GUI_OBJECTS = \
39 $(OBJS)\tex2rtf_gui_sample_rc.o \
40 $(OBJS)\tex2rtf_gui_tex2rtf.o \
41 $(OBJS)\tex2rtf_gui_tex2any.o \
42 $(OBJS)\tex2rtf_gui_texutils.o \
43 $(OBJS)\tex2rtf_gui_rtfutils.o \
44 $(OBJS)\tex2rtf_gui_xlputils.o \
45 $(OBJS)\tex2rtf_gui_htmlutil.o \
46 $(OBJS)\tex2rtf_gui_readshg.o \
47 $(OBJS)\tex2rtf_gui_table.o
49 ### Conditionally set variables: ###
51 ifeq ($(GCC_VERSION),2.95)
52 GCCFLAGS = -fvtable-thunks
61 ifeq ($(DEBUG_FLAG),default)
65 ifeq ($(DEBUG_FLAG),1)
78 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
81 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
84 ifeq ($(DEBUG_FLAG),default)
85 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
88 ifeq ($(DEBUG_FLAG),1)
89 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
92 __UNICODE_DEFINE_p_3 = --define _UNICODE
95 __DLLFLAG_p_3 = --define WXUSINGDLL
97 ifeq ($(MONOLITHIC),0)
99 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
101 ifeq ($(MONOLITHIC),0)
103 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
105 ifeq ($(BUILD),debug)
108 ifeq ($(BUILD),release)
111 ifeq ($(USE_EXCEPTIONS),0)
112 __EXCEPTIONSFLAG = -fno-rtti
114 ifeq ($(USE_EXCEPTIONS),1)
117 ifeq ($(USE_EXCEPTIONS),0)
118 __EXCEPTIONSFLAG_0 = -fno-exceptions
120 ifeq ($(USE_EXCEPTIONS),1)
124 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
126 ifeq ($(BUILD),debug)
127 ifeq ($(DEBUG_FLAG),default)
128 __DEBUG_DEFINE_p = -D__WXDEBUG__
131 ifeq ($(DEBUG_FLAG),1)
132 __DEBUG_DEFINE_p = -D__WXDEBUG__
135 __UNICODE_DEFINE_p = -D_UNICODE
138 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
141 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
144 __DLLFLAG_p = -DWXUSINGDLL
146 ifeq ($(MONOLITHIC),0)
148 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
150 ifeq ($(MONOLITHIC),1)
152 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
155 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
158 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
161 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
164 __UNICOWS_LIB_p = -lunicows
166 ifeq ($(BUILD),debug)
167 ifeq ($(DEBUG_INFO),default)
171 ifeq ($(BUILD),release)
172 ifeq ($(DEBUG_INFO),default)
176 ifeq ($(DEBUG_INFO),0)
179 ifeq ($(DEBUG_INFO),1)
186 -if not exist $(OBJS) mkdir $(OBJS)
190 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
193 -if exist $(OBJS)\*.o del $(OBJS)\*.o
194 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
195 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
197 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
198 $(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
201 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample_rc.o
202 $(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
205 $(OBJS)\tex2rtf_tex2rtf.o: ./tex2rtf.cpp
206 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
208 $(OBJS)\tex2rtf_tex2any.o: ./tex2any.cpp
209 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
211 $(OBJS)\tex2rtf_texutils.o: ./texutils.cpp
212 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
214 $(OBJS)\tex2rtf_rtfutils.o: ./rtfutils.cpp
215 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
217 $(OBJS)\tex2rtf_xlputils.o: ./xlputils.cpp
218 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
220 $(OBJS)\tex2rtf_htmlutil.o: ./htmlutil.cpp
221 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
223 $(OBJS)\tex2rtf_readshg.o: ./readshg.cpp
224 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
226 $(OBJS)\tex2rtf_table.o: ./table.cpp
227 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
229 $(OBJS)\tex2rtf_gui_sample_rc.o: ./../../../samples/sample.rc
230 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
232 $(OBJS)\tex2rtf_gui_tex2rtf.o: ./tex2rtf.cpp
233 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
235 $(OBJS)\tex2rtf_gui_tex2any.o: ./tex2any.cpp
236 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
238 $(OBJS)\tex2rtf_gui_texutils.o: ./texutils.cpp
239 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
241 $(OBJS)\tex2rtf_gui_rtfutils.o: ./rtfutils.cpp
242 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
244 $(OBJS)\tex2rtf_gui_xlputils.o: ./xlputils.cpp
245 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
247 $(OBJS)\tex2rtf_gui_htmlutil.o: ./htmlutil.cpp
248 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
250 $(OBJS)\tex2rtf_gui_readshg.o: ./readshg.cpp
251 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
253 $(OBJS)\tex2rtf_gui_table.o: ./table.cpp
254 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<