Makefile 569 字节
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
2
TEST_PROGS := ptrace-gpr ptrace-tm-gpr ptrace-tm-spd-gpr \
3
              ptrace-tar ptrace-tm-tar ptrace-tm-spd-tar ptrace-vsx ptrace-tm-vsx \
4 5
              ptrace-tm-spd-vsx ptrace-tm-spr ptrace-hwbreak ptrace-pkey core-pkey \
              perf-hwbreak
6 7 8 9 10

include ../../lib.mk

all: $(TEST_PROGS)

11
CFLAGS += -m64 -I../../../../../usr/include -I../tm -mhtm -fno-pie
12

13 14
ptrace-pkey core-pkey: child.h
ptrace-pkey core-pkey: LDLIBS += -pthread
15

16 17 18 19
$(TEST_PROGS): ../harness.c ../utils.c ../lib/reg.S ptrace.h

clean:
	rm -f $(TEST_PROGS) *.o