1 # SPDX-License-Identifier: GPL-2.0 !! 1 TEST_PROGS := gettimeofday context_switch mmap_bench futex_bench 2 TEST_GEN_PROGS := gettimeofday context_switch << 3 TEST_GEN_FILES := exec_target << 4 << 5 TEST_FILES := settings << 6 << 7 top_srcdir = ../../../../.. << 8 include ../../lib.mk << 9 include ../flags.mk << 10 2 11 CFLAGS += -O2 3 CFLAGS += -O2 12 4 13 $(TEST_GEN_PROGS): ../harness.c !! 5 all: $(TEST_PROGS) 14 6 15 $(OUTPUT)/context_switch: ../utils.c !! 7 $(TEST_PROGS): ../harness.c 16 $(OUTPUT)/context_switch: CFLAGS += -maltivec << 17 $(OUTPUT)/context_switch: LDLIBS += -lpthread << 18 8 19 $(OUTPUT)/fork: LDLIBS += -lpthread !! 9 context_switch: ../utils.c >> 10 context_switch: CFLAGS += -maltivec -mvsx -mabi=altivec >> 11 context_switch: LDLIBS += -lpthread >> 12 >> 13 include ../../lib.mk 20 14 21 $(OUTPUT)/exec_target: CFLAGS += -nostartfiles !! 15 clean: >> 16 rm -f $(TEST_PROGS) *.o
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.