RCU list: add rcuhlist.h, add list_replace_rcu
[urcu.git] / Makefile.am
1 INCLUDES = -I$(top_builddir)/urcu
2
3 AM_LDFLAGS=-lpthread
4
5 SUBDIRS = . tests
6
7 include_HEADERS = urcu.h $(top_srcdir)/urcu-*.h
8 nobase_dist_include_HEADERS = urcu/compiler.h urcu/hlist.h urcu/list.h \
9 urcu/rculist.h urcu/rcuhlist.h urcu/system.h urcu/urcu-futex.h
10 nobase_nodist_include_HEADERS = urcu/arch.h urcu/uatomic_arch.h urcu/config.h
11
12 EXTRA_DIST = $(top_srcdir)/urcu/arch_*.h $(top_srcdir)/urcu/uatomic_arch_*.h \
13 gpl-2.0.txt lgpl-2.1.txt lgpl-relicensing.txt \
14 README LICENSE compat_arch_x86.c
15
16 if COMPAT_ARCH
17 COMPAT=compat_arch_@ARCHTYPE@.c
18 else
19 COMPAT=
20 endif
21
22 if COMPAT_FUTEX
23 COMPAT+=compat_futex.c
24 endif
25
26 lib_LTLIBRARIES = liburcu.la liburcu-qsbr.la liburcu-mb.la liburcu-signal.la liburcu-bp.la liburcu-defer.la
27
28 liburcu_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT)
29
30 liburcu_qsbr_la_SOURCES = urcu-qsbr.c urcu-pointer.c $(COMPAT)
31
32 liburcu_mb_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT)
33 liburcu_mb_la_CFLAGS = -DRCU_MB
34
35 liburcu_signal_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT)
36 liburcu_signal_la_CFLAGS = -DRCU_SIGNAL
37
38 liburcu_bp_la_SOURCES = urcu-bp.c urcu-pointer.c $(COMPAT)
39
40 liburcu_defer_la_SOURCES = urcu-defer.c $(COMPAT)
41
42 $(top_srcdir)/*.h $(top_srcdir)/*.c: urcu/arch.h urcu/uatomic_arch.h
43
44 urcu/arch.h: $(top_srcdir)/urcu/arch_@ARCHTYPE@.h
45 $(mkdir_p) $(top_builddir)/urcu
46 cp -f $(top_srcdir)/urcu/arch_@ARCHTYPE@.h $(top_builddir)/urcu/arch.h
47
48 urcu/uatomic_arch.h: $(top_srcdir)/urcu/uatomic_arch_@ARCHTYPE@.h
49 $(mkdir_p) $(top_builddir)/urcu
50 cp -f $(top_srcdir)/urcu/uatomic_arch_@ARCHTYPE@.h $(top_builddir)/urcu/uatomic_arch.h
51
52 clean-local:
53 rm -f urcu/arch.h urcu/uatomic_arch.h
This page took 0.043393 seconds and 5 git commands to generate.