1# SPDX-License-Identifier: GPL-2.0 2TEST_GEN_PROGS := gettimeofday context_switch fork mmap_bench futex_bench null_syscall 3TEST_GEN_FILES := exec_target 4 5TEST_FILES := settings 6 7top_srcdir = ../../../../.. 8include ../../lib.mk 9include ../flags.mk 10 11CFLAGS += -O2 12 13$(TEST_GEN_PROGS): ../harness.c 14 15$(OUTPUT)/context_switch: ../utils.c 16$(OUTPUT)/context_switch: CFLAGS += -maltivec -mvsx -mabi=altivec 17$(OUTPUT)/context_switch: LDLIBS += -lpthread 18 19$(OUTPUT)/fork: LDLIBS += -lpthread 20 21$(OUTPUT)/exec_target: CFLAGS += -nostartfiles 22