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 5850507f3SPo-Hsu LinTEST_FILES := settings 6850507f3SPo-Hsu Lin 7d17475d9SMichael NeulingCFLAGS += -O2 8d17475d9SMichael Neuling 97e0cf1c9SMichael Ellermantop_srcdir = ../../../../.. 1088baa78dSbamvor.zhangjian@huawei.cominclude ../../lib.mk 11d17475d9SMichael Neuling 1268bd42d9SMichael Ellerman$(TEST_GEN_PROGS): ../harness.c 1368bd42d9SMichael Ellerman 14a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/context_switch: ../utils.c 15a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/context_switch: CFLAGS += -maltivec -mvsx -mabi=altivec 16a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/context_switch: LDLIBS += -lpthread 17dd40c5b4SNicholas Piggin 18dd40c5b4SNicholas Piggin$(OUTPUT)/fork: LDLIBS += -lpthread 19dd40c5b4SNicholas Piggin 20dd40c5b4SNicholas Piggin$(OUTPUT)/exec_target: CFLAGS += -static -nostartfiles 21