I\'m writing a C program using gcc in cygwin. My question is, how do you create a makefile? I mean, what file-extension does it have? I know how to write simple rules, but I can
Makefiles don't usually have an extension. They're typically called 'makefile' or 'Makefile'. Sometimes, when someone writes a complex set of makefiles that include each other, the included files get a .mak extension to indicate that they're makefiles even though they aren't called 'makefile'.