aboutsummaryrefslogtreecommitdiffstats
path: root/fsotdld/src/plugins/contextmanager/Makefile.am
blob: 488a514156023a4b089ccad06d0c8cde17457d86 (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
include $(top_srcdir)/Makefile.decl
NULL =

AM_CPPFLAGS = \
	-I$(top_srcdir)/src/lib \
	$(FSO_CFLAGS) \
	$(GLIB_CFLAGS) \
	$(GEE_CFLAGS) \
	-DG_LOG_DOMAIN=\"fsotdld.contextmanager\" \
	$(NULL)

noinst_PROGRAMS = $(TEST_PROGS)

progs_ldadd = \
	$(FSO_LIBS) \
	$(GLIB_LIBS) \
	$(GEE_LIBS) \
	$(top_builddir)/src/lib/libfsotdl.la

VALAC_ARGS = \
	--basedir $(top_srcdir) \
	--vapidir $(top_srcdir)/src/lib \
	--vapidir $(top_srcdir)/vapi \
	--pkg glib-2.0 \
	--pkg gio-2.0 \
	--pkg gio-hacks \
	--pkg fso-glib-1.0 \
	--pkg fsoframework-2.0 \
	--pkg fsotdl-2.0

#
# plugin
#
modlibexecdir = $(libdir)/cornucopia/modules/fsotdl
modlibexec_LTLIBRARIES = contextmanager.la
contextmanager_la_SOURCES = plugin.c
contextmanager_la_VALASOURCES = plugin.vala
$(contextmanager_la_SOURCES): $(contextmanager_la_VALASOURCES)
	$(VALAC) -C $(VALAC_ARGS) $^
	touch $@
contextmanager_la_LIBADD = $(progs_ldadd)
contextmanager_la_LDFLAGS = -no-undefined -module -avoid-version
contextmanager_la_LIBTOOLFLAGS = --tag=disable-static

EXTRA_DIST += \
	$(contextmanager_la_VALASOURCES) \
	$(contextmanager_la_SOURCES) \
	$(NULL)

CLEANFILES = \
    *.c \
    *.h \
    *.la \
    *.lo \
    $(NULL)

MAINTAINERCLEANFILES = \
  Makefile.in \
  $(NULL)