put web_extensions/ at the same level as plugins/ so users do not assume it contains...
[claws.git] / src / plugins / fancy / Makefile.am
blob0d559f0898c3c7e90287b62fa55fb14de8666448
1 # Copyright 1999-2022 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.
6 include $(srcdir)/../win_plugin.mk
8 IFLAGS = \
9         -I$(top_builddir)/src \
10         -I$(top_srcdir)/src \
11         -I$(top_srcdir)/src/common \
12         -I$(top_srcdir)/src/gtk
14 plugindir = $(pkglibdir)/plugins
15 webextensiondir = $(pkglibdir)/web_extensions
17 if BUILD_FANCY_PLUGIN
18 plugin_LTLIBRARIES = fancy.la
19 webextension_LTLIBRARIES = fancywebextension.la
20 endif
22 fancy_la_LDFLAGS = \
23         $(plugin_ldflags) \
24         -avoid-version -module
26 EXTRA_fancy_la_DEPENDENCIES = $(plugin_extra_deps)
28 fancy_la_LIBADD = $(plugin_libadd) \
29         $(GTK_LIBS) \
30         $(WEBKIT_LIBS) \
31         $(LIBSOUP_GNOME_LIBS) \
32         $(CURL_LIBS)
34 fancy_la_CPPFLAGS = \
35         $(IFLAGS) \
36         $(GLIB_CFLAGS) \
37         $(GTK_CFLAGS) \
38         $(ENCHANT_CFLAGS) \
39         $(WEBKIT_CFLAGS) \
40         $(LIBSOUP_GNOME_CFLAGS) \
41         $(CURL_CFLAGS) \
42         -DFANCY_WEB_EXTENSIONS_DIR=\""$(pkglibdir)/web_extensions"\" \
43         -DFANCY_WEB_EXTENSION_FILE=\""fancywebextension"\"
45 fancy_la_SOURCES = \
46         fancy_prefs.c \
47         fancy_prefs.h \
48         fancy_viewer.c \
49         fancy_viewer.h
51 fancywebextension_la_SOURCES = fancy_web_extension.c
52 fancywebextension_la_CFLAGS = $(WEBKIT_CFLAGS)
53 fancywebextension_la_LIBADD = $(WEBKIT_LIBS)
54 fancywebextension_la_LDFLAGS = -module -avoid-version -no-undefined
56 .PHONY: test