1# Copyright 1999-2014 the Claws Mail team. 2# This file is part of Claws Mail package, and distributed under the 3# terms of the General Public License version 3 (or later). 4# See COPYING file for license details. 5 6EXTRA_DIST = claws.def plugin.def version.rc 7 8IFLAGS = \ 9 -I$(top_srcdir)/src \ 10 -I$(top_srcdir)/src/common \ 11 -I$(top_builddir)/src \ 12 -I$(top_srcdir)/src/gtk 13 14if OS_WIN32 15 16LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \ 17 `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \ 18 sed -e 's/-I/--include-dir /g;s/-D/--define /g'` 19 20%.lo : %.rc 21 $(LTRCCOMPILE) -i $< -o $@ 22 23plugin_res = version.lo 24plugin_res_ldflag = -Wl,.libs/version.o 25 26export_symbols = -export-symbols $(srcdir)/plugin.def 27 28plugin_deps = libclaws.a $(plugin_res) plugin.def 29 30libclaws.a: claws.def 31 $(DLLTOOL) --output-lib $@ --def $< 32 33plugin_ldadd = -L. -lclaws 34 35else 36plugin_res = 37plugin_res_ldflag = 38export_symbols = 39plugin_deps = 40plugin_ldadd = 41endif 42 43if PLATFORM_WIN32 44no_undefined = -no-undefined 45else 46no_undefined = 47endif 48 49if CYGWIN 50cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail 51else 52cygwin_export_lib = 53endif 54 55plugindir = $(pkglibdir)/plugins 56 57if BUILD_BSFILTER_PLUGIN 58plugin_LTLIBRARIES = bsfilter.la 59endif 60 61bsfilter_la_LDFLAGS = \ 62 $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \ 63 -avoid-version -module \ 64 $(GTK_LIBS) $(PTHREAD_LIBS) 65 66bsfilter_la_DEPENDENCIES = $(plugin_deps) 67 68bsfilter_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \ 69 $(GTK_LIBS) $(PTHREAD_LIBS) 70 71bsfilter_la_CPPFLAGS = \ 72 $(IFLAGS) \ 73 $(GLIB_CFLAGS) \ 74 $(GTK_CFLAGS) \ 75 $(ENCHANT_CFLAGS) 76 77bsfilter_la_SOURCES = \ 78 bsfilter.c bsfilter.h \ 79 bsfilter_gtk.c 80 81 82.PHONY: test 83