On UNIX here are a couple ways to create such a file:
ls *.c *.h > my_project.lst
find . -name “*.c *.h” -print > my_project.lst
In a Windows command shell:
dir /b *.c *.h > my_project.lst
dir /b /s *.c *.h > my_project.lst