mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 14:28:21 +00:00
90eb8f2e72
- Allow to register handler separately for invalid memory access - Add new memory events for hooking: - UC_MEM_READ_INVALID, UC_MEM_WRITE_INVALID, UC_MEM_FETCH_INVALID - UC_HOOK_MEM_READ_PROT, UC_HOOK_MEM_WRITE_PROT, UC_HOOK_MEM_FETCH_PROT - Rename UC_ERR_EXEC_PROT to UC_ERR_FETCH_PROT - Change API uc_hook_add() so event type @type can be combined from hooking types
31 lines
478 B
Makefile
31 lines
478 B
Makefile
|
|
CFLAGS += -Wall -Werror -Wno-unused-function -g
|
|
CFLAGS += -L ../../
|
|
CFLAGS += -lcmocka -lunicorn
|
|
CFLAGS += -I ../../include
|
|
|
|
ALL_TESTS = test_sanity test_x86 test_mem_map
|
|
|
|
.PHONY: all
|
|
all: ${ALL_TESTS}
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf ${ALL_TESTS}
|
|
|
|
.PHONY: test
|
|
test: export LD_LIBRARY_PATH=../../
|
|
test: ${ALL_TESTS}
|
|
./test_sanity
|
|
./test_x86
|
|
./test_mem_map
|
|
|
|
test_sanity: test_sanity.c
|
|
test_x86: test_x86.c
|
|
test_mem_map: test_mem_map.c
|
|
|
|
${ALL_TESTS}:
|
|
gcc ${CFLAGS} -o $@ $^
|
|
|
|
|
|
|