File claws-mail-extra-plugins-libytnef_shlib.diff of Package claws-mail-extra-plugins
Index: tnef_parse-0.3/src/Makefile.am
===================================================================
--- tnef_parse-0.3/src/Makefile.am.orig
+++ tnef_parse-0.3/src/Makefile.am
@@ -2,25 +2,33 @@ plugindir = $(CLAWS_MAIL_PLUGINDIR)
plugin_LTLIBRARIES = tnef_parse.la
+lib_LTLIBRARIES = libytnef.la
+libytnef_la_SOURCES = ytnef.c
+
+include_HEADERS = \
+ mapi.h \
+ mapidefs.h \
+ mapitags.h \
+ tnef-errors.h \
+ tnef-types.h \
+ ytnef.h
+
+# set explicitly soname
+libytnef_la_LDFLAGS = $(all_libraries) -version-info 0:0:0
+
tnef_parse_la_SOURCES = \
tnef_parse.c \
tnef_dump.c \
tnef_dump.h \
- ytnef.c \
gettext.h
+tnef_parse_la_LIBADD = libytnef.la
tnef_parse_la_LDFLAGS = \
-avoid-version -module \
$(GTK_LIBS)
noinst_HEADERS = \
- mapidefs.h \
- mapi.h \
- mapitags.h \
- tnef_dump.h \
- tnef-errors.h \
- tnef-types.h \
- ytnef.h
+ tnef_dump.h
INCLUDES = \
-I$(top_srcdir)/src \