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 = $(__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_0) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
23 TEX2RTF_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
24 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
25 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
26 $(__DLLFLAG_p) -I.\..\..\..\samples $(__EXCEPTIONSFLAG_0) \
27 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
28 TEX2RTF_GUI_OBJECTS = \
29 $(OBJS)\tex2rtf_gui_sample_rc.o \
30 $(OBJS)\tex2rtf_gui_tex2rtf.o \
31 $(OBJS)\tex2rtf_gui_tex2any.o \
32 $(OBJS)\tex2rtf_gui_texutils.o \
33 $(OBJS)\tex2rtf_gui_rtfutils.o \
34 $(OBJS)\tex2rtf_gui_xlputils.o \
35 $(OBJS)\tex2rtf_gui_htmlutil.o \
36 $(OBJS)\tex2rtf_gui_readshg.o \
37 $(OBJS)\tex2rtf_gui_table.o
39 $(OBJS)\tex2rtf_tex2rtf.o \
40 $(OBJS)\tex2rtf_tex2any.o \
41 $(OBJS)\tex2rtf_texutils.o \
42 $(OBJS)\tex2rtf_rtfutils.o \
43 $(OBJS)\tex2rtf_xlputils.o \
44 $(OBJS)\tex2rtf_htmlutil.o \
45 $(OBJS)\tex2rtf_readshg.o \
46 $(OBJS)\tex2rtf_table.o
48 ### Conditionally set variables: ###
50 ifeq ($(GCC_VERSION),2.95)
51 GCCFLAGS = -fvtable-thunks
54 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
57 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
66 ifeq ($(DEBUG_FLAG),default)
70 ifeq ($(DEBUG_FLAG),1)
83 ifeq ($(DEBUG_INFO),default)
87 ifeq ($(BUILD),release)
88 ifeq ($(DEBUG_INFO),default)
92 ifeq ($(DEBUG_INFO),0)
95 ifeq ($(DEBUG_INFO),1)
99 ifeq ($(DEBUG_FLAG),default)
100 __DEBUG_DEFINE_p = -D__WXDEBUG__
103 ifeq ($(DEBUG_FLAG),1)
104 __DEBUG_DEFINE_p = -D__WXDEBUG__
106 ifeq ($(BUILD),debug)
107 ifeq ($(DEBUG_FLAG),default)
108 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
111 ifeq ($(DEBUG_FLAG),1)
112 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
115 __DLLFLAG_p = -DWXUSINGDLL
118 __DLLFLAG_p_3 = --define WXUSINGDLL
120 ifeq ($(USE_EXCEPTIONS),0)
121 __EXCEPTIONSFLAG = -fno-exceptions
123 ifeq ($(USE_EXCEPTIONS),1)
126 ifeq ($(USE_EXCEPTIONS),0)
127 __EXCEPTIONSFLAG_0 = -fno-rtti
129 ifeq ($(USE_EXCEPTIONS),1)
133 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
136 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
139 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
141 ifeq ($(BUILD),debug)
144 ifeq ($(BUILD),release)
148 __UNICODE_DEFINE_p = -D_UNICODE
151 __UNICODE_DEFINE_p_3 = --define _UNICODE
154 __UNICOWS_LIB_p = -lunicows
156 ifeq ($(MONOLITHIC),0)
157 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
159 ifeq ($(MONOLITHIC),0)
161 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
163 ifeq ($(MONOLITHIC),0)
165 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html
167 ifeq ($(MONOLITHIC),1)
169 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
172 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
175 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
178 __tex2rtf_gui___depname = $(OBJS)\tex2rtf_gui.exe
184 -if not exist $(OBJS) mkdir $(OBJS)
188 all: $(OBJS)\tex2rtf.exe $(__tex2rtf_gui___depname)
190 $(OBJS)\tex2rtf_gui_htmlutil.o: ./htmlutil.cpp
191 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
193 $(OBJS)\tex2rtf_gui_readshg.o: ./readshg.cpp
194 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
196 $(OBJS)\tex2rtf_gui_rtfutils.o: ./rtfutils.cpp
197 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
199 $(OBJS)\tex2rtf_gui_sample_rc.o: ./../../../samples/sample.rc
200 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
202 $(OBJS)\tex2rtf_gui_table.o: ./table.cpp
203 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
205 $(OBJS)\tex2rtf_gui_tex2any.o: ./tex2any.cpp
206 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
208 $(OBJS)\tex2rtf_gui_tex2rtf.o: ./tex2rtf.cpp
209 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
211 $(OBJS)\tex2rtf_gui_texutils.o: ./texutils.cpp
212 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
214 $(OBJS)\tex2rtf_gui_xlputils.o: ./xlputils.cpp
215 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
217 $(OBJS)\tex2rtf_htmlutil.o: ./htmlutil.cpp
218 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
220 $(OBJS)\tex2rtf_readshg.o: ./readshg.cpp
221 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
223 $(OBJS)\tex2rtf_rtfutils.o: ./rtfutils.cpp
224 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
226 $(OBJS)\tex2rtf_table.o: ./table.cpp
227 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
229 $(OBJS)\tex2rtf_tex2any.o: ./tex2any.cpp
230 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
232 $(OBJS)\tex2rtf_tex2rtf.o: ./tex2rtf.cpp
233 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
235 $(OBJS)\tex2rtf_texutils.o: ./texutils.cpp
236 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
238 $(OBJS)\tex2rtf_xlputils.o: ./xlputils.cpp
239 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
242 -if exist $(OBJS)\*.o del $(OBJS)\*.o
243 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
244 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
246 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
247 $(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
250 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample_rc.o
251 $(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