changeset 22559:f872bc4a3699

Separate prerequisites and rules to avoid redundant rules.
author diego
date Wed, 14 Mar 2007 20:12:39 +0000
parents 1a509a038b98
children c06ec6fd3b29
files vidix/drivers/Makefile
diffstat 1 files changed, 3 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/drivers/Makefile	Wed Mar 14 20:08:26 2007 +0000
+++ b/vidix/drivers/Makefile	Wed Mar 14 20:12:39 2007 +0000
@@ -24,27 +24,18 @@
 sis_vid.so: sis_vid.o sis_bridge.o
 
 radeon_vid.so: radeon_vid.o
-	$(CC) -shared $< $(VIDIX_LIBS_X) -Wl,-soname,$@ -o $@
-
 rage128_vid.so: rage128_vid.o
+radeon_vid.so rage128_vid.so:
 	$(CC) -shared $< $(VIDIX_LIBS_X) -Wl,-soname,$@ -o $@
 
 cyberblade_vid.so: cyberblade_vid.o
-	$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@
-
 nvidia_vid.so: nvidia_vid.o
-	$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@
-
 mga_vid.so: mga_vid.o
-	$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@
-
 mga_crtc2_vid.so: mga_crtc2_vid.o
-	$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@
-
 unichrome_vid.so: unichrome_vid.o
-	$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@
-
 savage_vid.so: savage_vid.o
+cyberblade_vid.so nvidia_vid.so mga_vid.so mga_crtc2_vid.so unichrome_vid.so \
+savage_vid.so:
 	$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@
 
 clean: