Initial commit

This commit is contained in:
2025-04-12 08:26:23 +08:00
commit aa66855054
57 changed files with 1702 additions and 0 deletions

18
Makefile Normal file
View File

@@ -0,0 +1,18 @@
.PHONY: all debug clean test
all: sdb
sdb: $(patsubst %.c,%.o,$(wildcard *.c))
gcc -o $@ $^ -lcapstone -std=gnu17 -g -fsanitize=address,undefined -fanalyzer
%.o: %.c
gcc -o $@ -c $^ -std=gnu17 -Wall -Wextra \
-g -fsanitize=address,undefined -fanalyzer \
-Wno-unused-value #-DDEBUG
clean:
- rm -f sdb *.o
make -C test clean
test: sdb
make -C test_case