diff options
author | John Kacur <jkacur@redhat.com> | 2010-01-20 14:37:08 +0100 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2010-01-26 12:13:47 -0600 |
commit | 9f4edeb6019c126f31a9081f1f9a13212984058c (patch) | |
tree | 962caadbbf59c0d521395c2346e4ec72e3fb8f61 | |
parent | db0988a070308ac7413c3d464bae4197270d885e (diff) | |
download | rt-tests-9f4edeb6019c126f31a9081f1f9a13212984058c.tar.gz |
rt-tests: Makefile: Add NUMA compile option.
This adds a NUMA compile option, and links to numa only for the tests that
need it. (Currently that is only cyclictest)
If you want to build with the NUMA feature, then define NUMA to anything.
Eg., make NUMA=1
This only adds support to the Makefile. Further patches are required
to make this work in cyclictest itself.
Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -3,7 +3,7 @@ VERSION_STRING = 0.61 TARGETS = cyclictest signaltest pi_stress \ hwlatdetect rt-migrate-test ptsematest sigwaittest svsematest \ sendme pip -LIBS = -lpthread -lrt -lnuma +LIBS = -lpthread -lrt EXTRA_LIBS ?= -ldl # for get_cpu DESTDIR ?= prefix ?= /usr/local @@ -19,6 +19,11 @@ else CFLAGS += -O0 -g endif +ifdef NUMA + CFLAGS += -DNUMA + NUMA_LIBS = -lnuma +endif + VPATH = src/cyclictest: VPATH += src/signaltest: VPATH += src/pi_tests: @@ -36,7 +41,7 @@ VPATH += src/lib all: $(TARGETS) cyclictest: cyclictest.o rt-utils.o - $(CC) $(CFLAGS) -o $@ $^ $(LIBS) + $(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(NUMA_LIBS) signaltest: signaltest.o rt-utils.o $(CC) $(CFLAGS) -o $@ $^ $(LIBS) |