Makefile 493 字节
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
2 3
TEST_GEN_PROGS := gettimeofday context_switch fork mmap_bench futex_bench null_syscall
TEST_GEN_FILES := exec_target
4 5 6

CFLAGS += -O2

7
top_srcdir = ../../../../..
8
include ../../lib.mk
9

10 11
$(TEST_GEN_PROGS): ../harness.c

12 13 14
$(OUTPUT)/context_switch: ../utils.c
$(OUTPUT)/context_switch: CFLAGS += -maltivec -mvsx -mabi=altivec
$(OUTPUT)/context_switch: LDLIBS += -lpthread
15 16 17 18

$(OUTPUT)/fork: LDLIBS += -lpthread

$(OUTPUT)/exec_target: CFLAGS += -static -nostartfiles