1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.3 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
11 exec_prefix = @exec_prefix@
18 INSTALL_PROGRAM = @INSTALL_PROGRAM@
19 INSTALL_DIR = @INSTALL_DIR@
21 top_srcdir = @top_srcdir@
22 top_builddir = @top_builddir@
24 LDFLAGS_GUI = @LDFLAGS_GUI@
30 TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
31 TOOLKIT_VERSION = @TOOLKIT_VERSION@
32 TOOLCHAIN_NAME = @TOOLCHAIN_NAME@
33 EXTRALIBS = @EXTRALIBS@
34 EXTRALIBS_GUI = @EXTRALIBS_GUI@
35 HOST_SUFFIX = @HOST_SUFFIX@
40 LIBDIRNAME = $(top_builddir)lib
41 TEX2RTF_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) -I$(srcdir) \
42 $(__DLLFLAG_p) -DNO_GUI $(CPPFLAGS) $(CXXFLAGS)
52 TEX2RTF_GUI_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) -I$(srcdir) \
53 $(__DLLFLAG_p) -I$(srcdir)/../../../samples $(CPPFLAGS) $(CXXFLAGS)
54 TEX2RTF_GUI_OBJECTS = \
55 $(__tex2rtf_gui___win32rc) \
56 $(__tex2rtf_gui_os2_lib_res) \
57 tex2rtf_gui_tex2rtf.o \
58 tex2rtf_gui_tex2any.o \
59 tex2rtf_gui_texutils.o \
60 tex2rtf_gui_rtfutils.o \
61 tex2rtf_gui_xlputils.o \
62 tex2rtf_gui_htmlutil.o \
63 tex2rtf_gui_readshg.o \
66 ### Conditionally set variables: ###
68 @COND_DEPS_TRACKING_0@CXXC = $(CXX)
69 @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX)
70 @COND_USE_GUI_0@PORTNAME = base
71 @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
72 @COND_TOOLKIT_MAC@WXBASEPORT = _carbon
73 @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d
74 @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
75 @COND_UNICODE_1@WXUNICODEFLAG = u
76 @COND_WXUNIV_1@WXUNIVNAME = univ
77 @COND_PLATFORM_MAC_1@__tex2rtf___mac_setfilecmd = \
78 @COND_PLATFORM_MAC_1@ $(SETFILE) -t APPL tex2rtf$(EXEEXT)
79 @COND_USE_GUI_1@__tex2rtf_gui___depname = tex2rtf_gui$(EXEEXT)
80 @COND_PLATFORM_MAC_1@__tex2rtf_gui___mac_setfilecmd = \
81 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C tex2rtf_gui$(EXEEXT)
82 @COND_PLATFORM_MAC_1@__tex2rtf_gui___mac_rezcmd = $(__MACOSX_RESOURCES_p_1)
83 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_4 = -d __WXUNIVERSAL__
84 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_5 = --define __WXUNIVERSAL__
85 @COND_SHARED_1@__DLLFLAG_p_4 = -d WXUSINGDLL
86 @COND_SHARED_1@__DLLFLAG_p_5 = --define WXUSINGDLL
87 COND_PLATFORM_OS2_1___tex2rtf_gui___os2_emxbindcmd = $(NM) \
88 tex2rtf_gui$(EXEEXT) | if grep -q pmwin.763 ; then emxbind -ep \
89 tex2rtf_gui$(EXEEXT) ; fi
90 @COND_PLATFORM_OS2_1@__tex2rtf_gui___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___tex2rtf_gui___os2_emxbindcmd)
91 @COND_PLATFORM_WIN32_1@__tex2rtf_gui___win32rc = tex2rtf_gui_sample_rc.o
92 @COND_PLATFORM_OS2_1@__tex2rtf_gui_os2_lib_res = \
93 @COND_PLATFORM_OS2_1@ $(top_srcdir)/include/wx/os2/wx.res
94 COND_MONOLITHIC_0___WXLIB_CORE_p = \
95 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core-2.5$(HOST_SUFFIX)
96 @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
97 @COND_USE_GUI_1@__install_tex2rtf_gui___depname = install_tex2rtf_gui
98 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
99 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_4) -i $(srcdir) $(__DLLFLAG_p_4) -i \
100 $(srcdir)/../../../samples -i $(top_srcdir)/include -o tex2rtf_gui$(EXEEXT) \
101 Carbon.r $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).2.r sample.r
102 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1)
103 @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
104 @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
105 @COND_MONOLITHIC_0@__WXLIB_BASE_p = \
106 @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
107 COND_MONOLITHIC_1___WXLIB_MONO_p = \
108 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
109 @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
110 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \
111 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \
112 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(HOST_SUFFIX)
113 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \
114 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \
115 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(HOST_SUFFIX)
116 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \
117 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \
118 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(HOST_SUFFIX)
119 @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
120 @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX)
121 @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \
122 @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(HOST_SUFFIX)
123 @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = \
124 @COND_WXUSE_REGEX_BUILTIN@ -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(HOST_SUFFIX)
125 @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
126 @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(HOST_SUFFIX)
130 all: tex2rtf$(EXEEXT) $(__tex2rtf_gui___depname)
132 install: all install_tex2rtf $(__install_tex2rtf_gui___depname)
136 install-strip: install
137 $(STRIP) $(DESTDIR)$(bindir)/tex2rtf$(EXEEXT)
138 $(STRIP) $(DESTDIR)$(bindir)/tex2rtf_gui$(EXEEXT)
141 rm -rf ./.deps ./.pch
143 rm -f tex2rtf$(EXEEXT)
144 rm -f tex2rtf_gui$(EXEEXT)
147 rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
149 tex2rtf$(EXEEXT): $(TEX2RTF_OBJECTS)
150 $(CXX) -o $@ $(TEX2RTF_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(__LIB_ZLIB_p) $(__LIB_ODBC_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS)
152 $(__tex2rtf___mac_setfilecmd)
155 $(INSTALL_DIR) $(DESTDIR)$(bindir)
156 $(INSTALL_PROGRAM) tex2rtf$(EXEEXT) $(DESTDIR)$(bindir)
158 @COND_USE_GUI_1@tex2rtf_gui$(EXEEXT): $(TEX2RTF_GUI_OBJECTS) $(__tex2rtf_gui___win32rc)
159 @COND_USE_GUI_1@ $(CXX) -o $@ $(TEX2RTF_GUI_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(__LIB_ZLIB_p) $(__LIB_ODBC_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS) $(EXTRALIBS_GUI)
160 @COND_USE_GUI_1@ $(__tex2rtf_gui___mac_rezcmd)
161 @COND_USE_GUI_1@ $(__tex2rtf_gui___mac_setfilecmd)
162 @COND_USE_GUI_1@ $(__tex2rtf_gui___os2_emxbindcmd)
164 @COND_USE_GUI_1@install_tex2rtf_gui:
165 @COND_USE_GUI_1@ $(INSTALL_DIR) $(DESTDIR)$(bindir)
166 @COND_USE_GUI_1@ $(INSTALL_PROGRAM) tex2rtf_gui$(EXEEXT) $(DESTDIR)$(bindir)
168 tex2rtf_tex2rtf.o: $(srcdir)/tex2rtf.cpp
169 $(CXXC) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
171 tex2rtf_tex2any.o: $(srcdir)/tex2any.cpp
172 $(CXXC) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
174 tex2rtf_texutils.o: $(srcdir)/texutils.cpp
175 $(CXXC) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
177 tex2rtf_rtfutils.o: $(srcdir)/rtfutils.cpp
178 $(CXXC) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
180 tex2rtf_xlputils.o: $(srcdir)/xlputils.cpp
181 $(CXXC) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
183 tex2rtf_htmlutil.o: $(srcdir)/htmlutil.cpp
184 $(CXXC) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
186 tex2rtf_readshg.o: $(srcdir)/readshg.cpp
187 $(CXXC) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
189 tex2rtf_table.o: $(srcdir)/table.cpp
190 $(CXXC) -c -o $@ $(TEX2RTF_CXXFLAGS) $<
192 tex2rtf_gui_sample_rc.o: $(srcdir)/../../../samples/sample.rc
193 $(RESCOMP) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_5) --include-dir $(srcdir) $(__DLLFLAG_p_5) --include-dir $(srcdir)/../../../samples --include-dir $(top_srcdir)/include
195 tex2rtf_gui_tex2rtf.o: $(srcdir)/tex2rtf.cpp
196 $(CXXC) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
198 tex2rtf_gui_tex2any.o: $(srcdir)/tex2any.cpp
199 $(CXXC) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
201 tex2rtf_gui_texutils.o: $(srcdir)/texutils.cpp
202 $(CXXC) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
204 tex2rtf_gui_rtfutils.o: $(srcdir)/rtfutils.cpp
205 $(CXXC) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
207 tex2rtf_gui_xlputils.o: $(srcdir)/xlputils.cpp
208 $(CXXC) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
210 tex2rtf_gui_htmlutil.o: $(srcdir)/htmlutil.cpp
211 $(CXXC) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
213 tex2rtf_gui_readshg.o: $(srcdir)/readshg.cpp
214 $(CXXC) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
216 tex2rtf_gui_table.o: $(srcdir)/table.cpp
217 $(CXXC) -c -o $@ $(TEX2RTF_GUI_CXXFLAGS) $<
220 # Include dependency info, if present:
221 @IF_GNU_MAKE@-include .deps/*.d
223 .PHONY: all install uninstall clean distclean install_tex2rtf install_tex2rtf_gui