changeset 20123:aaec1eff2e86

Create target for mplayer-rc.o so that it is not rerun unconditionally. based on patch by Zuxy Meng, zuxy.meng gmail com
author diego
date Mon, 09 Oct 2006 09:22:43 +0000
parents 40a2a3728963
children c82a7c3ba766
files Makefile
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Mon Oct 09 08:32:07 2006 +0000
+++ b/Makefile	Mon Oct 09 09:22:43 2006 +0000
@@ -384,9 +384,6 @@
                $(STATIC_LIB) \
 
 $(PRG):	$(MPLAYER_DEP)
-    ifeq ($(TARGET_WIN32),yes)
-	windres -o osdep/mplayer-rc.o osdep/mplayer.rc
-    endif
 	$(CC) $(CFLAGS) -o $(PRG) $(OBJS_MPLAYER) $(LIBS_MPLAYER)
 
 ifeq ($(MENCODER),yes)
@@ -398,6 +395,9 @@
 	$(CC) $(CFLAGS) -o $(PRG_MENCODER) $(OBJS_MENCODER) $(LIBS_MENCODER)
 endif
 
+osdep/mplayer-rc.o: osdep/mplayer.rc
+	windres -o $@ osdep/mplayer.rc
+
 codec-cfg: codec-cfg.c codec-cfg.h help_mp.h
 	$(HOST_CC) -I. -DCODECS2HTML codec-cfg.c -o $@