forked from alinefr/rtbth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (30 loc) · 1.02 KB
/
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
#include config.mk
CONFIG_RTBTH = m
MOD_NAME = rtbth
MDIR = kernel/drivers/bluetooth
obj-$(CONFIG_RTBTH) := $(MOD_NAME).o
$(MOD_NAME)-objs := rtbth_core_main.o \
rtbth_core_init.o \
rtbth_core_pci.o \
rtbth_core_bluez.o \
rtbth_core_us.o \
rtbth_hlpr_hw.o \
rtbth_hlpr_dbg.o \
rtbth_hlpr_linux.o \
ccflags-y := -I$(src)/include
ccflags-y += -DDBG -DRT3298 -DRTBT_IFACE_PCI -DLINUX
MAKE = make
LINUX_SRC ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
all:
$(MAKE) -C $(LINUX_SRC) M=$(PWD) modules
clean:
$(MAKE) -C $(LINUX_SRC) M=$(PWD) clean
install:
#$(MAKE) INSTALL_MOD_PATH=$(DESTDIR) INSTALL_MOD_DIR=$(MDIR) \
# -C $(LINUX_SRC) M=$(PWD) modules_install
#depmod -a
#three lines commented for dkms arch linux package: it autoinstalls the module
install -m 0755 -o root -g root tools/49rtbt $(DESTDIR)/usr/lib/pm-utils/sleep.d/
install -m 0755 -o root -g root tools/rtbt $(DESTDIR)/usr/bin/
install -m 0644 -o root -g root tools/ralink-bt.conf $(DESTDIR)/etc/modprobe.d/