Add this to Makefile: test: echo > foo ./pxz foo $ make test echo > foo ./pxz foo make: **\* [test] Segmentation fault