2021-07-03 15:29:13 +02:00
|
|
|
CC=g++ -O2
|
|
|
|
LFLAGS=-lfinal -lkeystone -lstdc++ -lm -lcapstone -lunicorn
|
2021-07-04 19:20:46 +02:00
|
|
|
DOCKER=docker run -it -e COLUMNS="$$(tput cols)" -e LINES="$$(tput lines)" --name maker --rm -v $$(pwd):/data maker
|
|
|
|
XTERM=terminator -f -e
|
2021-07-03 15:29:13 +02:00
|
|
|
|
|
|
|
all: dockerfile files run
|
|
|
|
|
|
|
|
dockerfile:
|
|
|
|
docker build . -t maker
|
|
|
|
|
|
|
|
files: ./test
|
|
|
|
|
|
|
|
test: ./test.cpp
|
|
|
|
$(DOCKER) $(CC) -o $@ $^ $(LFLAGS)
|
|
|
|
|
|
|
|
run:
|
2021-07-04 19:20:46 +02:00
|
|
|
$(XTERM) '$(DOCKER) bash -c "sleep 0.4;./test"'
|
2021-07-03 15:29:13 +02:00
|
|
|
|
|
|
|
rerun: delete files run
|
|
|
|
|
2021-07-05 10:22:48 +02:00
|
|
|
stop:
|
|
|
|
docker stop maker
|
|
|
|
|
2021-07-03 15:29:13 +02:00
|
|
|
delete:
|
|
|
|
rm -rf ./test
|