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 5CFLAGS += -O2 6 7top_srcdir = ../../../../.. 8include ../../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 19