Initial commit
This commit is contained in:
18
Makefile
Normal file
18
Makefile
Normal 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
|
||||
Reference in New Issue
Block a user