[MPlayer-cvslog] r22867 - in trunk: Makefile vidix/Makefile vidix/drivers/Makefile

diego subversion at mplayerhq.hu
Sun Apr 1 01:48:48 CEST 2007


Author: diego
Date: Sun Apr  1 01:48:48 2007
New Revision: 22867

Removed:
   trunk/vidix/drivers/Makefile
Modified:
   trunk/Makefile
   trunk/vidix/Makefile

Log:
Merge all VIDIX drivers into libvidix.a.


Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile	(original)
+++ trunk/Makefile	Sun Apr  1 01:48:48 2007
@@ -110,7 +110,6 @@ MENCODER_DEPS = $(OBJS_MENCODER) $(OBJS_
 INSTALL_TARGETS-$(MPLAYER)  += install-mplayer  install-mplayer-man
 INSTALL_TARGETS-$(MENCODER) += install-mencoder install-mplayer-man
 INSTALL_TARGETS-$(GUI)      += install-gui
-INSTALL_TARGETS-$(VIDIX)    += install-vidix
 INSTALL_TARGETS             += $(INSTALL_TARGETS-yes)
 
 PARTS = libmpdemux \
@@ -137,7 +136,6 @@ PARTS = libmpdemux \
         tremor \
         libdha \
         vidix \
-        vidix/drivers \
         dvdread \
         libdvdcss \
         libass \
@@ -218,7 +216,6 @@ libdha/libdha.a:
 
 vidix/libvidix.a: libdha/libdha.a
 	$(MAKE) -C vidix
-	$(MAKE) -C vidix/drivers
 
 Gui/libgui.a:
 	$(MAKE) -C Gui
@@ -297,10 +294,6 @@ install-gui:
 	$(INSTALL) -d $(prefix)/share/applications
 	$(INSTALL) -m 644 etc/mplayer.desktop $(prefix)/share/applications/
 
-install-vidix:
-	mkdir -p $(LIBDIR)/mplayer/vidix
-	$(INSTALL) -m 755 $(INSTALLSTRIP) -p vidix/drivers/*.so $(LIBDIR)/mplayer/vidix
-
 uninstall:
 	-rm -f $(BINDIR)/mplayer$(EXESUF) $(BINDIR)/gmplayer$(EXESUF)
 	-rm -f $(BINDIR)/mencoder$(EXESUF)
@@ -314,8 +307,6 @@ uninstall:
 	          $(MANDIR)/$$l/man1/gmplayer.1 ; \
 	  fi ; \
 	done
-	rm -f $(LIBDIR)/mplayer/vidix/*.so
-	-rmdir -p $(LIBDIR)/mplayer/vidix
 
 dep depend: help_mp.h version.h codecs.conf.h
 	$(CC) -MM $(CFLAGS) $(SRCS_MPLAYER) $(SRCS_MENCODER) $(SRCS_COMMON) 1>.depend

Modified: trunk/vidix/Makefile
==============================================================================
--- trunk/vidix/Makefile	(original)
+++ trunk/vidix/Makefile	Sun Apr  1 01:48:48 2007
@@ -2,6 +2,19 @@ include ../config.mak
 
 LIBNAME_MPLAYER = libvidix.a
 
-SRCS_MPLAYER    = vidixlib.c
+SRCS_MPLAYER    = vidixlib.c \
+                  $(wildcard drivers/*.c)
+
+OBJS_MPLAYER    = drivers/mga_crtc2_vid.o \
+                  drivers/rage128_vid.o \
 
 include ../mpcommon.mak
+
+drivers/mga_crtc2_vid.o: drivers/mga_vid.c
+	$(CC) -c $(CFLAGS) -DCRTC2 -o $@ $<
+
+drivers/rage128_vid.o: drivers/radeon_vid.c
+	$(CC) -c $(CFLAGS) -DRAGE128 -o $@ $<
+
+clean::
+	rm -f drivers/*.o drivers/*~



More information about the MPlayer-cvslog mailing list