lib_LTLIBRARIES = libelf.la

libdir = $(pluginslibdir)


if BUILD_PYTHON3_BINDINGS

PYTHON3_LIBADD = python/libelfpython.la

PYTHON3_LDFLAGS = -Wl,-rpath,$(abs_top_srcdir)/plugins/pychrysalide/.libs \
					-L$(top_srcdir)/plugins/pychrysalide/.libs -l:pychrysalide.so

PYTHON3_SUBDIRS = python

endif


libelf_la_SOURCES =						\
	core.h core.c						\
	elf-int.h elf-int.c					\
	elf_def.h							\
	elf_def_arm.h						\
	format.h format.c					\
	dynamic.h dynamic.c					\
	helper_arm.h helper_arm.c			\
	loading.h loading.c					\
	program.h program.c					\
	section.h section.c					\
	strings.h strings.c					\
	symbols.h symbols.c

libelf_la_LIBADD =						\
	$(PYTHON3_LIBADD)

libelf_la_LDFLAGS =								\
	-L$(top_srcdir)/src/.libs -lchrysacore		\
	$(PYTHON3_LDFLAGS)


devdir = $(includedir)/chrysalide-$(subdir)

dev_HEADERS = $(libelf_la_SOURCES:%c=)


AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS) -I$(top_srcdir)/src

AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS)

SUBDIRS = $(PYTHON3_SUBDIRS)