Hmm. I can't really reproduce this issue. My results # rm *.c; for i in $(seq 1 2046); do echo "incluce <stdio.h>" > hello${i}.c; done; makedepend *.c # rm *.c; for i in $(seq 1 2047); do echo "incluce <stdio.h>" > hello${i}.c; done; makedepend *.c makedepend: error: out of space: increase MAXFILES So failing with 2047 and higher.