-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
62 lines (51 loc) · 1.41 KB
/
Makefile.am
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
ACLOCAL_AMFLAGS = -I m4 --install
AM_CPPFLAGS = -I$(top_srcdir)/src
AM_CFLAGS =
AM_LDFLAGS =
EXTRA_DIST = \
autogen.sh \
CPPLINT.cfg \
libcontext.pc
# include glib as dependency
AM_CFLAGS += $(GLIB_CFLAGS)
AM_LDFLAGS += $(GLIB_LIBS)
# include gobject as dependency
AM_CFLAGS += $(GOBJECT_CFLAGS)
AM_LDFLAGS += $(GOBJECT_LIBS)
# targets
lib_LTLIBRARIES = libcontext-1.la
# libcontext-1.la
libcontext_1_la_SOURCES = \
src/context/valuemap.h \
src/context/valuemap.c \
src/context/context.h \
src/context/context.c \
src/context/context_root.h \
src/context/context_root.c \
src/context/error.h
libcontext_1_la_LDFLAGS = $(AM_LDFLAGS) -versioninfo $(LIBVERSION)
# installation header files
include_HEADERS = \
src/context/valuemap.h \
src/context/context.h \
src/context/error.h
# installation pkgconfig files
pkgconfiglibdir = $(libdir)/pkgconfig
pkgconfiglib_DATA = libcontext.pc
# tests
check_PROGRAMS = \
test/context/valuemap_test \
test/context/background_test
# context/valuemap test
test_context_valuemap_test_SOURCES = test/context/valuemap_test.c
test_context_valuemap_test_LDADD = $(lib_LTLIBRARIES)
# context/background test
test_context_background_test_SOURCES = test/context/background_test.c
test_context_background_test_LDADD = $(lib_LTLIBRARIES)
# makefile includes
include make/lint.am
include make/format.am
include make/check.am
include make/sanity.am
include make/coverage.am
include make/phony.am