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 7include ../../lib.mk 8 9$(TEST_GEN_PROGS): ../harness.c 10 11$(OUTPUT)/context_switch: ../utils.c 12$(OUTPUT)/context_switch: CFLAGS += -maltivec -mvsx -mabi=altivec 13$(OUTPUT)/context_switch: LDLIBS += -lpthread 14 15$(OUTPUT)/fork: LDLIBS += -lpthread 16 17$(OUTPUT)/exec_target: CFLAGS += -static -nostartfiles 18