📄 makefile
字号:
## Makefile for the Bluetooth device driver.#OBJS = bluetooth.o bt_proc.o btdebug.o btmem.o hci.o hci_vendor.o \ l2cap.o l2cap_con.o l2cap_sec.o rfcomm.o rfcomm_sec.o \ sec_client.o sdp.o tcs.o test.oTOBJS = unplug_test.oBOBJS = bcsp.o bcsp_datagram.o bcsp_integrity.o bcsp_mux.o \ bcsp_sequence.o bcsp_slip.oifeq ($(TOPDIR)/Rules.make,$(wildcard $(TOPDIR)/Rules.make))#---------------------------------------------------------------------# Kernel makefile rules. They should work with both old style makefiles# for 2.0.x and 2.2.x, and with the new style makefiles from 2.4.x#---------------------------------------------------------------------O_TARGET := bt.o# For 2.4.xobj-$(CONFIG_BLUETOOTH) += $(OBJS)obj-$(CONFIG_BLUETOOTH_UNPLUG_TEST) += $(TOBJS)obj-$(CONFIG_BLUETOOTH_SUPPORT_BCSP) += $(BOBJS)# For 2.0.x and 2.2.xO_OBJS = $(OBJS)ifdef CONFIG_BLUETOOTH_UNPLUG_TESTO_OBJS += $(TOBJS)endififdef CONFIG_BLUETOOTH_SUPPORT_BCSPO_OBJS += $(BOBJS)endifM_OBJS = $(O_TARGET)include $(TOPDIR)/Rules.makeelse#---------------------------------------------------------------------# Standalone makefile rules#---------------------------------------------------------------------# Use 'make INCLUDE_BCSP_SUPPORT=1' to enable support for BCSP.INCLUDE_BCSP_SUPPORT = 0# Use 'make INCLUDE_UNPLUG_TEST=1' to enable the unplug testcases.INCLUDE_UNPLUG_TEST = 0# The INCLUDEDIR variable allows LSB compliant distros to be able to compile# the module correctly. Use 'make INCLUDEDIR=/usr/src/linux/include' where# /usr/src/linux/include is the directory that was used to build the kernel.INCLUDEDIR = /usr/includeCC = $(CROSSCOMPILE)gccLD = $(CROSSCOMPILE)ldO_TARGET := bt.oMODFLAGS = -DMODVERSIONS -include $(INCLUDEDIR)/linux/modversions.hCFLAGS = -D__KERNEL__ -DMODULE -I../../../include -I$(INCLUDEDIR) -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce $(MODFLAGS) -MDifeq ($(INCLUDE_UNPLUG_TEST),1)OBJS += $(TOBJS)CFLAGS += -DCONFIG_BLUETOOTH_UNPLUG_TESTendififeq ($(INCLUDE_BCSP_SUPPORT),1)OBJS += $(BOBJS)CFLAGS += -DCONFIG_BLUETOOTH_SUPPORT_BCSPendifall: $(O_TARGET)$(O_TARGET): $(OBJS) $(LD) -r -o $@ $^install: allclean: rm -f *.o *.d core *~-include *.dendif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -