forked from lecotex/vtuner.linux-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (35 loc) · 898 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
# Makefile for the vtunerc device driver
#
VTUNERC_MAX_ADAPTERS ?= 4
vtunerc-objs = vtunerc_main.o vtunerc_ctrldev.o vtunerc_proxyfe.o
CONFIG_DVB_VTUNERC ?= m
obj-$(CONFIG_DVB_VTUNERC) += vtunerc.o
ccflags-y += -Idrivers/media/dvb-core
ccflags-y += -Idrivers/media/dvb/dvb-core
ccflags-y += -Idrivers/media/dvb/frontends
ccflags-y += -Idrivers/media/common/tuners
ccflags-y += -Iinclude
ccflags-y += -DVTUNERC_MAX_ADAPTERS=$(VTUNERC_MAX_ADAPTERS)
#
# for external compilation
#
#KDIR ?= /usr/src/`uname -r`
ifeq ($(origin KDIR), undefined)
KDIR = /usr/src/linux-$(shell uname -r)
ifeq "$(wildcard $(KDIR) )" ""
KDIR = /usr/src/$(shell uname -r)
endif
ifeq "$(wildcard $(KDIR) )" ""
KDIR = /usr/src/kernels/$(shell uname -r)
endif
endif
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
clean:
rm -f *.o
rm -f *.ko
rm -f *.mod.c
rm -f .*.cmd
rm -f *~