1# Plugin description file
2plugin_in_files = anjuta-python-loader.plugin.in
3%.plugin: %.plugin.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
4
5if HAVE_PYTHON
6
7# Where to install the plugin
8plugindir = $(anjuta_plugin_dir)
9
10dist_plugin_DATA = $(plugin_in_files:.plugin.in=.plugin)
11
12# NOTE :
13# The naming convention is very intentional
14# We are forced to use the prefix 'lib' by automake and libtool
15#    There is probably a way to avoid it but it is not worth to effort
16#    to find out.
17# The 'anjuta_' prfix is a safety measure to avoid conflicts where the
18#    plugin 'libpython.so' needs to link with the real 'libpython.so'
19
20# Include paths
21AM_CPPFLAGS = \
22	$(WARN_CFLAGS) \
23	-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
24	-DANJUTA_DATA_DIR=\"$(anjuta_data_dir)\" \
25	-DANJUTA_PLUGIN_DIR=\"$(anjuta_plugin_dir)\" \
26	-DANJUTA_IMAGE_DIR=\"$(anjuta_image_dir)\" \
27	-DANJUTA_GLADE_DIR=\"$(anjuta_glade_dir)\" \
28	-DANJUTA_UI_DIR=\"$(anjuta_ui_dir)\" \
29	$(LIBANJUTA_CFLAGS) \
30	$(PYTHON_CFLAGS) \
31	$(PYGOBJECT_CFLAGS) \
32	-DPACKAGE_SRC_DIR=\"$(srcdir)\" \
33	-DG_LOG_DOMAIN=\"python-loader\"
34
35# The plugin
36plugin_LTLIBRARIES = libanjuta-python-loader.la
37
38# Plugin sources
39libanjuta_python_loader_la_SOURCES = plugin.c plugin.h
40
41libanjuta_python_loader_la_LDFLAGS = $(ANJUTA_PLUGIN_LDFLAGS)
42
43# Plugin dependencies
44libanjuta_python_loader_la_LIBADD = \
45	$(LIBANJUTA_LIBS) \
46	$(PYTHON_LIBS) \
47	$(PYGOBJECT_LIBS)
48
49endif # HAVE_PYTHON
50
51EXTRA_DIST = \
52	$(plugin_in_files)
53
54CLEANFILES = $(plugin_in_files:.plugin.in=.plugin)
55
56-include $(top_srcdir)/git.mk
57