generate pcm wav file: write makefile and fix parse option failure