makefile error

I am having Arduino UNO, cygwin. Trying to use makefile to compile the project.

So I got this makefile from git:

Copied everything as necessary, my config is:

ARDUINO_DIR  = d:/bin/cygwin/home/Dmitry/arduino/arduino-0022

TARGET       = xx
ARDUINO_LIBS = 

BOARD_TAG    = uno
ARDUINO_PORT = COM4
MCU = atmega328p
F_CPU = 16000000L

include d:/bin/cygwin/usr/local/share/Arduino.mk

But it didn't work. Then I tried to compile 1 file:

d:/bin/cygwin/home/Dmitry/arduino/arduino-0022/hardware/tools/avr/bin/avr-gcc -c
 -mmcu=atmega328p -DF_CPU=16000000L -I. -Id:/bin/cygwin/home/Dmitry/arduino/ardu
ino-0022/hardware/arduino/variants/standard -Id:/bin/cygwin/home/Dmitry/arduino/
arduino-0022/hardware/arduino/cores/arduino  -g -Os -w -Wall -ffunction-sections
 -fdata-sections -std=gnu99 d:/bin/cygwin/home/Dmitry/arduino/arduino-0022/hardw
are/arduino/cores/arduino/WInterrupts.c -o build-cli/WInterrupts.o

This worked. Then --- a second file.

d:/bin/cygwin/home/Dmitry/arduino/arduino-0022/hardware/tools/avr/bin/avr-gcc -c
 -mmcu=atmega328p -DF_CPU=16000000L -I. -Id:/bin/cygwin/home/Dmitry/arduino/ardu
ino-0022/hardware/arduino/variants/standard -Id:/bin/cygwin/home/Dmitry/arduino/
arduino-0022/hardware/arduino/cores/arduino  -g -Os -w -Wall -ffunction-sections
 -fdata-sections -std=gnu99 d:/bin/cygwin/home/Dmitry/arduino/arduino-0022/hardw
are/arduino/cores/arduino/pins_arduino.c -o build-cli/pins_arduino.c

This exited, but didn't produce a .o file. Can somebody recommend me a makefile for Windows/Cygwin, cause it's really a torture.

read what you posted again, what is the output file type of that command?

Thanks for pointing on an error. But even this doesn't work:

d:/bin/cygwin/home/Dmitry/arduino/arduino-0022/hardware/tools/avr/bin/avr-gcc -c -mmcu=atmega328p -DF_CPU=16000000L -I. -Id:/bin/cygwin/home/Dmitry/arduino/arduino-0022/hardware/arduino/variants/standard -Id:/bin/cygwin/home/Dmitry/arduino/arduino-0022/hardware/arduino/cores/arduino  -g -Os -w -Wall -ffunction-sections -fdata-sections -std=gnu99 d:/bin/cygwin/home/Dmitry/arduino/arduino-0022/hardware/arduino/cores/arduino/pins_arduino.c -o build-cli/pins_arduino.o