Uses elfedit to copy itself and ensure both versions are identical.
+.PHONY: check
+check: $(EXE)
+ $(EXE) $(EXE) -o testexe
+ @cmp $(EXE) testexe
+ @rm testexe
+ @echo "Check successful."
+
+
.PHONY: debug
debug: $(EXE)
gdb $(EXE) $(shell ps -e | sed "s/^ *\([0-9]\+\) .*$(PROJ).*$$/\1/g;te;d;:e")
.PHONY: debug
debug: $(EXE)
gdb $(EXE) $(shell ps -e | sed "s/^ *\([0-9]\+\) .*$(PROJ).*$$/\1/g;te;d;:e")