AM_CPPFLAGS = $(WX_CXXFLAGS) \
			-I$(top_srcdir)/src/include \
			-I$(top_srcdir)/src/sdk/wxscintilla/include

pluginlibdir = $(pkglibdir)/plugins

pluginlib_LTLIBRARIES = libautosave.la

libautosave_la_LDFLAGS = @MODULE_SHARED_LDFLAGS@ -version-info 0:1:0 -no-undefined -avoid-version

libautosave_la_LIBADD =  ../../sdk/libcodeblocks.la $(WX_LIBS)

libautosave_la_SOURCES = autosave.cpp
noinst_HEADERS = autosave.h
EXTRA_DIST = autosave.xrc manifest.xml
pkgdata_DATA = autosave.zip
CLEANFILES = $(pkgdata_DATA)

autosave.zip: $(EXTRA_DIST)
	PWD=`pwd` cd $(srcdir) && zip $(PWD)/autosave.zip manifest.xml *.xrc > /dev/null
