+# Makefile.am for "src/plugins/clamd" directory
+# This file is part of Claws Mail package.
+# See COPYING file for license details.
+
SUBDIRS = libclamd
plugindir = $(pkglibdir)/plugins
+if BUILD_CLAMD_PLUGIN
plugin_LTLIBRARIES = clamd.la
+endif
clamd_la_SOURCES = \
clamav_plugin.c \
clamd_la_LIBADD = \
-lclamd-plugin
-INCLUDES = \
+clamd_la_CPPFLAGS = \
-I$(top_srcdir)/src/plugins/clamd/libclamd \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/common \
- -I$(top_srcdir)/src/gtk
-
-AM_CPPFLAGS = \
- -Wall \
- $(CLAWS_MAIL_CFLAGS) \
+ -I$(top_builddir)/src/common \
+ -I$(top_srcdir)/src/gtk \
$(GLIB_CFLAGS) \
- $(GTK_CFLAGS) \
- -DLOCALEDIR=\""$(localedir)"\"
+ $(GTK_CFLAGS)