makefile

来自「uccos2的的源码文件」· 代码 · 共 20 行

TXT
20
字号
# 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 + =
减小字号Ctrl + -
显示快捷键?