1if BUILD_TOOLS 2 3bin_PROGRAMS = wks2text 4 5AM_CXXFLAGS = -I$(top_srcdir)/inc $(REVENGE_CFLAGS) $(REVENGE_GENERATORS_CFLAGS) $(REVENGE_STREAM_CFLAGS) $(DEBUG_CXXFLAGS) 6 7wks2text_DEPENDENCIES = @WKS2TEXT_WIN32_RESOURCE@ 8 9if STATIC_TOOLS 10 11wks2text_LDADD = \ 12 ../../lib/@WPS_OBJDIR@/libwps-@WPS_MAJOR_VERSION@.@WPS_MINOR_VERSION@.a \ 13 $(REVENGE_LIBS) $(REVENGE_GENERATORS_LIBS) $(REVENGE_STREAM_LIBS) @WKS2TEXT_WIN32_RESOURCE@ 14wks2text_LDFLAGS = -all-static 15 16else 17 18wks2text_LDADD = \ 19 ../../lib/libwps-@WPS_MAJOR_VERSION@.@WPS_MINOR_VERSION@.la \ 20 $(REVENGE_LIBS) $(REVENGE_GENERATORS_LIBS) $(REVENGE_STREAM_LIBS) @WKS2TEXT_WIN32_RESOURCE@ 21 22endif 23 24wks2text_SOURCES = \ 25 wks2text.cpp 26 27if OS_WIN32 28 29@WKS2TEXT_WIN32_RESOURCE@ : wks2text.rc $(wks2text_OBJECTS) 30 chmod +x $(top_srcdir)/build/win32/*compile-resource 31 WINDRES=@WINDRES@ $(top_srcdir)/build/win32/lt-compile-resource wks2text.rc @WKS2TEXT_WIN32_RESOURCE@ 32endif 33 34EXTRA_DIST = \ 35 $(wks2text_SOURCES) \ 36 wks2text.rc.in 37 38# These may be in the builddir too 39BUILD_EXTRA_DIST = \ 40 wks2text.rc 41 42endif 43