summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/membarrier/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/membarrier/Makefile')
-rw-r--r--tools/testing/selftests/membarrier/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/testing/selftests/membarrier/Makefile b/tools/testing/selftests/membarrier/Makefile
index 877a50355d7f..a1a97085847d 100644
--- a/tools/testing/selftests/membarrier/Makefile
+++ b/tools/testing/selftests/membarrier/Makefile
@@ -1,11 +1,10 @@
CFLAGS += -g -I../../../../usr/include/
-all:
- $(CC) $(CFLAGS) membarrier_test.c -o membarrier_test
-
TEST_PROGS := membarrier_test
+all: $(TEST_PROGS)
+
include ../lib.mk
clean:
- $(RM) membarrier_test
+ $(RM) $(TEST_PROGS)