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