-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
56 lines (43 loc) · 1020 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
46
47
48
49
50
51
52
53
54
55
#
#
#
FIRMWARE_DIR = /lib/firmware/rtl_bt
lib = \
lib/bluetooth.o \
lib/hci.o \
lib/sdp.o
hciattach-objs = \
hciattach.o \
hciattach_ath3k.o \
hciattach_bcm43xx.o \
hciattach_intel.o \
hciattach_qualcomm.o \
hciattach_st.o \
hciattach_ti.o \
hciattach_tialt.o \
hciattach_rtk.o
hciconfig-objs = \
hciconfig.o \
csr.o
hcitool-objs = \
hcitool.o \
src/oui.o
CFLAGS = -I. -Ilib -Wall
all: hciattach hciconfig hcitool
hciattach: $(hciattach-objs) $(lib)
$(CC) -o $@ $^
hciconfig: $(hciconfig-objs) $(lib)
$(CC) -o $@ $^
hcitool: $(hcitool-objs) $(lib)
$(CC) -o $@ $^
clean:
-rm -f hciattach $(hciattach-objs)
-rm -f hciconfig $(hcicofig-objs)
-rm -f hcitool $(hcitool-objs)
-rm -f $(lib)
install: hciattach hciconfig hcitool
install -m 755 hciattach $(DESTDIR)/usr/sbin/hciattach
install -m 755 hciconfig $(DESTDIR)/usr/sbin/hciconfig
install -m 755 hcitool $(DESTDIR)/usr/bin/hcitool
mkdir -p $(DESTDIR)$(FIRMWARE_DIR) && \
install -m 644 rtl8723b_fw.bin $(DESTDIR)$(FIRMWARE_DIR)