blob: ed1df724a1622b7d066b8380e430f4cd5498f566 (
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
|
AUTOMAKE_OPTIONS = subdir-objects
AM_CFLAGS = \
-pedantic \
-std=gnu99 \
-Wall -Wunused \
-fstack-protector \
-Wformat
bin_PROGRAMS = procenv
procenv_SOURCES = \
procenv.c procenv.h \
pr_list.c pr_list.h
procenv_LDADD = -lrt
procenv_CPPFLAGS =
if HAVE_SELINUX
procenv_CPPFLAGS += -DHAVE_SELINUX
endif
if HAVE_APPARMOR
procenv_CPPFLAGS += -DHAVE_APPARMOR
endif
if ENABLE_TESTS
TESTS =
CLEANFILES =
check_all_args: tests/check_all_args.in
sed -e 's|[@]builddir[@]|$(top_builddir)/$(subdir)|g' \
-e 's|[@]man_path[@]|$(top_srcdir)/man/procenv.1|g' \
-e 's|[@]package_url[@]|$(PACKAGE_URL)|g' \
$< > $@
chmod +x $@
if HAVE_CHECK
TESTS += check_pr_list
check_PROGRAMS = check_pr_list
check_pr_list_SOURCES = tests/check_pr_list.c
check_pr_list_CFLAGS = @CHECK_CFLAGS@ -I$(top_srcdir)/src
check_pr_list_LDADD = @CHECK_LIBS@ pr_list.o
endif
# Run built binary to ensure we can display all values
TESTS += procenv
TESTS += check_all_args
CLEANFILES += check_all_args
endif
EXTRA_DIST = \
tests/show_compiler_details \
tests/check_all_args.in \
tests/check_pr_list.c
|