summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-09-02 14:54:29 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-09-02 14:54:29 +0200
commit70bc836e3ff32ef8e22d6dffb2d7b2ac71ed746a (patch)
tree4f7799d231b28839d1ad0d19d6e01153703cd591 /Makefile
parent2ffcc66af2cb3f379fd8445c019b0cac1c2cc275 (diff)
downloadvdr-70bc836e3ff32ef8e22d6dffb2d7b2ac71ed746a.tar.gz
vdr-70bc836e3ff32ef8e22d6dffb2d7b2ac71ed746a.tar.bz2
Adjusted the Makefile to the dvb-kernel driver on kernel 2.6 and up
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 62d8d166..b268a788 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
-# $Id: Makefile 1.78 2005/09/02 13:37:51 kls Exp $
+# $Id: Makefile 1.79 2005/09/02 14:23:38 kls Exp $
.DELETE_ON_ERROR:
@@ -14,7 +14,16 @@ CFLAGS ?= -O2
CXX ?= g++
CXXFLAGS ?= -fPIC -g -O2 -Wall -Woverloaded-virtual
-DVBDIR = ../DVB
+LINUX_VERSION := $(shell uname -r | cut -c-3)
+LINUX := $(shell uname -r)
+DVBDIR := /lib/modules/$(LINUX)/build
+ifeq ($(LINUX_VERSION), 2.4)
+ DVBDIR = ../DVB
+endif
+ifeq ($(LINUX_VERSION), 2.2)
+ DVBDIR = ../DVB
+endif
+
LSIDIR = ./libsi
MANDIR = /usr/local/man
BINDIR = /usr/local/bin