summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/Makefile.am
blob: 4b6e55109de28f643a57c97e97b5d4c6dd49293d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71

DEFAULT_INCLUDES = -I$(top_builddir) -idirafter.

lib_LTLIBRARIES = pychrysalide.la

libdir = $(pluginslibdir)


if BUILD_PYTHON_PACKAGE

RUN_PATH = -Wl,-rpath,'$$ORIGIN/chrysalide-libs'

endif


if BUILD_GTK_SUPPORT

GTKEXT_LIBADD =								\
	gtkext/libpychrysagtkext.la

GTKEXT_SUBDIR = 							\
	gtkext

GUI_LIBADD =								\
	gui/libpychrysagui.la

GUI_SUBDIR =								\
	gui

endif


pychrysalide_la_SOURCES =					\
	access.h access.c						\
	core.h core.c							\
	helpers.h helpers.c						\
	star.h star.c							\
	strenum.h strenum.c						\
	struct.h struct.c

AM_CFLAGS = $(LIBPYTHON_INTERPRETER_CFLAGS) $(LIBPYGOBJECT_CFLAGS) $(TOOLKIT_CFLAGS) $(LIBXML_CFLAGS) \
	-I$(top_srcdir)/src -DNO_IMPORT_PYGOBJECT

pychrysalide_la_LIBADD =					\
	analysis/libpychrysaanalysis.la			\
	arch/libpychrysaarch.la					\
	common/libpychrysacommon.la				\
	core/libpychrysacore.la					\
	debug/libpychrysadebug.la				\
	format/libpychrysaformat.la				\
	glibext/libpychrysaglibext.la			\
	$(GTKEXT_LIBADD)						\
	$(GUI_LIBADD)							\
	mangling/libpychrysamangling.la			\
	plugins/libpychrysaplugins.la

# -ldl: dladdr(), dlerror()
pychrysalide_la_LDFLAGS =					\
	-module -avoid-version -ldl				\
	$(LIBPYTHON_INTERPRETER_LIBS)			\
	$(LIBPYGOBJECT_LIBS)					\
	-L$(top_srcdir)/src/.libs -lchrysacore	\
	$(RUN_PATH)


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

dev_HEADERS = $(pychrysalide_la_SOURCES:%c=)


SUBDIRS = analysis arch common core debug format glibext $(GTKEXT_SUBDIR) $(GUI_SUBDIR) mangling plugins