# HG changeset patch # User diego # Date 1215350790 0 # Node ID c543d4349e736d495d17a155ae6ee5c9898e239c # Parent b5c864852dca60bb8772365662e11f405e2eaff5 Add a generic rule for .rc files and use it. diff -r b5c864852dca -r c543d4349e73 Makefile --- a/Makefile Sun Jul 06 13:18:29 2008 +0000 +++ b/Makefile Sun Jul 06 13:26:30 2008 +0000 @@ -733,6 +733,9 @@ %.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.sh `$(CC) -dumpversion` osdep/mplayer-rc.o: osdep/mplayer.rc version.h - $(WINDRES) -I. $< $@ %(EXESUF): %.c @@ -1028,7 +1030,6 @@ $(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@8 -nostartfiles \