[MPlayer-cvslog] r19520 - trunk/vidix/drivers/Makefile

diego subversion at mplayerhq.hu
Thu Aug 24 02:50:17 CEST 2006


Author: diego
Date: Thu Aug 24 02:50:17 2006
New Revision: 19520

Modified:
   trunk/vidix/drivers/Makefile

Log:
Redundancy removal part IV: Create pattern rules for .o and .so creation.


Modified: trunk/vidix/drivers/Makefile
==============================================================================
--- trunk/vidix/drivers/Makefile	(original)
+++ trunk/vidix/drivers/Makefile	Thu Aug 24 02:50:17 2006
@@ -21,20 +21,14 @@
 
 # .PHONY: all clean
 
-cyberblade_vid.o: cyberblade_vid.c
+%.o: %.c
 	$(CC) -c $(VIDIX_CFLAGS) -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
+%.so: %.o
 	$(CC) -shared $< $(VIDIX_LIBS) -Wl,-soname,$@ -o $@
 
-radeon_vid.o: radeon_vid.c
-	$(CC) -c $(VIDIX_CFLAGS) -o $@ $<
+cyberblade_vid.so: cyberblade_vid.o
+	$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -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 $@
 



More information about the MPlayer-cvslog mailing list