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 .\..\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
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$(LIBDIRNAME) \
22 -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \
23 -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \
24 $(__DLLFLAG_p) -DNO_GUI $(CXXFLAGS)
25 TEX2RTF_GUI_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
26 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
27 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(LIBDIRNAME) \
28 -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \
29 -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \
30 $(__DLLFLAG_p) -I.\..\..\..\samples $(CXXFLAGS)
31 TEX2RTF_GUI_OBJECTS = \
32 $(OBJS)\tex2rtf_gui_sample_rc.o \
33 $(OBJS)\tex2rtf_gui_tex2rtf.o \
34 $(OBJS)\tex2rtf_gui_tex2any.o \
35 $(OBJS)\tex2rtf_gui_texutils.o \
36 $(OBJS)\tex2rtf_gui_rtfutils.o \
37 $(OBJS)\tex2rtf_gui_xlputils.o \
38 $(OBJS)\tex2rtf_gui_htmlutil.o \
39 $(OBJS)\tex2rtf_gui_readshg.o \
40 $(OBJS)\tex2rtf_gui_table.o
42 $(OBJS)\tex2rtf_tex2rtf.o \
43 $(OBJS)\tex2rtf_tex2any.o \
44 $(OBJS)\tex2rtf_texutils.o \
45 $(OBJS)\tex2rtf_rtfutils.o \
46 $(OBJS)\tex2rtf_xlputils.o \
47 $(OBJS)\tex2rtf_htmlutil.o \
48 $(OBJS)\tex2rtf_readshg.o \
49 $(OBJS)\tex2rtf_table.o
51 ### Conditionally set variables: ###
53 ifeq ($(GCC_VERSION),2.95)
54 GCCFLAGS = -fvtable-thunks
63 ifeq ($(DEBUG_FLAG),default)
67 ifeq ($(DEBUG_FLAG),1)
80 ifeq ($(DEBUG_INFO),default)
84 ifeq ($(BUILD),release)
85 ifeq ($(DEBUG_INFO),default)
89 ifeq ($(DEBUG_INFO),0)
92 ifeq ($(DEBUG_INFO),1)
96 ifeq ($(DEBUG_FLAG),default)
97 __DEBUG_DEFINE_p = -D__WXDEBUG__
100 ifeq ($(DEBUG_FLAG),1)
101 __DEBUG_DEFINE_p = -D__WXDEBUG__
103 ifeq ($(BUILD),debug)
104 ifeq ($(DEBUG_FLAG),default)
105 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
108 ifeq ($(DEBUG_FLAG),1)
109 __DEBUG_DEFINE_p_3 = --define __WXDEBUG__
112 __DLLFLAG_p = -DWXUSINGDLL
115 __DLLFLAG_p_3 = --define WXUSINGDLL
118 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
121 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
124 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
126 ifeq ($(BUILD),debug)
129 ifeq ($(BUILD),release)
133 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
136 __UNICODE_DEFINE_p_3 = --define wxUSE_UNICODE=1
139 __UNICOWS_LIB_p = -lunicows
141 ifeq ($(MONOLITHIC),0)
142 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
144 ifeq ($(MONOLITHIC),0)
146 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
148 ifeq ($(MONOLITHIC),0)
150 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html
152 ifeq ($(MONOLITHIC),1)
154 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
157 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
160 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
166 -if not exist $(OBJS) mkdir $(OBJS)
170 all: $(OBJS)\tex2rtf.exe $(OBJS)\tex2rtf_gui.exe
172 $(OBJS)\tex2rtf_gui_htmlutil.o: .\htmlutil.cpp
173 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
175 $(OBJS)\tex2rtf_gui_readshg.o: .\readshg.cpp
176 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
178 $(OBJS)\tex2rtf_gui_rtfutils.o: .\rtfutils.cpp
179 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
181 $(OBJS)\tex2rtf_gui_sample_rc.o: .\..\..\..\samples\sample.rc
182 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 $(LIBDIRNAME) --include-dir ./../../../src/tiff --include-dir ./../../../src/jpeg --include-dir ./../../../src/png --include-dir ./../../../src/zlib --include-dir ./../../../src/regex --include-dir ./../../../src/expat/lib --include-dir . $(__DLLFLAG_p_3) --include-dir ./../../../samples
184 $(OBJS)\tex2rtf_gui_table.o: .\table.cpp
185 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
187 $(OBJS)\tex2rtf_gui_tex2any.o: .\tex2any.cpp
188 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
190 $(OBJS)\tex2rtf_gui_tex2rtf.o: .\tex2rtf.cpp
191 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
193 $(OBJS)\tex2rtf_gui_texutils.o: .\texutils.cpp
194 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
196 $(OBJS)\tex2rtf_gui_xlputils.o: .\xlputils.cpp
197 $(CXX) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
199 $(OBJS)\tex2rtf_htmlutil.o: .\htmlutil.cpp
200 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
202 $(OBJS)\tex2rtf_readshg.o: .\readshg.cpp
203 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
205 $(OBJS)\tex2rtf_rtfutils.o: .\rtfutils.cpp
206 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
208 $(OBJS)\tex2rtf_table.o: .\table.cpp
209 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
211 $(OBJS)\tex2rtf_tex2any.o: .\tex2any.cpp
212 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
214 $(OBJS)\tex2rtf_tex2rtf.o: .\tex2rtf.cpp
215 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
217 $(OBJS)\tex2rtf_texutils.o: .\texutils.cpp
218 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
220 $(OBJS)\tex2rtf_xlputils.o: .\xlputils.cpp
221 $(CXX) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
224 -if exist $(OBJS)\*.o del $(OBJS)\*.o
225 -if exist $(OBJS)\tex2rtf.exe del $(OBJS)\tex2rtf.exe
226 -if exist $(OBJS)\tex2rtf_gui.exe del $(OBJS)\tex2rtf_gui.exe
228 $(OBJS)\tex2rtf.exe: $(TEX2RTF_OBJECTS)
229 $(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
231 $(OBJS)\tex2rtf_gui.exe: $(TEX2RTF_GUI_OBJECTS) $(OBJS)\tex2rtf_gui_sample_rc.o
232 $(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