changeset 22561:32a0bd959b1e

Reuse common parts of all Makefiles through mpcommon.mak.
author diego
date Wed, 14 Mar 2007 20:19:45 +0000
parents c06ec6fd3b29
children cec71e2a04ad
files vidix/drivers/Makefile
diffstat 1 files changed, 6 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/drivers/Makefile	Wed Mar 14 20:17:01 2007 +0000
+++ b/vidix/drivers/Makefile	Wed Mar 14 20:19:45 2007 +0000
@@ -1,10 +1,12 @@
 include ../../config.mak
 
+SRCS_MPLAYER = $(wildcard *.c)
+
 VIDIX_LIBS   = -L../../libdha -ldha
 VIDIX_LIBS_M = $(VIDIX_LIBS) -lm
 VIDIX_LIBS_X = $(VIDIX_LIBS_M) $(X_LIB)
 
-CFLAGS           = -fPIC -I. -I.. $(OPTFLAGS)
+CFLAGS           = -fPIC
 RAGE128_CFLAGS   = $(CFLAGS) -DRAGE128
 MGA_CRTC2_CFLAGS = $(CFLAGS) -DCRTC2
 
@@ -38,15 +40,7 @@
 savage_vid.so:
 	$(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@
 
-clean:
-	rm -f *.o *.so *~
-
-distclean: clean
-	rm -f .depend
+include ../../mpcommon.mak
 
-dep depend:
-	$(CC) -MM $(CFLAGS) $(wildcard *.c) 1>.depend
-
--include .depend
-
-.PHONY: libs clean distclean dep depend
+clean::
+	rm -f *.so