-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.am
More file actions
91 lines (72 loc) · 1.71 KB
/
Makefile.am
File metadata and controls
91 lines (72 loc) · 1.71 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = \
$(top_srcdir)/autogen.sh \
$(top_srcdir)/.version \
$(top_srcdir)/README.md
BUILT_SOURCES = \
$(top_srcdir)/.version
$(top_srcdir)/.version:
echo $(VERSION) > $@-t && mv $@-t $@
dist-hook:
echo $(VERSION) > $(distdir)/.tarball-version
include_HEADERS = include/balde-markdown.h
lib_LTLIBRARIES = libbalde_markdown.la
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = balde-markdown.pc
check_PROGRAMS = \
tests/check_markdown
TESTS = \
$(check_PROGRAMS)
libbalde_markdown_la_SOURCES = \
src/markdown.c
libbalde_markdown_la_CFLAGS = \
$(AM_CFLAGS) \
$(GLIB_CFLAGS) \
$(BALDE_CFLAGS) \
-I$(top_srcdir)/include
libbalde_markdown_la_LDFLAGS = \
$(AM_LDADD) \
$(GLIB_LIBS) \
$(BALDE_LIBS) \
-version-info $(LT_VERSION_INFO)
tests_check_markdown_SOURCES = \
tests/check_markdown.c
tests_check_markdown_CFLAGS = \
$(all_includes) \
$(BALDE_CFLAGS) \
-I$(top_srcdir)/include
tests_check_markdown_LDADD = \
$(BALDE_LIBS) \
libbalde_markdown.la
tests_check_markdown_LDFLAGS = \
-no-install
clean-local:
-rm -rf valgrind-*.xml
if USE_VALGRIND
valgrind: all
$(MAKE) check TESTS_ENVIRONMENT=" \
G_SLICE=always-malloc \
G_DEBUG=gc-friendly \
$(LIBTOOL) \
--mode=execute \
$(VALGRIND) \
--tool=memcheck \
--leak-check=full \
--leak-resolution=high \
--num-callers=20 \
--show-possibly-lost=no"
valgrind-ci: all clean-local
$(MAKE) check TESTS_ENVIRONMENT=" \
G_SLICE=always-malloc \
G_DEBUG=gc-friendly \
$(LIBTOOL) \
--mode=execute \
$(VALGRIND) \
--tool=memcheck \
--xml=yes \
--xml-file=valgrind-%p.xml \
--leak-check=full \
--leak-resolution=high \
--num-callers=20 \
--show-possibly-lost=no"
endif