Consolidate _LIBADD and _DEPENDENCIES in Makefile.am
[urcu.git] / Makefile.am
CommitLineData
48d848c7
PMF
1INCLUDES = -I$(top_builddir)/urcu
2
61e0e506
YB
3#Add the -version-info directly here since we are only building
4# library that use the version-info
5AM_LDFLAGS=-lpthread -version-info $(URCU_LIBRARY_VERSION)
b57aee66 6AM_CFLAGS=-Wall
48d848c7 7
c96a3726 8SUBDIRS = . tests
48d848c7 9
ee6fabe1
MD
10include_HEADERS = urcu.h urcu-bp.h urcu-call-rcu.h urcu-defer.h \
11 urcu-pointer.h urcu-qsbr.h
0854ccff 12nobase_dist_include_HEADERS = urcu/compiler.h urcu/hlist.h urcu/list.h \
41849996 13 urcu/rculist.h urcu/rcuhlist.h urcu/system.h urcu/futex.h \
a2e7bf9c 14 urcu/uatomic/generic.h urcu/arch/generic.h urcu/wfstack.h \
3d02c34d 15 urcu/wfqueue.h urcu/rculfstack.h urcu/rculfqueue.h \
e5a7d709 16 urcu/ref.h urcu/map/*.h urcu/static/*.h urcu/cds.h
a2e7bf9c 17nobase_nodist_include_HEADERS = urcu/arch.h urcu/uatomic.h urcu/config.h
48d848c7 18
a2e7bf9c 19EXTRA_DIST = $(top_srcdir)/urcu/arch/*.h $(top_srcdir)/urcu/uatomic/*.h \
7d413817
MD
20 gpl-2.0.txt lgpl-2.1.txt lgpl-relicensing.txt \
21 README LICENSE compat_arch_x86.c
22
23if COMPAT_ARCH
24COMPAT=compat_arch_@ARCHTYPE@.c
25else
26COMPAT=
27endif
28
0854ccff
MD
29if COMPAT_FUTEX
30COMPAT+=compat_futex.c
31endif
48d848c7 32
f48d0855
MD
33lib_LTLIBRARIES = liburcu-cds.la liburcu.la liburcu-qsbr.la \
34 liburcu-mb.la liburcu-signal.la liburcu-bp.la
35
36liburcu_cds_la_SOURCES = wfqueue.c wfstack.c rculfqueue.c rculfstack.c \
37 $(COMPAT)
48d848c7 38
7d413817 39liburcu_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT)
d73a36e8 40liburcu_la_LIBADD = liburcu-cds.la
48d848c7 41
fdf01eed 42liburcu_qsbr_la_SOURCES = urcu-qsbr.c urcu-pointer.c $(COMPAT)
d73a36e8 43liburcu_qsbr_la_LIBADD = liburcu-cds.la
fdf01eed 44
7d413817 45liburcu_mb_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT)
4a620853 46liburcu_mb_la_CFLAGS = -DRCU_MB
d73a36e8 47liburcu_mb_la_LIBADD = liburcu-cds.la
48d848c7 48
fdf01eed 49liburcu_signal_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT)
4a620853 50liburcu_signal_la_CFLAGS = -DRCU_SIGNAL
d73a36e8 51liburcu_signal_la_LIBADD = liburcu-cds.la
fdf01eed 52
7d413817 53liburcu_bp_la_SOURCES = urcu-bp.c urcu-pointer.c $(COMPAT)
d73a36e8 54liburcu_bp_la_LIBADD = liburcu-cds.la
2260a36c
YB
55
56pkgconfigdir = $(libdir)/pkgconfig
f7a3d9d9
YB
57pkgconfig_DATA = liburcu.pc liburcu-bp.pc liburcu-qsbr.pc \
58 liburcu-signal.pc liburcu-mb.pc
This page took 0.035557 seconds and 4 git commands to generate.