.PHONY: clean plot

hammertool: ../0x02_memlib/memoryInspect.h ../0x02_memlib/memoryInspect.c ../0x02_memlib/pfnInspect.h ../0x02_memlib/pfnInspect.c ../0x02_memlib/util.h ../0x02_memlib/util.c ../0x04_hammerlib/afunc.c ../0x04_hammerlib/afunc.h ../0x04_hammerlib/asm.h ../0x04_hammerlib/util.c ../0x04_hammerlib/util.h ../0x04_hammerlib/hammer.c ../0x04_hammerlib/hammer.h main.c
	gcc -o hammertool ../0x02_memlib/memoryInspect.c ../0x02_memlib/pfnInspect.c ../0x02_memlib/util.c main.c ../0x04_hammerlib/afunc.c ../0x04_hammerlib/util.c ../0x04_hammerlib/hammer.c -O0 -g -DVERSION=\"$(shell date +%Y-%m-%d)\" -lrt -lpthread

clean:
	-rm hammertool

plot:
	-rm img/*
	python plot.py
