xref: /linux/tools/testing/selftests/powerpc/mm/Makefile (revision 93cad5f789951eaa27c3392b15294b4e51253944)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2d34b661bSMichael Ellermannoarg:
3d34b661bSMichael Ellerman	$(MAKE) -C ../
4d34b661bSMichael Ellerman
516391bfcSMichael EllermanTEST_GEN_PROGS := hugetlb_vs_thp_test subpage_prot prot_sao segv_errors wild_bctr \
616391bfcSMichael Ellerman		  large_vm_fork_separation
7*93cad5f7SAneesh Kumar K.VTEST_GEN_PROGS_EXTENDED := tlbie_test
888baa78dSbamvor.zhangjian@huawei.comTEST_GEN_FILES := tempfile
924af8c5aSMichael Ellerman
107e0cf1c9SMichael Ellermantop_srcdir = ../../../../..
116faeeea4SMichael Ellermaninclude ../../lib.mk
12d34b661bSMichael Ellerman
1388baa78dSbamvor.zhangjian@huawei.com$(TEST_GEN_PROGS): ../harness.c
1488baa78dSbamvor.zhangjian@huawei.com
15a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/prot_sao: ../utils.c
1688baa78dSbamvor.zhangjian@huawei.com
17b7683fc6SMichael Ellerman$(OUTPUT)/wild_bctr: CFLAGS += -m64
1816391bfcSMichael Ellerman$(OUTPUT)/large_vm_fork_separation: CFLAGS += -m64
19b7683fc6SMichael Ellerman
20a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/tempfile:
21a8ba798bSbamvor.zhangjian@huawei.com	dd if=/dev/zero of=$@ bs=64k count=1
223776c209SPaul Mackerras
23*93cad5f7SAneesh Kumar K.V$(OUTPUT)/tlbie_test: LDLIBS += -lpthread
24