IA86/Makefile

26 lines
480 B
Makefile
Raw Normal View History

2021-07-03 15:29:13 +02:00
CC=g++ -O2
LFLAGS=-lfinal -lkeystone -lstdc++ -lm -lcapstone -lunicorn
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: ./ia86
2021-07-03 15:29:13 +02:00
ia86: ./ia86.cpp
2021-07-03 15:29:13 +02:00
$(DOCKER) $(CC) -o $@ $^ $(LFLAGS)
run:
$(XTERM) '$(DOCKER) bash -c "sleep 0.4;./ia86"'
2021-07-03 15:29:13 +02:00
rerun: delete files run
stop:
docker stop maker
2021-07-03 15:29:13 +02:00
delete:
rm -rf ./ia86