poc.x: poc.o
	gcc -o poc.x -m32 poc.o

poc.o: poc.asm
	nasm -o poc.o -felf32 poc.asm

README.html: README.md diagram.png diagram2.png
	redcarpet README.md > README.html

.PHONY: att intel
att: poc.x
	objdump -M att --start-address=0x08048410 --stop-address=0x08048440 -d poc.x

intel: poc.x
	objdump -M intel --start-address=0x08048410 --stop-address=0x08048440 -d poc.x
