⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 uccos2的的源码文件
💻
字号:
# Makefile2.6
ifneq ($(KERNELRELEASE),)
#kbuild syntax. dependency relationshsip of files and target modules are listed here.
can_module-objs :=  SJA1000.o  can_sja1000_dev.o 
obj-m := can_module.o
else
PWD  := $(shell pwd)

# where the kernel sources are located
KERNEL_DIR :=/usr/local/src/gec2410-linux-2.6.8.1/

#KVER ?= $(shell uname -r)
#KDIR :=/usr/local/src/linux_2.6.12/lib/modules/$(KVER)/build
all:
	#$(MAKE) -C $(KDIR) M=$(PWD) 
	cd $(KERNEL_DIR); make SUBDIRS=$(PWD) modules
clean:
	rm -rf .*.cmd *.o *.mod.c *.ko .tmp_versions
endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -