GNU Linux-libre 4.19.264-gnu1
[releases.git] / tools / testing / selftests / powerpc / benchmarks / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2 TEST_GEN_PROGS := gettimeofday context_switch fork mmap_bench futex_bench null_syscall
3 TEST_GEN_FILES := exec_target
4
5 CFLAGS += -O2
6
7 top_srcdir = ../../../../..
8 include ../../lib.mk
9
10 $(TEST_GEN_PROGS): ../harness.c
11
12 $(OUTPUT)/context_switch: ../utils.c
13 $(OUTPUT)/context_switch: CFLAGS += -maltivec -mvsx -mabi=altivec
14 $(OUTPUT)/context_switch: LDLIBS += -lpthread
15
16 $(OUTPUT)/fork: LDLIBS += -lpthread
17
18 $(OUTPUT)/exec_target: CFLAGS += -static -nostartfiles