[Mplayer-cvslog] CVS: main/drivers Makefile,1.3,1.4

Arpi of Ize arpi at mplayer.dev.hu
Wed Dec 26 16:49:48 CET 2001


Update of /cvsroot/mplayer/main/drivers
In directory mplayer:/var/tmp.root/cvs-serv321

Modified Files:
	Makefile 
Log Message:
install: target added, based on patch by Jukka Tastula <jukka.tastula at kotinet.com>

Index: Makefile
===================================================================
RCS file: /cvsroot/mplayer/main/drivers/Makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Makefile	28 Jul 2001 05:36:45 -0000	1.3
+++ Makefile	26 Dec 2001 15:49:45 -0000	1.4
@@ -2,6 +2,8 @@
 KERNEL_INCLUDES = /usr/src/linux/include
 INCLUDES = -I$(KERNEL_INCLUDES)
 CFLAGS = -g -O2  -Wall -D__KERNEL__  -DMODULE  	 -include $(KERNEL_INCLUDES)/linux/modversions.h
+VERSION = $(shell grep UTS_RELEASE $(KERNEL_INCLUDES)/linux/version.h | cut -d '"' -f2)
+MDIR = /lib/modules/$(VERSION)/misc
 
 all: mga_vid.o mga_vid_test
 # sis_vid.o
@@ -14,6 +16,11 @@
 
 mga_vid_test: mga_vid_test.c
 	$(CC) -g -O -Wall $(INCLUDES) -o $@ $@.c
+
+install: mga_vid.o
+	if test ! -d $(MDIR) ; then mkdir -p $(MDIR) ; fi
+	install -m 644 mga_vid.o $(MDIR)/mga_vid.o
+	depmod -a
 
 dep:
 




More information about the MPlayer-cvslog mailing list