Makefile (517B)
1# SPDX-License-Identifier: GPL-2.0 2TEST_GEN_PROGS := gettimeofday context_switch fork mmap_bench futex_bench null_syscall 3TEST_GEN_FILES := exec_target 4 5TEST_FILES := settings 6 7CFLAGS += -O2 8 9top_srcdir = ../../../../.. 10include ../../lib.mk 11 12$(TEST_GEN_PROGS): ../harness.c 13 14$(OUTPUT)/context_switch: ../utils.c 15$(OUTPUT)/context_switch: CFLAGS += -maltivec -mvsx -mabi=altivec 16$(OUTPUT)/context_switch: LDLIBS += -lpthread 17 18$(OUTPUT)/fork: LDLIBS += -lpthread 19 20$(OUTPUT)/exec_target: CFLAGS += -static -nostartfiles