Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
67 lines (50 loc) · 2.06 KB
/
Copy pathMakefile
File metadata and controls
67 lines (50 loc) · 2.06 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
# _____ ___ ____
# ____| | ____| 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/mock_rsp_server tests/rsp_protocol_test tests/hw_breakpoint_state_test tests/ctrlc_rsp_client
./tests/r5900_rsp_test
./tests/registers_test
./tests/hw_breakpoint_state_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
# 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 $@
# 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/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
rm -f tests/r5900_rsp_test tests/registers_test tests/mock_rsp_server tests/rsp_protocol_test tests/hw_breakpoint_state_test tests/ctrlc_rsp_client