Fix various plugins including generated .h files when building outside of source...
[claws.git] / src / plugins / archive / Makefile.am
1 # Copyright 1999-2017 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
6 plugindir = $(pkglibdir)/plugins
7
8 if BUILD_ARCHIVE_PLUGIN
9 plugin_LTLIBRARIES = archive.la
10 endif
11
12 archive_la_SOURCES = \
13               libarchive_archive.c \
14                   libarchive_archive.h \
15                   archiver.c \
16                   archiver.h \
17                   archiver_gtk.c \
18                   archiver_prefs.c \
19                   archiver_prefs.h
20
21 archive_la_LDFLAGS = \
22                 -avoid-version -module \
23                 $(GTK_LIBS) \
24                 $(LIBARCHIVE_LIBS)
25
26 archive_la_LIBADD = \
27                 @ARCHIVE_LIBS@
28
29
30 archive_la_CPPFLAGS = \
31         -I$(top_srcdir)/src \
32         -I$(top_srcdir)/src/common \
33         -I$(top_builddir)/src \
34         -I$(top_srcdir)/src/gtk \
35         $(GLIB_CFLAGS) \
36         $(GTK_CFLAGS) \
37         $(ENCHANT_CFLAGS) \
38         $(LIBARCHIVE_CFLAGS)