AM_CPPFLAGS=					\
	-DATRILDATADIR=\"$(pkgdatadir)\"	\
	-DMATELOCALEDIR=\"$(datadir)/locale\"	\
	-I$(top_srcdir)				\
	-I$(top_builddir)			\
	$(FRONTEND_CFLAGS)			\
	$(CAJA_CFLAGS)			\
	$(DISABLE_DEPRECATED)			\
	$(WARN_CFLAGS)

noinst_LTLIBRARIES = libevproperties.la

libevproperties_la_SOURCES=			\
	ev-properties-view.c			\
	ev-properties-view.h

if ENABLE_CAJA

cajaextension_LTLIBRARIES = libatril-properties-page.la

libatril_properties_page_la_CFLAGS = -I$(top_srcdir)
libatril_properties_page_la_SOURCES = 	\
	ev-properties-main.c

libatril_properties_page_la_LIBADD = 		\
	libevproperties.la			\
	$(top_builddir)/libdocument/libatrildocument.la	\
	$(FRONTEND_LIBS)			\
	$(CAJA_LIBS)

libatril_properties_page_la_LDFLAGS = -module -avoid-version -no-undefined

extensiondir = $(datadir)/caja/extensions
extension_in_files = libatril-properties-page.caja-extension.in
extension_DATA = $(extension_in_files:.caja-extension.in=.caja-extension)
%.caja-extension: %.caja-extension.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(AM_V_GEN) LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@

EXTRA_DIST = $(extension_in_files)

endif # ENABLE_CAJA

-include $(top_srcdir)/git.mk