2 # Makefile for the Linux Bluetooth subsystem
5 O_TARGET := bluetooth.o
8 export-objs := syms.o l2cap.o
10 bluez-objs := af_bluetooth.o hci_core.o hci_conn.o hci_event.o hci_sock.o lib.o syms.o
12 obj-$(CONFIG_BLUEZ) += bluez.o
13 obj-$(CONFIG_BLUEZ_L2CAP) += l2cap.o
14 obj-$(CONFIG_BLUEZ_SCO) += sco.o
16 subdir-$(CONFIG_BLUEZ_RFCOMM) += rfcomm
17 subdir-$(CONFIG_BLUEZ_BNEP) += bnep
18 subdir-$(CONFIG_BLUEZ_CMTP) += cmtp
20 ifeq ($(CONFIG_BLUEZ_RFCOMM),y)
21 obj-y += rfcomm/rfcomm.o
24 ifeq ($(CONFIG_BLUEZ_BNEP),y)
28 include $(TOPDIR)/Rules.make
30 bluez.o: $(bluez-objs)
31 $(LD) -r -o $@ $(bluez-objs)