-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
54 lines (40 loc) · 1.06 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
#
# faultinject
#
AM_CPPFLAGS = -I.
ACLOCAL_AMFLAGS = -Im4
bin_PROGRAMS =
check_PROGRAMS =
noinst_PROGRAMS =
lib_LTLIBRARIES =
noinst_LTLIBRARIES =
nobase_include_HEADERS =
noinst_HEADERS =
CLEANFILES = $(bin_SCRIPTS) $(libexec_SCRIPTS)
DISTCLEANFILES = config/top.h
EXTRA_DIST = \
docs/index.html
bin_SCRIPTS = faultinject
libexec_SCRIPTS = faultinject.sh
do_subst = @SED@ \
-e 's!@''libdir''@!$(libdir)!g' \
-e 's!@''libexecdir''@!$(libexecdir)!g'
faultinject: faultinject.in Makefile
$(do_subst) $(srcdir)/faultinject.in > $@
chmod +x faultinject
faultinject.sh: faultinject.sh.in Makefile
$(do_subst) $(srcdir)/faultinject.sh.in > $@
lib_LTLIBRARIES += libfaultinject.la
libfaultinject_la_SOURCES = \
src/faultinject.c
libfaultinject_la_CFLAGS = \
$(AM_CFLAGS) \
$(NO_WERROR) \
-DBUILDING_FAULTINJECT
libfaultinject_la_LIBADD = $(LIBDL_LIBS) -lpthread -lunwind
libfaultinject_la_LDFLAGS = $(AM_LDFLAGS) -avoid-version
check_PROGRAMS += \
test/basic
AUTOMAKE_OPTIONS = parallel-tests
TESTS = $(check_PROGRAMS)
LOG_COMPILER = ${top_srcdir}/test_run.sh