1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
SUBDIRS = common exp imp
if OPENDOCUMENT_BUILTIN
noinst_LTLIBRARIES = opendocument.la
else
plugindir = $(ABIWORD_PLUGINSDIR)
plugin_LTLIBRARIES = opendocument.la
endif # OPENDOCUMENT_BUILTIN
opendocument_la_LIBADD = \
common/libcommon.la \
exp/libexp.la \
imp/libimp.la \
$(OPENDOCUMENT_LIBS) \
$(LIBGCRYPT_LIBS)
opendocument_la_LDFLAGS = \
-avoid-version \
-module \
-no-undefined
if TOOLKIT_COCOA
opendocument_la_LDFLAGS += -headerpad_max_install_names
endif # TOOLKIT_COCOA
opendocument_la_SOURCES =
# needed to call the C++ ld driver
nodist_EXTRA_opendocument_la_SOURCES = dummy.cpp
if TOOLKIT_COCOA
install-data-hook:
install_name_tool -change $(ABIWORD_LIBDIR)/libabiword-@ABIWORD_SERIES@.dylib \
@executable_path/../Frameworks/libabiword-@ABIWORD_SERIES@.dylib \
$(DESTDIR)/$(plugindir)/opendocument.so
endif # TOOLKIT_COCOA
EXTRA_DIST = \
plugin.m4
|