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