summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>2014-11-10 10:16:54 +0300
committerClark Williams <clark.williams@gmail.com>2015-01-15 16:31:20 -0600
commitc68419b628105054dbaf2cca90688ed086d0a265 (patch)
tree6bab1b30715713026169f3b83853ca0150785e13
parentdeb1e1eecc64dfc27267cf6d9f71f87b4eccc7c5 (diff)
downloadrt-tests-c68419b628105054dbaf2cca90688ed086d0a265.tar.gz
Makefile: allow building selected tests with non-NPTL toolchain
Some architectures are still stuck with non-NPTL toolchains. These are for example ARC, Blackfin, Xtensa etc. Still rt-tests are very good benchmarks and it would be good to enable use of at least selected (those that will be built) tests on those architectures. This change makes it possible to only build subset of tests that don't require NPTL calls. By default behavior is not modified - all tests are built, but if one wants to build with non-NPTL toolchain just add "HAVE_NPTL=no" in command line or modify "HAVE_NPTL" variable right in Makefile and execute "make". Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Vineet Gupta <vgupta@synopsys.com> Cc: Clark Williams <clark.williams@gmail.com>
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 87e2326..6a17ae7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,13 @@
VERSION_STRING = 0.89
-sources = cyclictest.c signaltest.c pi_stress.c rt-migrate-test.c \
- ptsematest.c sigwaittest.c svsematest.c pmqtest.c sendme.c \
- pip_stress.c hackbench.c
+HAVE_NPTL ?= yes
+
+ifeq ($(HAVE_NPTL),yes)
+sources = cyclictest.c pi_stress.c pip_stress.c pmqtest.c rt-migrate-test.c
+endif
+
+sources += signaltest.c ptsematest.c sigwaittest.c svsematest.c sendme.c \
+ hackbench.c
TARGETS = $(sources:.c=)