diff --git a/Makefile b/Makefile
index 6872bd4676..c539f280f1 100644
--- a/Makefile
+++ b/Makefile
@@ -753,7 +753,7 @@ version.h:
 	./version.sh `$(CC) -dumpversion`
 
 osdep/mplayer-rc.o: osdep/mplayer.rc version.h
-	$(WINDRES) -I. -o $@ $<
+	$(WINDRES) -I. $< $@