If you need to create a makefile to be built with cygwin you need to pass the -cygwin=true parameter on the command-line.
-cygwin=true
The main thing that this does is to build dynamic libraries as .dll files instead of .so files.
.dll
.so
Wiki: MakeItSo