Tracing system calls for automatic make file generation