1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 2dd40c5b4SNicholas PigginTEST_GEN_PROGS := gettimeofday context_switch fork mmap_bench futex_bench null_syscall 3dd40c5b4SNicholas PigginTEST_GEN_FILES := exec_target 4d17475d9SMichael Neuling 5d17475d9SMichael NeulingCFLAGS += -O2 6d17475d9SMichael Neuling 7*7e0cf1c9SMichael Ellermantop_srcdir = ../../../../.. 888baa78dSbamvor.zhangjian@huawei.cominclude ../../lib.mk 9d17475d9SMichael Neuling 1068bd42d9SMichael Ellerman$(TEST_GEN_PROGS): ../harness.c 1168bd42d9SMichael Ellerman 12a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/context_switch: ../utils.c 13a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/context_switch: CFLAGS += -maltivec -mvsx -mabi=altivec 14a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/context_switch: LDLIBS += -lpthread 15dd40c5b4SNicholas Piggin 16dd40c5b4SNicholas Piggin$(OUTPUT)/fork: LDLIBS += -lpthread 17dd40c5b4SNicholas Piggin 18dd40c5b4SNicholas Piggin$(OUTPUT)/exec_target: CFLAGS += -static -nostartfiles 19