Add library version information
[urcu.git] / Makefile.am
CommitLineData
48d848c7
PMF
1INCLUDES = -I$(top_builddir)/urcu
2
3AM_LDFLAGS=-lpthread
b57aee66 4AM_CFLAGS=-Wall
48d848c7 5
c96a3726 6SUBDIRS = . tests
48d848c7
PMF
7
8include_HEADERS = urcu.h $(top_srcdir)/urcu-*.h
0854ccff 9nobase_dist_include_HEADERS = urcu/compiler.h urcu/hlist.h urcu/list.h \
8760d94e 10 urcu/rculist.h urcu/rcuhlist.h urcu/system.h urcu/urcu-futex.h \
cb3f3d6b 11 urcu/uatomic_generic.h urcu/arch_generic.h urcu/wfstack.h \
3d02c34d
MD
12 urcu/wfqueue.h urcu/rculfstack.h urcu/rculfqueue.h \
13 urcu/wfqueue-static.h urcu/wfstack-static.h \
04e3eaa9
MD
14 urcu/rculfqueue-static.h urcu/rculfstack-static.h \
15 urcu/urcu_ref.h
0854ccff 16nobase_nodist_include_HEADERS = urcu/arch.h urcu/uatomic_arch.h urcu/config.h
48d848c7 17
7d413817
MD
18EXTRA_DIST = $(top_srcdir)/urcu/arch_*.h $(top_srcdir)/urcu/uatomic_arch_*.h \
19 gpl-2.0.txt lgpl-2.1.txt lgpl-relicensing.txt \
20 README LICENSE compat_arch_x86.c
21
22if COMPAT_ARCH
23COMPAT=compat_arch_@ARCHTYPE@.c
24else
25COMPAT=
26endif
27
0854ccff
MD
28if COMPAT_FUTEX
29COMPAT+=compat_futex.c
30endif
48d848c7 31
f48d0855
MD
32lib_LTLIBRARIES = liburcu-cds.la liburcu.la liburcu-qsbr.la \
33 liburcu-mb.la liburcu-signal.la liburcu-bp.la
34
35liburcu_cds_la_SOURCES = wfqueue.c wfstack.c rculfqueue.c rculfstack.c \
36 $(COMPAT)
98bc124a 37liburcu_cds_la_LDFLAGS = -version-info $(URCU_LIBRARY_VERSION)
48d848c7 38
7d413817 39liburcu_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT)
f48d0855
MD
40liburcu_la_LIBADD = -lurcu-cds
41liburcu_la_DEPENDENCIES = liburcu-cds.la
98bc124a 42liburcu_la_LDFLAGS = -version-info $(URCU_LIBRARY_VERSION)
48d848c7 43
fdf01eed 44liburcu_qsbr_la_SOURCES = urcu-qsbr.c urcu-pointer.c $(COMPAT)
f48d0855
MD
45liburcu_qsbr_la_LIBADD = -lurcu-cds
46liburcu_qsbr_la_DEPENDENCIES = liburcu-cds.la
98bc124a 47liburcu_qsbr_la_LDFLAGS = -version-info $(URCU_LIBRARY_VERSION)
fdf01eed 48
7d413817 49liburcu_mb_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT)
4a620853 50liburcu_mb_la_CFLAGS = -DRCU_MB
f48d0855
MD
51liburcu_mb_la_LIBADD = -lurcu-cds
52liburcu_mb_la_DEPENDENCIES = liburcu-cds.la
98bc124a 53liburcu_mb_la_LDFLAGS = -version-info $(URCU_LIBRARY_VERSION)
48d848c7 54
fdf01eed 55liburcu_signal_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT)
4a620853 56liburcu_signal_la_CFLAGS = -DRCU_SIGNAL
f48d0855
MD
57liburcu_signal_la_LIBADD = -lurcu-cds
58liburcu_signal_la_DEPENDENCIES = liburcu-cds.la
98bc124a 59liburcu_signal_la_LDFLAGS = -version-info $(URCU_LIBRARY_VERSION)
fdf01eed 60
7d413817 61liburcu_bp_la_SOURCES = urcu-bp.c urcu-pointer.c $(COMPAT)
f48d0855
MD
62liburcu_bp_la_LIBADD = -lurcu-cds
63liburcu_bp_la_DEPENDENCIES = liburcu-cds.la
98bc124a 64liburcu_bp_la_LDFLAGS = -version-info $(URCU_LIBRARY_VERSION)
2260a36c
YB
65
66pkgconfigdir = $(libdir)/pkgconfig
f7a3d9d9
YB
67pkgconfig_DATA = liburcu.pc liburcu-bp.pc liburcu-qsbr.pc \
68 liburcu-signal.pc liburcu-mb.pc
This page took 0.035688 seconds and 4 git commands to generate.