[MPlayer-cvslog] r27219 - trunk/Makefile

diego subversion at mplayerhq.hu
Sun Jul 6 15:26:31 CEST 2008


Author: diego
Date: Sun Jul  6 15:26:30 2008
New Revision: 27219

Log:
Add a generic rule for .rc files and use it.


Modified:
   trunk/Makefile

Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile	(original)
+++ trunk/Makefile	Sun Jul  6 15:26:30 2008
@@ -733,6 +733,9 @@ all: $(ALL_PRG-yes)
 %.ho: %.h
 	$(CC) $(CFLAGS) -Wno-unused -c -o $@ -x c $<
 
+%-rc.o: %.rc
+	$(WINDRES) -I. $< $@
+
 checkheaders: $(ALLHEADERS:.h=.ho)
 
 dep depend: $(DEPS)
@@ -771,7 +774,6 @@ version.h:
 	./version.sh `$(CC) -dumpversion`
 
 osdep/mplayer-rc.o: osdep/mplayer.rc version.h
-	$(WINDRES) -I. $< $@
 
 %(EXESUF): %.c
 
@@ -1028,7 +1030,6 @@ vidix/dhahelperwin/dhahelper.o: vidix/dh
 	$(CC) -Wall -Os -c $< -o $@
 
 vidix/dhahelperwin/dhahelper-rc.o: vidix/dhahelperwin/dhahelper.rc vidix/dhahelperwin/common.ver vidix/dhahelperwin/ntverp.h
-	$(WINDRES) -I. $< $@
 
 vidix/dhahelperwin/base.tmp: vidix/dhahelperwin/dhahelper.o vidix/dhahelperwin/dhahelper-rc.o
 	$(CC) -Wl,--base-file,$@ -Wl,--entry,_DriverEntry at 8 -nostartfiles \



More information about the MPlayer-cvslog mailing list