makefile

来自「嵌入式linux 开发板驱动程序」· 代码 · 共 19 行

TXT
19
字号
# Makefile2.6
ifneq ($(KERNELRELEASE),)
#kbuild syntax. dependency relationshsip of files and target modules are listed here.
#mymodule-objs := file1.o file2.o
obj-m := pd6700.o #smdk2440_ov7620.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/gec2410-linux_2.6.8.1/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 + -
显示快捷键?