| 1 | INCLUDES = -I$(top_builddir)/urcu |
| 2 | |
| 3 | AM_LDFLAGS=-lpthread |
| 4 | AM_CFLAGS=-Wall |
| 5 | |
| 6 | SUBDIRS = . tests |
| 7 | |
| 8 | include_HEADERS = urcu.h $(top_srcdir)/urcu-*.h |
| 9 | nobase_dist_include_HEADERS = urcu/compiler.h urcu/hlist.h urcu/list.h \ |
| 10 | urcu/rculist.h urcu/rcuhlist.h urcu/system.h urcu/futex.h \ |
| 11 | urcu/uatomic/generic.h urcu/arch/generic.h urcu/wfstack.h \ |
| 12 | urcu/wfqueue.h urcu/rculfstack.h urcu/rculfqueue.h \ |
| 13 | urcu/ref.h urcu/map/*.h urcu/static/*.h |
| 14 | nobase_nodist_include_HEADERS = urcu/arch.h urcu/uatomic.h urcu/config.h |
| 15 | |
| 16 | EXTRA_DIST = $(top_srcdir)/urcu/arch/*.h $(top_srcdir)/urcu/uatomic/*.h \ |
| 17 | gpl-2.0.txt lgpl-2.1.txt lgpl-relicensing.txt \ |
| 18 | README LICENSE compat_arch_x86.c |
| 19 | |
| 20 | if COMPAT_ARCH |
| 21 | COMPAT=compat_arch_@ARCHTYPE@.c |
| 22 | else |
| 23 | COMPAT= |
| 24 | endif |
| 25 | |
| 26 | if COMPAT_FUTEX |
| 27 | COMPAT+=compat_futex.c |
| 28 | endif |
| 29 | |
| 30 | lib_LTLIBRARIES = liburcu-cds.la liburcu.la liburcu-qsbr.la \ |
| 31 | liburcu-mb.la liburcu-signal.la liburcu-bp.la |
| 32 | |
| 33 | liburcu_cds_la_SOURCES = wfqueue.c wfstack.c rculfqueue.c rculfstack.c \ |
| 34 | $(COMPAT) |
| 35 | liburcu_cds_la_LDFLAGS = -version-info $(URCU_LIBRARY_VERSION) |
| 36 | |
| 37 | liburcu_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT) |
| 38 | liburcu_la_LIBADD = -lurcu-cds |
| 39 | liburcu_la_DEPENDENCIES = liburcu-cds.la |
| 40 | liburcu_la_LDFLAGS = -version-info $(URCU_LIBRARY_VERSION) |
| 41 | |
| 42 | liburcu_qsbr_la_SOURCES = urcu-qsbr.c urcu-pointer.c $(COMPAT) |
| 43 | liburcu_qsbr_la_LIBADD = -lurcu-cds |
| 44 | liburcu_qsbr_la_DEPENDENCIES = liburcu-cds.la |
| 45 | liburcu_qsbr_la_LDFLAGS = -version-info $(URCU_LIBRARY_VERSION) |
| 46 | |
| 47 | liburcu_mb_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT) |
| 48 | liburcu_mb_la_CFLAGS = -DRCU_MB |
| 49 | liburcu_mb_la_LIBADD = -lurcu-cds |
| 50 | liburcu_mb_la_DEPENDENCIES = liburcu-cds.la |
| 51 | liburcu_mb_la_LDFLAGS = -version-info $(URCU_LIBRARY_VERSION) |
| 52 | |
| 53 | liburcu_signal_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT) |
| 54 | liburcu_signal_la_CFLAGS = -DRCU_SIGNAL |
| 55 | liburcu_signal_la_LIBADD = -lurcu-cds |
| 56 | liburcu_signal_la_DEPENDENCIES = liburcu-cds.la |
| 57 | liburcu_signal_la_LDFLAGS = -version-info $(URCU_LIBRARY_VERSION) |
| 58 | |
| 59 | liburcu_bp_la_SOURCES = urcu-bp.c urcu-pointer.c $(COMPAT) |
| 60 | liburcu_bp_la_LIBADD = -lurcu-cds |
| 61 | liburcu_bp_la_DEPENDENCIES = liburcu-cds.la |
| 62 | liburcu_bp_la_LDFLAGS = -version-info $(URCU_LIBRARY_VERSION) |
| 63 | |
| 64 | pkgconfigdir = $(libdir)/pkgconfig |
| 65 | pkgconfig_DATA = liburcu.pc liburcu-bp.pc liburcu-qsbr.pc \ |
| 66 | liburcu-signal.pc liburcu-mb.pc |