xref: /linux/tools/testing/selftests/powerpc/benchmarks/Makefile (revision f2418ae8a81760b4dec8d5e3e7f1faf45c422e9d)
100b7ec5cSMichael EllermanTEST_PROGS := gettimeofday context_switch
2d17475d9SMichael Neuling
3d17475d9SMichael NeulingCFLAGS += -O2
4d17475d9SMichael Neuling
5d17475d9SMichael Neulingall: $(TEST_PROGS)
6d17475d9SMichael Neuling
7d17475d9SMichael Neuling$(TEST_PROGS): ../harness.c
8d17475d9SMichael Neuling
9ea0c3217SMichael Ellermancontext_switch: ../utils.c
10*f2418ae8SCyril Burcontext_switch: CFLAGS += -maltivec -mvsx -mabi=altivec
1100b7ec5cSMichael Ellermancontext_switch: LDLIBS += -lpthread
1200b7ec5cSMichael Ellerman
13d17475d9SMichael Neulinginclude ../../lib.mk
14d17475d9SMichael Neuling
15d17475d9SMichael Neulingclean:
16d17475d9SMichael Neuling	rm -f $(TEST_PROGS) *.o
17