X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=Makefile.am;h=613e1cd58c0e13b44e003075984059c00dd65642;hp=b2f279f2bda1214c5c0f5c39dc7845f9e688be72;hb=HEAD;hpb=02be55611d3b1c7bf4fdfcb3a9c98f621882d417 diff --git a/Makefile.am b/Makefile.am index b2f279f..539a2ca 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,50 +1,37 @@ -INCLUDES = -I$(top_builddir)/urcu - -AM_LDFLAGS=-lpthread - -SUBDIRS = . tests - -include_HEADERS = urcu.h $(top_srcdir)/urcu-*.h -nobase_dist_include_HEADERS = urcu/compiler.h urcu/hlist.h urcu/list.h \ - urcu/rculist.h urcu/system.h urcu/urcu-futex.h -nobase_nodist_include_HEADERS = urcu/arch.h urcu/uatomic_arch.h urcu/config.h - -EXTRA_DIST = $(top_srcdir)/urcu/arch_*.h $(top_srcdir)/urcu/uatomic_arch_*.h \ - gpl-2.0.txt lgpl-2.1.txt lgpl-relicensing.txt \ - README LICENSE compat_arch_x86.c - -if COMPAT_ARCH -COMPAT=compat_arch_@ARCHTYPE@.c -else -COMPAT= -endif - -if COMPAT_FUTEX -COMPAT+=compat_futex.c -endif - -lib_LTLIBRARIES = liburcu.la liburcu-mb.la liburcu-defer.la liburcu-qsbr.la liburcu-bp.la - -liburcu_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT) - -liburcu_mb_la_SOURCES = urcu.c urcu-pointer.c $(COMPAT) -liburcu_mb_la_CFLAGS = -DRCU_MB - -liburcu_bp_la_SOURCES = urcu-bp.c urcu-pointer.c $(COMPAT) - -liburcu_defer_la_SOURCES = urcu-defer.c $(COMPAT) - -liburcu_qsbr_la_SOURCES = urcu-qsbr.c urcu-pointer.c $(COMPAT) - -$(top_srcdir)/*.h $(top_srcdir)/*.c: urcu/arch.h urcu/uatomic_arch.h - -urcu/arch.h: $(top_srcdir)/urcu/arch_@ARCHTYPE@.h - $(mkdir_p) $(top_builddir)/urcu - cp -f $(top_srcdir)/urcu/arch_@ARCHTYPE@.h $(top_builddir)/urcu/arch.h - -urcu/uatomic_arch.h: $(top_srcdir)/urcu/uatomic_arch_@ARCHTYPE@.h - $(mkdir_p) $(top_builddir)/urcu - cp -f $(top_srcdir)/urcu/uatomic_arch_@ARCHTYPE@.h $(top_builddir)/urcu/uatomic_arch.h - -clean-local: - rm -f urcu/arch.h urcu/uatomic_arch.h +# SPDX-FileCopyrightText: 2023 EfficiOS Inc. +# +# SPDX-License-Identifier: MIT + +ACLOCAL_AMFLAGS=-I m4 + +SUBDIRS = include src doc tests extras + +dist_doc_DATA = \ + LICENSE.md \ + README.md + +EXTRA_DIST = \ + CodingStyle.md \ + lgpl-relicensing.md \ + LICENSES/Autoconf-exception-2.0.txt \ + LICENSES/BSD-2-Clause.txt \ + LICENSES/CC0-1.0.txt \ + LICENSES/CC-BY-4.0.txt \ + LICENSES/FSFAP.txt \ + LICENSES/GPL-2.0-only.txt \ + LICENSES/GPL-2.0-or-later.txt \ + LICENSES/LGPL-2.1-only.txt \ + LICENSES/LGPL-2.1-or-later.txt \ + LICENSES/LicenseRef-Autoconf-exception-macro.txt \ + LICENSES/LicenseRef-Boehm-GC.txt \ + LICENSES/MIT.txt + +.PHONY: short_bench long_bench regtest check-loop +short_bench: + cd tests && $(MAKE) $(AM_MAKEFLAGS) short_bench +long_bench: + cd tests && $(MAKE) $(AM_MAKEFLAGS) long_bench +regtest: + cd tests && $(MAKE) $(AM_MAKEFLAGS) regtest +check-loop: + cd tests && $(MAKE) $(AM_MAKEFLAGS) check-loop