## Process this file with automake to produce Makefile.in

libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la

SUBDIRS = doc plug-ins

INCLUDES = -I$(top_srcdir) $(PYTHON_INCLUDES) $(GLIB_CFLAGS)

pygimpdir = $(gimpplugindir)/python

pygimp_LTLIBRARIES = gimpmodule.la

gimpmodule_la_SOURCES = \
	gimpmodule.c		\
	pygimp-image.c		\
	pygimp-drawable.c	\
	pygimp-tile.c		\
	pygimp-display.c	\
	pygimp-parasite.c	\
	pygimp-pdb.c		\
	pygimp.h

gimpmodule_la_LDFLAGS = -module -avoid-version \
	-export-symbols-regex 'initgimp|PLUG_IN_INFO'

gimpmodule_la_LIBADD = \
	$(libgimp)		\
	$(libgimpcolor)		\
	$(libgimpbase)		\
	$(GLIB_LIBS)		\
	$(RT_LIBS)

pygimp_PYTHON = \
	gimpplugin.py	\
	gimpenums.py	\
	gimpshelf.py	\
	gimpui.py	\
	gimpfu.py

pyenvdir = $(gimpplugindir)/environ

install-data-local:
	$(mkinstalldirs) $(DESTDIR)$(pyenvdir)
	echo ": PYTHONPATH=$(pygimpdir)" > $(DESTDIR)$(pyenvdir)/pygimp.env

snap:
	$(MAKE) dist distdir=$(PACKAGE)-SNAP-`date +"%Y%m%d"`

EXTRA_DIST = makefile.msc
