changeset 22564:91e69ec806e6

Simplify handling of extra library flags.
author diego
date Wed, 14 Mar 2007 20:51:46 +0000
parents 6398fe5193ef
children 46324dbdfc18
files vidix/drivers/Makefile
diffstat 1 files changed, 1 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/drivers/Makefile	Wed Mar 14 20:50:48 2007 +0000
+++ b/vidix/drivers/Makefile	Wed Mar 14 20:51:46 2007 +0000
@@ -3,7 +3,6 @@
 SRCS_MPLAYER = $(wildcard *.c)
 
 VIDIX_LIBS   = -L../../libdha -ldha
-VIDIX_LIBS_M = $(VIDIX_LIBS) -lm
 
 CFLAGS           = -fPIC
 
@@ -22,15 +21,8 @@
 
 sis_vid.so: sis_vid.o sis_bridge.o
 
-cyberblade_vid.so: cyberblade_vid.o
-nvidia_vid.so: nvidia_vid.o
-mga_vid.so: mga_vid.o
-mga_crtc2_vid.so: mga_crtc2_vid.o
-unichrome_vid.so: unichrome_vid.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 $@
+savage_vid.so: VIDIX_LIBS += -lm
 
 include ../../mpcommon.mak