[MPlayer-dev-eng] [PATCH] Makefile rule for osdep/mplayer-rc.o

Zuxy Meng zuxy.meng at gmail.com
Mon Oct 9 10:10:32 CEST 2006


Hi,

This patch adds a rule for osdep/mplayer-rc.o specifically so it won't
be compiled every time.

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
-------------- next part --------------
Index: Makefile
===================================================================
--- Makefile	???????? 20125??
+++ Makefile	????????????
@@ -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,11 @@
 	$(CC) $(CFLAGS) -o $(PRG_MENCODER) $(OBJS_MENCODER) $(LIBS_MENCODER)
 endif
 
+ifeq ($(TARGET_WIN32),yes)
+osdep/mplayer-rc.o: osdep/mplayer.rc
+	windres -o $@ osdep/mplayer.rc
+endif
+
 codec-cfg: codec-cfg.c codec-cfg.h help_mp.h
 	$(HOST_CC) -I. -DCODECS2HTML codec-cfg.c -o $@
 


More information about the MPlayer-dev-eng mailing list