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) -I. $(__DLLFLAG_p) \
23 TEX2RTF_GUI_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
24 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
25 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
26 -I.\..\..\..\samples $(CXXFLAGS)
27 TEX2RTF_GUI_OBJECTS = \
28 $(OBJS)\tex2rtf_gui_sample_rc.o \
29 $(OBJS)\tex2rtf_gui_tex2rtf.o \
30 $(OBJS)\tex2rtf_gui_tex2any.o \
31 $(OBJS)\tex2rtf_gui_texutils.o \
32 $(OBJS)\tex2rtf_gui_rtfutils.o \
33 $(OBJS)\tex2rtf_gui_xlputils.o \
34 $(OBJS)\tex2rtf_gui_htmlutil.o \
35 $(OBJS)\tex2rtf_gui_readshg.o \
36 $(OBJS)\tex2rtf_gui_table.o
38 $(OBJS)\tex2rtf_tex2rtf.o \
39 $(OBJS)\tex2rtf_tex2any.o \
40 $(OBJS)\tex2rtf_texutils.o \
41 $(OBJS)\tex2rtf_rtfutils.o \
42 $(OBJS)\tex2rtf_xlputils.o \
43 $(OBJS)\tex2rtf_htmlutil.o \
44 $(OBJS)\tex2rtf_readshg.o \
45 $(OBJS)\tex2rtf_table.o
47 ### Conditionally set variables: ###
49 ifeq ($(GCC_VERSION),2.95)
50 GCCFLAGS = -fvtable-thunks
53 LIBDIRNAME = .\..\..\..\lib\gcc_lib$(CFG)
56 LIBDIRNAME = .\..\..\..\lib\gcc_dll$(CFG)
65 ifeq ($(DEBUG_FLAG),default)
69 ifeq ($(DEBUG_FLAG),1)
82 ifeq ($(DEBUG_INFO),default)
86 ifeq ($(BUILD),release)
87 ifeq ($(DEBUG_INFO),default)
91 ifeq ($(DEBUG_INFO),0)
94 ifeq ($(DEBUG_INFO),1)
98 ifeq ($(DEBUG_FLAG),default)
99 __DEBUG_DEFINE_p = -D__WXDEBUG__
102 ifeq ($(DEBUG_FLAG),1)
103 __DEBUG_DEFINE_p = -D__WXDEBUG__
105 ifeq ($(BUILD),debug)
106 ifeq ($(DEBUG_FLAG),default)
107 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
110 ifeq ($(DEBUG_FLAG),1)
111 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
114 __DLLFLAG_p = -DWXUSINGDLL
117 __DLLFLAG_p_3 = --define WXUSINGDLL
120 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
123 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
126 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
128 ifeq ($(BUILD),debug)
131 ifeq ($(BUILD),release)
135 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
138 __UNICODE_DEFINE_p_3 = --define wxUSE_UNICODE=1
141 __UNICOWS_LIB_p = -lunicows
143 ifeq ($(MONOLITHIC),0)
144 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
146 ifeq ($(MONOLITHIC),0)
148 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
150 ifeq ($(MONOLITHIC),0)
152 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html
154 ifeq ($(MONOLITHIC),1)
156 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
159 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
162 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
168 -if not exist $(OBJS) mkdir $(OBJS)
172 all: $(OBJS)\tex2rtf.exe $(OBJS)\tex2rtf_gui.exe
174 $(OBJS)\tex2rtf_gui_htmlutil.o: ./htmlutil.cpp
175 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
177 $(OBJS)\tex2rtf_gui_readshg.o: ./readshg.cpp
178 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
180 $(OBJS)\tex2rtf_gui_rtfutils.o: ./rtfutils.cpp
181 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
183 $(OBJS)\tex2rtf_gui_sample_rc.o: ./../../../samples/sample.rc
184 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
186 $(OBJS)\tex2rtf_gui_table.o: ./table.cpp
187 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
189 $(OBJS)\tex2rtf_gui_tex2any.o: ./tex2any.cpp
190 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
192 $(OBJS)\tex2rtf_gui_tex2rtf.o: ./tex2rtf.cpp
193 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
195 $(OBJS)\tex2rtf_gui_texutils.o: ./texutils.cpp
196 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
198 $(OBJS)\tex2rtf_gui_xlputils.o: ./xlputils.cpp
199 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
201 $(OBJS)\tex2rtf_htmlutil.o: ./htmlutil.cpp
202 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
204 $(OBJS)\tex2rtf_readshg.o: ./readshg.cpp
205 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
207 $(OBJS)\tex2rtf_rtfutils.o: ./rtfutils.cpp
208 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
210 $(OBJS)\tex2rtf_table.o: ./table.cpp
211 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
213 $(OBJS)\tex2rtf_tex2any.o: ./tex2any.cpp
214 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
216 $(OBJS)\tex2rtf_tex2rtf.o: ./tex2rtf.cpp
217 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
219 $(OBJS)\tex2rtf_texutils.o: ./texutils.cpp
220 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
222 $(OBJS)\tex2rtf_xlputils.o: ./xlputils.cpp
223 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
226 -if exist $(OBJS)\*.o del $(OBJS)\*.o
227 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
228 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
230 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
231 $(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
233 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample_rc.o
234 $(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