1# 2# Makefile for the Linux Bluetooth subsystem 3# 4 5O_TARGET := bluetooth.o 6 7list-multi := bluez.o 8export-objs := syms.o l2cap.o 9 10bluez-objs := af_bluetooth.o hci_core.o hci_conn.o hci_event.o hci_sock.o lib.o syms.o 11 12obj-$(CONFIG_BLUEZ) += bluez.o 13obj-$(CONFIG_BLUEZ_L2CAP) += l2cap.o 14obj-$(CONFIG_BLUEZ_SCO) += sco.o 15 16subdir-$(CONFIG_BLUEZ_RFCOMM) += rfcomm 17subdir-$(CONFIG_BLUEZ_BNEP) += bnep 18subdir-$(CONFIG_BLUEZ_CMTP) += cmtp 19 20ifeq ($(CONFIG_BLUEZ_RFCOMM),y) 21obj-y += rfcomm/rfcomm.o 22endif 23 24ifeq ($(CONFIG_BLUEZ_BNEP),y) 25obj-y += bnep/bnep.o 26endif 27 28include $(TOPDIR)/Rules.make 29 30bluez.o: $(bluez-objs) 31 $(LD) -r -o $@ $(bluez-objs) 32