fc8cb81a9b0f52cfcb8cccc5cee32325845ddf87
[claws.git] / src / plugins / att_remover / Makefile.am
1 # Makefile.am for "src/plugins/att_remover" directory
2 # This file is part of Claws Mail package.
3 # See COPYING file for license details.
4
5 appdata_in_files = claws-mail-att_remover.metainfo.xml.in
6 appdatadir=$(datadir)/appdata
7 appdata_DATA = $(appdata_in_files:.xml.in=.xml)
8
9 @INTLTOOL_XML_RULE@
10 EXTRA_DIST = claws.def plugin.def version.rc $(appdata_DATA) $(appdata_in_files)
11
12 IFLAGS = \
13         -I$(top_srcdir)/src \
14         -I$(top_srcdir)/src/common \
15         -I$(top_builddir)/src/common \
16         -I$(top_srcdir)/src/gtk
17
18 if OS_WIN32
19
20 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
21      `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
22      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
23
24 %.lo : %.rc
25         $(LTRCCOMPILE) -i $< -o $@
26
27 plugin_res = version.lo
28 plugin_res_ldflag = -Wl,.libs/version.o
29
30 export_symbols = -export-symbols $(srcdir)/plugin.def
31
32 plugin_deps = libclaws.a $(plugin_res) plugin.def
33
34 libclaws.a: claws.def
35         $(DLLTOOL) --output-lib $@ --def $<
36
37 plugin_ldadd = -L. -lclaws
38
39 else
40 plugin_res =
41 plugin_res_ldflag =
42 export_symbols =
43 plugin_deps =
44 plugin_ldadd =
45 endif
46
47 if PLATFORM_WIN32
48 no_undefined = -no-undefined
49 else
50 no_undefined =
51 endif
52
53 if CYGWIN
54 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
55 else
56 cygwin_export_lib = 
57 endif
58
59 plugindir = $(pkglibdir)/plugins
60
61 if BUILD_ATT_REMOVER_PLUGIN
62 plugin_LTLIBRARIES = att_remover.la
63 endif
64
65 att_remover_la_SOURCES = \
66         att_remover.c
67
68 att_remover_la_LDFLAGS = \
69         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
70         -avoid-version -module \
71         $(GTK_LIBS)
72
73 att_remover_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
74         $(GTK_LIBS)
75
76 att_remover_la_DEPENDENCIES = $(plugin_deps)
77
78 att_remover_la_CPPFLAGS = \
79         $(IFLAGS) \
80         $(GLIB_CFLAGS) \
81         $(GTK_CFLAGS)