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

📄 makefile

📁 嵌入式处理器
💻
字号:
# To build modules outside of the kernel tree, we run "make"# in the kernel source tree; the Makefile these then includes this# Makefile once again.# This conditional selects whether we are being included from the# kernel Makefile or not.CROSS_COMPILE = arm-linux-#CROSS_COMPILE = /opt/host/armv4l/bin/armv4l-unknown-linux-CC              = $(CROSS_COMPILE)gccSTRIP           = $(CROSS_COMPILE)strip#CFLAGS          = -O2ifeq ($(KERNELRELEASE),)    # Assume the source tree is where the running kernel was built    # You should set KERNELDIR in the environment if it's elsewhere    KERNELDIR ?= ~/linux-2.6.9    # The current directory is passed to sub-makes as argument    PWD := $(shell pwd)all:	modulesmodules:	$(MAKE) -C $(KERNELDIR) M=$(PWD) modulesmodules_install:	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules_installclean:	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions $(TARGET).PHONY: modules modules_install cleanelse    # called from kernel build system: just declare what our modules are    obj-m := pc104drv_io_int.oendif

⌨️ 快捷键说明

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