| 1 | AM_CFLAGS += -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests/utils -I$(top_srcdir)/tests/common -g |
| 2 | |
| 3 | SCRIPT_LIST = test_loop run.sh unit_tests |
| 4 | |
| 5 | noinst_PROGRAMS = test_uatomic \ |
| 6 | test_urcu_multiflavor \ |
| 7 | test_urcu_multiflavor_dynlink |
| 8 | |
| 9 | dist_noinst_SCRIPTS = $(SCRIPT_LIST) |
| 10 | |
| 11 | noinst_HEADERS = test_urcu_multiflavor.h |
| 12 | |
| 13 | URCU_COMMON_LIB=$(top_builddir)/src/liburcu-common.la |
| 14 | URCU_LIB=$(top_builddir)/src/liburcu.la |
| 15 | URCU_QSBR_LIB=$(top_builddir)/src/liburcu-qsbr.la |
| 16 | URCU_MB_LIB=$(top_builddir)/src/liburcu-mb.la |
| 17 | URCU_SIGNAL_LIB=$(top_builddir)/src/liburcu-signal.la |
| 18 | URCU_BP_LIB=$(top_builddir)/src/liburcu-bp.la |
| 19 | URCU_CDS_LIB=$(top_builddir)/src/liburcu-cds.la |
| 20 | TAP_LIB=$(top_builddir)/tests/utils/libtap.a |
| 21 | |
| 22 | test_uatomic_SOURCES = test_uatomic.c |
| 23 | test_uatomic_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB) |
| 24 | |
| 25 | test_urcu_multiflavor_SOURCES = test_urcu_multiflavor.c \ |
| 26 | test_urcu_multiflavor-memb.c \ |
| 27 | test_urcu_multiflavor-mb.c \ |
| 28 | test_urcu_multiflavor-signal.c \ |
| 29 | test_urcu_multiflavor-qsbr.c \ |
| 30 | test_urcu_multiflavor-bp.c |
| 31 | test_urcu_multiflavor_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ |
| 32 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) |
| 33 | |
| 34 | test_urcu_multiflavor_dynlink_SOURCES = test_urcu_multiflavor.c \ |
| 35 | test_urcu_multiflavor-memb.c \ |
| 36 | test_urcu_multiflavor-mb.c \ |
| 37 | test_urcu_multiflavor-signal.c \ |
| 38 | test_urcu_multiflavor-qsbr.c \ |
| 39 | test_urcu_multiflavor-bp.c |
| 40 | test_urcu_multiflavor_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) |
| 41 | test_urcu_multiflavor_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ |
| 42 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) |
| 43 | |
| 44 | all-local: |
| 45 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ |
| 46 | for script in $(SCRIPT_LIST); do \ |
| 47 | cp -f $(srcdir)/$$script $(builddir); \ |
| 48 | done; \ |
| 49 | fi |
| 50 | |
| 51 | clean-local: |
| 52 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ |
| 53 | for script in $(SCRIPT_LIST); do \ |
| 54 | rm -f $(builddir)/$$script; \ |
| 55 | done; \ |
| 56 | fi |
| 57 | |
| 58 | check-am: |
| 59 | ./run.sh unit_tests |