Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
89 lines (67 loc) · 3.23 KB
/
Copy pathMakefile
File metadata and controls
89 lines (67 loc) · 3.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# _____ ___ ____
# ____| | ____| PSX2 OpenSource Project
# | ___| |____ (C)2002, Ray Donnelly ( rdonnelly@polygoons.com )
# --------------------------------------------------------------------------
HOST_CC ?= cc
HOST_CFLAGS ?= -std=c99 -Wall -Wextra -Werror
all:
$(MAKE) -C ee
$(MAKE) -C sample
check: tests/r5900_rsp_test tests/registers_test tests/ee_context_candidate_test tests/ee_bootstrap_vector_audit tests/mock_rsp_server tests/rsp_protocol_test tests/hw_breakpoint_state_test tests/ctrlc_rsp_client tests/ctrlc_receiver_state_test tests/ctrlc_receiver_transport_test
./tests/r5900_rsp_test
./tests/registers_test
./tests/ee_context_candidate_test
./tests/ee_bootstrap_vector_audit --self-test
./tests/hw_breakpoint_state_test
./tests/ctrlc_receiver_state_test
./tests/ctrlc_receiver_transport_test
sh tests/check_protocol.sh
# Builds the EE hardware exception probe but never runs it automatically.
hardware-probe-build:
$(MAKE) -C tests/hardware clean all
# Non-mutating VBlank interrupt-context research; compile only in CI.
# The binary itself runs exclusively by explicit ps2client command.
preemptive-probe-build:
$(MAKE) -C tests/preemptive clean all
# Diagnostic macros compile only; the script restores a non-triggering ELF.
hardware-probe-variants-build:
sh tests/hardware/check_variants.sh
check-install:
$(MAKE) -C ee
sh tests/check_install.sh
check-gdb: tests/mock_rsp_server
$(MAKE) -C ee
$(MAKE) -C sample
sh tests/check_gdb.sh
tests/ctrlc_rsp_client: tests/ctrlc_rsp_client.c
$(HOST_CC) $(HOST_CFLAGS) $< -o $@
tests/ctrlc_receiver_state_test: tests/ctrlc_receiver_state_test.c ee/ctrlc-receiver-state.h
$(HOST_CC) $(HOST_CFLAGS) $< -o $@
tests/ctrlc_receiver_transport_test: tests/ctrlc_receiver_transport_test.c ee/ctrlc-receiver-state.h
$(HOST_CC) $(HOST_CFLAGS) -pthread $< -o $@
# The mock server is used for host-to-host integration with PS2DEV GDB.
# Building it in CI also ensures its native C sources stay portable.
tests/r5900_rsp_test: tests/r5900_rsp_test.c ee/r5900-rsp.h
$(HOST_CC) $(HOST_CFLAGS) $< -o $@
tests/registers_test: tests/registers_test.c ee/r5900-registers.h ee/r5900-rsp.h
$(HOST_CC) $(HOST_CFLAGS) $< -o $@
tests/ee_context_candidate_test: tests/ee_context_candidate_test.c tests/preemptive/ee_context_candidate.h ee/gdb-stub.h
$(HOST_CC) $(HOST_CFLAGS) $< -o $@
tests/ee_bootstrap_vector_audit: tests/ee_bootstrap_vector_audit.c
$(HOST_CC) $(HOST_CFLAGS) $< -o $@
tests/hw_breakpoint_state_test: tests/hw_breakpoint_state_test.c ee/hw-breakpoint-state.h ee/r5900-rsp.h
$(HOST_CC) $(HOST_CFLAGS) $< -o $@
tests/rsp_protocol_test: tests/rsp_protocol_test.c ee/r5900-rsp.h
$(HOST_CC) $(HOST_CFLAGS) $< -o $@
tests/mock_rsp_server: tests/mock_rsp_server.c ee/r5900-registers.h ee/r5900-rsp.h
$(HOST_CC) $(HOST_CFLAGS) $< -o $@
debug:
$(MAKE) -C ee debug
$(MAKE) -C sample
install:
$(MAKE) -C ee install
clean:
$(MAKE) -C ee clean
$(MAKE) -C sample clean
$(MAKE) -C tests/preemptive clean
rm -f tests/r5900_rsp_test tests/registers_test tests/ee_context_candidate_test tests/ee_bootstrap_vector_audit tests/mock_rsp_server tests/rsp_protocol_test tests/hw_breakpoint_state_test tests/ctrlc_rsp_client tests/ctrlc_receiver_state_test tests/ctrlc_receiver_transport_test