xref: /linux/tools/testing/selftests/powerpc/mm/Makefile (revision 3776c2096790233b06c8b4e82046daa77c63fced)
1d34b661bSMichael Ellermannoarg:
2d34b661bSMichael Ellerman	$(MAKE) -C ../
3d34b661bSMichael Ellerman
4*3776c209SPaul MackerrasPROGS := hugetlb_vs_thp_test subpage_prot
5d34b661bSMichael Ellerman
6*3776c209SPaul Mackerrasall: $(PROGS) tempfile
7d34b661bSMichael Ellerman
8d34b661bSMichael Ellerman$(PROGS): ../harness.c
9d34b661bSMichael Ellerman
10d34b661bSMichael Ellermanrun_tests: all
11d34b661bSMichael Ellerman	@-for PROG in $(PROGS); do \
12d34b661bSMichael Ellerman		./$$PROG; \
13d34b661bSMichael Ellerman	done;
14d34b661bSMichael Ellerman
15*3776c209SPaul Mackerrastempfile:
16*3776c209SPaul Mackerras	dd if=/dev/zero of=tempfile bs=64k count=1
17*3776c209SPaul Mackerras
18d34b661bSMichael Ellermanclean:
19*3776c209SPaul Mackerras	rm -f $(PROGS) tempfile
20d34b661bSMichael Ellerman
21d34b661bSMichael Ellerman.PHONY: all run_tests clean
22