Mercurial > mplayer.hg
changeset 19514:5f48b21fb801
Redundancy removal part IV: Create pattern rules for .o and .so creation.
author | diego |
---|---|
date | Thu, 24 Aug 2006 00:50:17 +0000 |
parents | 9817edc04689 |
children | 38bbca382956 |
files | vidix/drivers/Makefile |
diffstat | 1 files changed, 4 insertions(+), 31 deletions(-) [+] |
line wrap: on
line diff
--- a/vidix/drivers/Makefile Thu Aug 24 00:45:31 2006 +0000 +++ b/vidix/drivers/Makefile Thu Aug 24 00:50:17 2006 +0000 @@ -21,21 +21,15 @@ # .PHONY: all clean -cyberblade_vid.o: cyberblade_vid.c +%.o: %.c $(CC) -c $(VIDIX_CFLAGS) -o $@ $< +%.so: %.o + $(CC) -shared $< $(VIDIX_LIBS) -Wl,-soname,$@ -o $@ + cyberblade_vid.so: cyberblade_vid.o $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ -pm3_vid.o: pm3_vid.c - $(CC) -c $(VIDIX_CFLAGS) -o $@ $< - -pm3_vid.so: pm3_vid.o - $(CC) -shared $< $(VIDIX_LIBS) -Wl,-soname,$@ -o $@ - -radeon_vid.o: radeon_vid.c - $(CC) -c $(VIDIX_CFLAGS) -o $@ $< - radeon_vid.so: radeon_vid.o $(CC) -shared $< $(VIDIX_LIBS_X) -Wl,-soname,$@ -o $@ @@ -45,21 +39,9 @@ rage128_vid.so: rage128_vid.o $(CC) -shared $< $(VIDIX_LIBS_X) -Wl,-soname,$@ -o $@ -mach64_vid.o: mach64_vid.c - $(CC) -c $(VIDIX_CFLAGS) -o $@ $< - -mach64_vid.so: mach64_vid.o - $(CC) -shared $< $(VIDIX_LIBS) -Wl,-soname,$@ -o $@ - -nvidia_vid.o: nvidia_vid.c - $(CC) -c $(VIDIX_CFLAGS) -o $@ $< - nvidia_vid.so: nvidia_vid.o $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ -mga_vid.o: mga_vid.c - $(CC) -c $(VIDIX_CFLAGS) -o $@ $< - mga_vid.so: mga_vid.o $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ @@ -69,21 +51,12 @@ mga_crtc2_vid.so: mga_crtc2_vid.o $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ -sis_vid.o sis_bridge.o: sis_vid.c sis_bridge.c - $(CC) -c $(VIDIX_CFLAGS) -o $@ $(basename $@).c - sis_vid.so: sis_vid.o sis_bridge.o $(CC) -shared $^ $(VIDIX_LIBS) -Wl,-soname,$@ -o $@ -unichrome_vid.o: unichrome_vid.c - $(CC) -c $(VIDIX_CFLAGS) -o $@ $< - unichrome_vid.so: unichrome_vid.o $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ -savage_vid.o: savage_vid.c - $(CC) -c $(VIDIX_CFLAGS) -o $@ $< - savage_vid.so: savage_vid.o $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@