In a .bat file I'm executing a compiler with the line
cl -GL -Od -Zi <all .h files> <all .c files>
but I don't know how to reference all .c and .h files in that manner. I was thinking */.c and */.h, but both of those are invalid arguments. Is there any way I could reference all .c and .h files in this manner?
cl doesn't let you do this, but if you want to compile all C files in every folder starting from a certain point, then you can do something like the following.
Note, with those command options you can't pass in a header file either.
Test this with:
test.cmd C:\mytestIf C:\mytest contains several folders of simple *.c and *.h files this will work.
test.cmd C:\mytestYou might really be wanting to invoke nmake?