Open your favorite text editor and create a file called Makefile .
The contents may vary, but provided that you have a program called hello.c very simple and easy to compile, it can be:
hello: hello.c gcc -Wall hello.c -o hello.exe
After that, you run run from the cygwin shell:
$ ls hello.c Makefile $ make ....
And your Makefile will try to compile hello.c . If everything goes as expected, you can run the hello.exe program by running the following shell command:
$ ./hello.exe
Here is a good tutorial on Makefiles .
Pablo santa cruz
source share