2 # Makefile for the Linux Bluetooth subsystem
5 O_TARGET := bluetooth.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
19 ifeq ($(CONFIG_BLUEZ_RFCOMM),y)
20 obj-y += rfcomm/rfcomm.o
23 ifeq ($(CONFIG_BLUEZ_BNEP),y)
27 include $(TOPDIR)/Rules.make
29 bluez.o: $(bluez-objs)
30 $(LD) -r -o $@ $(bluez-objs)