IA86/Makefile

40 lines
655 B
Makefile
Raw Normal View History

2021-07-16 13:14:48 +02:00
CC=g++ -O2 -static
LFLAGS=-lfinal -lkeystone -lstdc++ -lm -lcapstone -lunicorn -lz -lncursesw
OPTIONS=-std=c++17
DOCKER=docker run --name maker --rm -v $$(pwd):/data maker
START=./start.sh
2021-07-03 15:29:13 +02:00
2021-07-16 13:14:48 +02:00
all: dockerfile files run
2021-07-03 15:29:13 +02:00
clean: dockerclean
clear:
clear
dockerclean:
(docker rmi $$(docker images | grep "^<none>" | awk '{print $$3}') --force;true)
(docker rmi maker;true)
docker image ls
2021-07-03 15:29:13 +02:00
dockerfile:
docker build . -t maker
dockerfile_force: dockerclean dockerfile
files: ./ia86
2021-07-03 15:29:13 +02:00
ia86: ./ia86.cpp
$(DOCKER) $(CC) $(OPTIONS) -o $@ $^ $(LFLAGS)
2021-07-03 15:29:13 +02:00
rerun:
$(START)
2021-07-03 15:29:13 +02:00
run: clear delete files rerun
2021-07-03 15:29:13 +02:00
stop:
docker stop maker
2021-07-03 15:29:13 +02:00
delete:
rm -rf ./ia86