makefile

来自「ISP 1761 usb host driver for linux」· 代码 · 共 13 行

TXT
13
字号
TOPDIR=$(shell pwd)
TARGET=hal host
KERNEL_DIR=/usr/src/linux-${shell uname -r}
export $(KERNEL_DIR)

all:
	for i in $(TARGET); do make -C $(KERNEL_DIR) SUBDIRS=$(TOPDIR)/$$i modules 2>> warn.log; done 
	for i in $(TARGET); do cp -f $(TOPDIR)/$$i/*.ko $(TOPDIR)/objs; done
clean:
	for i in $(TARGET); do make -C $(TOPDIR)/$$i SUBDIRS=$(TOPDIR)/$$i clean; done
	rm -rf $(TOPDIR)/objs/hal_x86.ko $(TOPDIR)/objs/pehci.ko 
	rm -f warn.log

⌨️ 快捷键说明

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