diff --git a/Makefile b/Makefile
index 2680cbd492..9cb7c4a97d 100644
--- a/Makefile
+++ b/Makefile
@@ -774,8 +774,7 @@ ifdef BEOS
endif
ifdef WIN32
- # Resource file
- OBJS += winres.o
+ SRCS += ottdres.rc
endif
ifdef WITH_DIRECTMUSIC
@@ -854,10 +853,6 @@ lang/%.lng: lang/%.txt $(STRGEN) lang/english.txt
@echo '===> Compiling language $(*F)'
$(Q)$(STRGEN) $(STRGEN_FLAGS) $< $(LANG_ERRORS) || rm -f $@
-winres.o: openttd.rc
- @echo '===> Compiling resource $<'
- $(Q)$(WINDRES) -o $@ $<
-
ifdef MORPHOS
release: all
$(Q)rm -fr "/t/openttd-$(RELEASE)-morphos.lha"
@@ -1024,6 +1019,10 @@ endif
@echo '===> Compiling $<'
$(Q)$(CC) $(CFLAGS) $(CDEFS) -c -o $@ $<
+%.o: %.rc
+ @echo '===> Compiling resource $<'
+ $(Q)$(WINDRES) -o $@ $<
+
info:
@echo 'CFLAGS = $(CFLAGS)'
diff --git a/openttd.dsp b/openttd.dsp
index 152fd46f99..1323ed45a7 100644
--- a/openttd.dsp
+++ b/openttd.dsp
@@ -327,7 +327,7 @@ SOURCE=.\openttd.c
# End Source File
# Begin Source File
-SOURCE=.\openttd.rc
+SOURCE=.\ottdres.rc
# End Source File
# Begin Source File
diff --git a/openttd.vcproj b/openttd.vcproj
index 18aabf929e..a6afa2ffa5 100644
--- a/openttd.vcproj
+++ b/openttd.vcproj
@@ -291,7 +291,7 @@
RelativePath=".\openttd.c">
+ RelativePath=".\ottdres.rc">
diff --git a/openttd.rc b/ottdres.rc
similarity index 100%
rename from openttd.rc
rename to ottdres.rc