| 1 |
# Linking tests with sources from other directories creates a problem for |
| 2 |
# make distclean, which recursively removes dependencies. When it tries to |
| 3 |
# remove a dependency that was already removed as part of cleaning up |
| 4 |
# other directory, it fails. Disabling dependency for tests only is a |
| 5 |
# fine workaround. |
| 6 |
AUTOMAKE_OPTIONS = no-dependencies |
| 7 |
|
| 8 |
AM_CFLAGS = \ |
| 9 |
-I$(top_srcdir)/include \ |
| 10 |
-I$(top_srcdir)/src \ |
| 11 |
$(NULL) |
| 12 |
|
| 13 |
noinst_HEADERS = \ |
| 14 |
test_common.h \ |
| 15 |
$(NULL) |
| 16 |
|
| 17 |
TESTS = \ |
| 18 |
test_util_string_array \ |
| 19 |
test_util_evaluator \ |
| 20 |
test_util_template \ |
| 21 |
$(NULL) |
| 22 |
|
| 23 |
check_PROGRAMS = $(TESTS) |
| 24 |
|
| 25 |
test_util_string_array_SOURCES = \ |
| 26 |
test_util_string_array.c \ |
| 27 |
../lib/util/string_array.c \ |
| 28 |
../lib/util/string.c \ |
| 29 |
$(NULL) |
| 30 |
test_util_string_array_CFLAGS = \ |
| 31 |
$(AM_CFLAGS) |
| 32 |
test_util_string_array_LDADD = \ |
| 33 |
$(CMOCKA_LIBS) \ |
| 34 |
$(top_builddir)/src/common/libcommon.la \ |
| 35 |
$(NULL) |
| 36 |
|
| 37 |
test_util_template_SOURCES = \ |
| 38 |
test_util_template.c \ |
| 39 |
../lib/util/file.c \ |
| 40 |
../lib/util/selinux.c \ |
| 41 |
../lib/util/string.c \ |
| 42 |
../lib/util/string_array.c \ |
| 43 |
../lib/util/template.c \ |
| 44 |
../lib/util/evaluator.c \ |
| 45 |
../lib/util/textfile.c \ |
| 46 |
$(NULL) |
| 47 |
test_util_template_CFLAGS = \ |
| 48 |
$(AM_CFLAGS) |
| 49 |
test_util_template_LDADD = \ |
| 50 |
$(CMOCKA_LIBS) \ |
| 51 |
$(SELINUX_LIBS) \ |
| 52 |
$(top_builddir)/src/common/libcommon.la \ |
| 53 |
$(NULL) |
| 54 |
|
| 55 |
test_util_evaluator_SOURCES = \ |
| 56 |
test_util_evaluator.c \ |
| 57 |
../lib/util/string_array.c \ |
| 58 |
../lib/util/string.c \ |
| 59 |
$(NULL) |
| 60 |
test_util_evaluator_CFLAGS = \ |
| 61 |
$(AM_CFLAGS) |
| 62 |
test_util_evaluator_LDADD = \ |
| 63 |
$(CMOCKA_LIBS) \ |
| 64 |
$(top_builddir)/src/common/libcommon.la \ |
| 65 |
$(NULL) |