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_builddir)/src \ 10 -I$(top_srcdir)/src \ 11 -I$(top_srcdir)/src/common \ 12 -I$(top_builddir)/src/common \ 13 -I$(top_srcdir)/src/gtk 14 15if OS_WIN32 16 17LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \ 18 `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \ 19 sed -e 's/-I/--include-dir /g;s/-D/--define /g'` 20 21%.lo : %.rc 22 $(LTRCCOMPILE) -i $< -o $@ 23 24plugin_res = version.lo 25plugin_res_ldflag = -Wl,.libs/version.o 26 27export_symbols = -export-symbols $(srcdir)/plugin.def 28 29plugin_deps = libclaws.a $(plugin_res) plugin.def 30 31libclaws.a: claws.def 32 $(DLLTOOL) --output-lib $@ --def $< 33 34plugin_ldadd = -L. -lclaws 35 36else 37plugin_res = 38plugin_res_ldflag = 39export_symbols = 40plugin_deps = 41plugin_ldadd = 42endif 43 44if PLATFORM_WIN32 45no_undefined = -no-undefined 46else 47no_undefined = 48endif 49 50if CYGWIN 51cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail 52else 53cygwin_export_lib = 54endif 55 56plugindir = $(pkglibdir)/plugins 57 58if BUILD_ATTACHWARNER_PLUGIN 59plugin_LTLIBRARIES = attachwarner.la 60endif 61 62attachwarner_la_LDFLAGS = \ 63 $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \ 64 -avoid-version -module \ 65 $(GTK_LIBS) 66 67attachwarner_la_DEPENDENCIES = $(plugin_deps) 68 69attachwarner_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \ 70 $(GTK_LIBS) 71 72attachwarner_la_CPPFLAGS = \ 73 $(IFLAGS) \ 74 $(GLIB_CFLAGS) \ 75 $(GTK_CFLAGS) \ 76 $(ENCHANT_CFLAGS) 77 78attachwarner_la_SOURCES = \ 79 attachwarner.c attachwarner.h \ 80 attachwarner_prefs.c attachwarner_prefs.h 81 82 83.PHONY: test 84