Commit | Line | Data |
---|---|---|
48d848c7 PMF |
1 | INCLUDES = -I$(top_builddir)/urcu |
2 | ||
3 | AM_LDFLAGS=-lpthread | |
4 | ||
c96a3726 | 5 | SUBDIRS = . tests |
48d848c7 PMF |
6 | |
7 | include_HEADERS = urcu.h $(top_srcdir)/urcu-*.h | |
0854ccff MD |
8 | nobase_dist_include_HEADERS = urcu/compiler.h urcu/hlist.h urcu/list.h \ |
9 | urcu/rculist.h urcu/system.h urcu/urcu-futex.h | |
10 | nobase_nodist_include_HEADERS = urcu/arch.h urcu/uatomic_arch.h urcu/config.h | |
48d848c7 | 11 | |
7d413817 MD |
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 | ||
0854ccff MD |
22 | if COMPAT_FUTEX |
23 | COMPAT+=compat_futex.c | |
24 | endif | |
48d848c7 PMF |
25 | |
26 | lib_LTLIBRARIES = liburcu.la liburcu-mb.la liburcu-defer.la liburcu-qsbr.la liburcu-bp.la | |
27 | ||
7d413817 | 28 | liburcu_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT) |
48d848c7 | 29 | |
7d413817 | 30 | liburcu_mb_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT) |
02be5561 | 31 | liburcu_mb_la_CFLAGS = -DRCU_MB |
48d848c7 | 32 | |
7d413817 | 33 | liburcu_bp_la_SOURCES = urcu-bp.c urcu-pointer.c $(COMPAT) |
48d848c7 | 34 | |
7d413817 | 35 | liburcu_defer_la_SOURCES = urcu-defer.c $(COMPAT) |
48d848c7 | 36 | |
7d413817 | 37 | liburcu_qsbr_la_SOURCES = urcu-qsbr.c urcu-pointer.c $(COMPAT) |
48d848c7 | 38 | |
49617de1 | 39 | $(top_srcdir)/*.h $(top_srcdir)/*.c: urcu/arch.h urcu/uatomic_arch.h |
48d848c7 PMF |
40 | |
41 | urcu/arch.h: $(top_srcdir)/urcu/arch_@ARCHTYPE@.h | |
e4c9e00c | 42 | $(mkdir_p) $(top_builddir)/urcu |
48d848c7 PMF |
43 | cp -f $(top_srcdir)/urcu/arch_@ARCHTYPE@.h $(top_builddir)/urcu/arch.h |
44 | ||
45 | urcu/uatomic_arch.h: $(top_srcdir)/urcu/uatomic_arch_@ARCHTYPE@.h | |
e4c9e00c | 46 | $(mkdir_p) $(top_builddir)/urcu |
48d848c7 PMF |
47 | cp -f $(top_srcdir)/urcu/uatomic_arch_@ARCHTYPE@.h $(top_builddir)/urcu/uatomic_arch.h |
48 | ||
49 | clean-local: | |
50 | rm -f urcu/arch.h urcu/uatomic_arch.h |