Reuse common parts of all Makefiles through mpcommon.mak.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22579 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2007-03-14 20:19:45 +00:00
parent c35f506e49
commit 07a4ce7930
1 changed files with 6 additions and 12 deletions

View File

@ -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 @@ 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:
rm -f *.o *.so *~
include ../../mpcommon.mak
distclean: clean
rm -f .depend
dep depend:
$(CC) -MM $(CFLAGS) $(wildcard *.c) 1>.depend
-include .depend
.PHONY: libs clean distclean dep depend
clean::
rm -f *.so