Eclipse Makefile problems

I have two installs of Eclipse/GCC on windows, one with cygwin one without. The one with cygwin runs make files as I would expect, and behaves well.

The Eclise/GCC install without cygwin is a real pain. If I try lines such as

del usbcontrol.o

I get “process_begin” errors. I’ve tried “cmd del usbcontrol.o”

I can do

rm: cannot remove `usbcontrol.o': No such file or directory

but following the line (which does indeed delete the file) I get an error message “rm: cannot remove `usbcontrol.o’: No such file or directory”

How do I get my makefiles (without cygwin) to not cause errors here?

EDIT: The comment I was replying to was removed

I think, before you use rm it should compile the object file first with this gcc filenam -o filename.c.