xref: /linux/tools/testing/selftests/powerpc/benchmarks/Makefile (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
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
77e0cf1c9SMichael Ellermantop_srcdir = ../../../../..
888baa78dSbamvor.zhangjian@huawei.cominclude ../../lib.mk
9108e5e68SMadhavan Srinivasaninclude ../flags.mk
10d17475d9SMichael Neuling
1137496845SMadhavan SrinivasanCFLAGS += -O2
1237496845SMadhavan Srinivasan
1368bd42d9SMichael Ellerman$(TEST_GEN_PROGS): ../harness.c
1468bd42d9SMichael Ellerman
15a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/context_switch: ../utils.c
16a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/context_switch: CFLAGS += -maltivec -mvsx -mabi=altivec
17a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/context_switch: LDLIBS += -lpthread
18dd40c5b4SNicholas Piggin
19dd40c5b4SNicholas Piggin$(OUTPUT)/fork: LDLIBS += -lpthread
20dd40c5b4SNicholas Piggin
21*8c9c01ceSMadhavan Srinivasan$(OUTPUT)/exec_target: CFLAGS += -nostartfiles
22