Context
As the title suggest, I am trying to compile all .c
files in a specific directory.
I am aware from this post that in Linux environment, you can use globbing and do gcc -o executable *.c
. However, I am trying to do exactly the same, on a Windows environment.
Question
How can I compile all .c
files in a specific/current directory using Cygwin's gcc
command on a Windows 10 environment.
Additional Notes
- Operating System: Windows 10 (x64)
- Runtime Environment: Cygwin
Edit #1
Per @matzeri's suggestion, I found out that globbing (*.c
via the Cygwin termninal) works, however, I need to be able to do it via the terminal.