| 1 | AM_CPPFLAGS += -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_srcdir)/src |
| 2 | |
| 3 | #Add the -version-info directly here since we are only building |
| 4 | # library that use the version-info |
| 5 | AM_LDFLAGS=-version-info $(URCU_LIBRARY_VERSION) |
| 6 | if USE_CYGWIN |
| 7 | AM_LDFLAGS+=-no-undefined |
| 8 | endif |
| 9 | |
| 10 | dist_noinst_HEADERS = urcu-die.h urcu-wait.h compat-getcpu.h \ |
| 11 | compat-rand.h urcu-utils.h |
| 12 | |
| 13 | COMPAT = compat_arch.c compat_futex.c |
| 14 | |
| 15 | RCULFHASH = rculfhash.c rculfhash-mm-order.c rculfhash-mm-chunk.c \ |
| 16 | rculfhash-mm-mmap.c |
| 17 | |
| 18 | lib_LTLIBRARIES = liburcu-common.la \ |
| 19 | liburcu.la liburcu-qsbr.la \ |
| 20 | liburcu-mb.la liburcu-signal.la liburcu-bp.la \ |
| 21 | liburcu-memb.la liburcu-cds.la |
| 22 | |
| 23 | # |
| 24 | # liburcu-common contains wait-free queues (needed by call_rcu) as well |
| 25 | # as futex fallbacks. |
| 26 | # |
| 27 | liburcu_common_la_SOURCES = wfqueue.c wfcqueue.c wfstack.c $(COMPAT) |
| 28 | |
| 29 | liburcu_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT) |
| 30 | liburcu_la_CFLAGS = -DRCU_MEMBARRIER $(AM_CFLAGS) |
| 31 | liburcu_la_LIBADD = liburcu-common.la |
| 32 | |
| 33 | liburcu_memb_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT) |
| 34 | liburcu_memb_la_CFLAGS = -DRCU_MEMBARRIER $(AM_CFLAGS) |
| 35 | liburcu_memb_la_LIBADD = liburcu-common.la |
| 36 | |
| 37 | liburcu_qsbr_la_SOURCES = urcu-qsbr.c urcu-pointer.c $(COMPAT) |
| 38 | liburcu_qsbr_la_CFLAGS = -DRCU_QSBR $(AM_CFLAGS) |
| 39 | liburcu_qsbr_la_LIBADD = liburcu-common.la |
| 40 | |
| 41 | liburcu_mb_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT) |
| 42 | liburcu_mb_la_CFLAGS = -DRCU_MB $(AM_CFLAGS) |
| 43 | liburcu_mb_la_LIBADD = liburcu-common.la |
| 44 | |
| 45 | liburcu_signal_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT) |
| 46 | liburcu_signal_la_CFLAGS = -DRCU_SIGNAL $(AM_CFLAGS) |
| 47 | liburcu_signal_la_LIBADD = liburcu-common.la |
| 48 | |
| 49 | liburcu_bp_la_SOURCES = urcu-bp.c urcu-pointer.c $(COMPAT) |
| 50 | liburcu_bp_la_LIBADD = liburcu-common.la |
| 51 | |
| 52 | liburcu_cds_la_SOURCES = rculfqueue.c rculfstack.c lfstack.c \ |
| 53 | workqueue.c workqueue.h $(RCULFHASH) $(COMPAT) |
| 54 | liburcu_cds_la_LIBADD = liburcu-common.la |
| 55 | |
| 56 | pkgconfigdir = $(libdir)/pkgconfig |
| 57 | pkgconfig_DATA = liburcu-cds.pc liburcu.pc liburcu-bp.pc liburcu-qsbr.pc \ |
| 58 | liburcu-signal.pc liburcu-mb.pc |
| 59 | |
| 60 | EXTRA_DIST = \ |
| 61 | urcu-call-rcu-impl.h \ |
| 62 | urcu-defer-impl.h \ |
| 63 | rculfhash-internal.h |