]> rtime.felk.cvut.cz Git - mirosot.git/blobdiff - bluetooth/Makefile.omk
Disabled building of bluetooth by default
[mirosot.git] / bluetooth / Makefile.omk
index 077597f50aa1e519d565e3b627493800188f5622..6654773bbe30946d767713d664fb79c19a41d976 100644 (file)
@@ -1,18 +1,23 @@
 # -*- makefile -*-
 
-#bin_PROGRAMS  = bth_comp2 bth_comp1
+default_CONFIG += CONFIG_BLUETOOTH=n
+default_CONFIG += CONFIG_BLUETOOTH_LINUX=n
 
-#bth_comp1_SOURCES = main.c bth_main.c bth_command.c bth_event_acc.c bth_error.c bth_cmd_complete_ev.c l2cap.c bth_inface.c h2638_pkt_controll.c
-#bth_comp1_LIBS = boot_fn arch_drivers excptvec misc pxmc m sci_channels
-#bth_comp1_MOREOBJS = $(USER_LIB_DIR)/system_stub.o
+ifeq (y,$(if $(filter y,$(CONFIG_BLUETOOTH) $(CONFIG_BLUETOOTH_LINUX)),y,n))
 
-#bth_comp2_SOURCES = main.c 
-#bth_comp2_LIBS = boot_fn arch_drivers excptvec misc pxmc m sci_channels bluetooth
-#bth_comp2_MOREOBJS = $(USER_LIB_DIR)/system_stub.o
+lib_LIBRARIES = mirobt
 
-lib_LIBRARIES = bluetooth
+mirobt_SOURCES = bth_command.c bth_event_acc.c bth_error.c \
+bth_cmd_complete_ev.c l2cap.c bth_inface.c bth_main.c 
 
-bluetooth_SOURCES = bth_command.c bth_event_acc.c bth_error.c bth_cmd_complete_ev.c l2cap.c bth_inface.c bth_main.c h2638_pkt_controll.c
+ifeq ($(CONFIG_BLUETOOTH_LINUX),y)
+mirobt_SOURCES += hci_bluez.c fake_pkt_controll.c
+else
+mirobt_SOURCES += hci_sci.c h2638_pkt_controll.c
+endif
 include_HEADERS = bth_inface.h bth_fce_out.h bth_h8s2638.h
 
-default_CONFIG = CONFIG_BLUETOOTH=y
\ No newline at end of file
+config_include_HEADERS = bth_config.h
+bth_config_DEFINES = $(default_CONFIG)
+
+endif