]> rtime.felk.cvut.cz Git - mirosot.git/blob - bluetooth/Makefile.omk
ae3373166106090d29290634ee9c7d853a1ef1f5
[mirosot.git] / bluetooth / Makefile.omk
1 # -*- makefile -*-
2
3 #bin_PROGRAMS  = bth_comp2 bth_comp1
4
5 #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
6 #bth_comp1_LIBS = boot_fn arch_drivers excptvec misc pxmc m sci_channels
7 #bth_comp1_MOREOBJS = $(USER_LIB_DIR)/system_stub.o
8
9 #bth_comp2_SOURCES = main.c 
10 #bth_comp2_LIBS = boot_fn arch_drivers excptvec misc pxmc m sci_channels bluetooth
11 #bth_comp2_MOREOBJS = $(USER_LIB_DIR)/system_stub.o
12
13 lib_LIBRARIES = mirobt
14
15 mirobt_SOURCES = bth_command.c bth_event_acc.c bth_error.c \
16 bth_cmd_complete_ev.c l2cap.c bth_inface.c bth_main.c 
17
18 ifeq ($(CONFIG_BLUETOOTH_LINUX),y)
19 mirobt_SOURCES += hci_bluez.c fake_pkt_controll.c
20 else
21 mirobt_SOURCES += hci_sci.c h2638_pkt_controll.c
22 endif
23 include_HEADERS = bth_inface.h bth_fce_out.h bth_h8s2638.h
24
25 default_CONFIG += CONFIG_BLUETOOTH=y
26 default_CONFIG += CONFIG_BLUETOOTH_LINUX=n
27
28 config_include_HEADERS = bth_config.h
29 bth_config_DEFINES = $(default_CONFIG)