move config.h to urcu/config.h and install it
[urcu.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2 INCLUDES = -I$(top_builddir)/urcu
3
4 AM_LDFLAGS=-lpthread
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/system.h urcu/urcu-futex.h
11 nobase_nodist_include_HEADERS = urcu/arch.h urcu/uatomic_arch.h urcu/config.h
12
13 EXTRA_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
17 if COMPAT_ARCH
18 COMPAT=compat_arch_@ARCHTYPE@.c
19 else
20 COMPAT=
21 endif
22
23 if COMPAT_FUTEX
24 COMPAT+=compat_futex.c
25 endif
26
27 lib_LTLIBRARIES = liburcu.la liburcu-mb.la liburcu-defer.la liburcu-qsbr.la liburcu-bp.la
28
29 liburcu_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT)
30
31 liburcu_mb_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT)
32 liburcu_mb_la_CFLAGS = -DURCU_MB
33
34 liburcu_bp_la_SOURCES = urcu-bp.c urcu-pointer.c $(COMPAT)
35
36 liburcu_defer_la_SOURCES = urcu-defer.c $(COMPAT)
37
38 liburcu_qsbr_la_SOURCES = urcu-qsbr.c urcu-pointer.c $(COMPAT)
39
40 *.h *.c: urcu/arch.h urcu/uatomic_arch.h
41
42 urcu/arch.h: $(top_srcdir)/urcu/arch_@ARCHTYPE@.h
43 $(MKDIR_P) $(top_builddir)/urcu
44 cp -f $(top_srcdir)/urcu/arch_@ARCHTYPE@.h $(top_builddir)/urcu/arch.h
45
46 urcu/uatomic_arch.h: $(top_srcdir)/urcu/uatomic_arch_@ARCHTYPE@.h
47 $(MKDIR_P) $(top_builddir)/urcu
48 cp -f $(top_srcdir)/urcu/uatomic_arch_@ARCHTYPE@.h $(top_builddir)/urcu/uatomic_arch.h
49
50 clean-local:
51 rm -f urcu/arch.h urcu/uatomic_arch.h
This page took 0.047451 seconds and 5 git commands to generate.