📄 makefile
字号:
## Makefile for the Linux kernel device drivers.## Note! Dependencies are done automagically by 'make dep', which also# removes any old dependencies. DON'T put your own dependencies here# unless it's something special (not a .c file).## Note 2! The CFLAGS definitions are now in the main makefile.#export KERNELSRC := /usr/src/linuxSUBDIRS := $(shell pwd)ifeq ($(KERNELSRC),) KERNELSRC ?= /lib/modules/$(shell uname -r)/buildendifall: progs modsmods: $(MAKE) -C $(KERNELSRC) SUBDIRS=$(shell pwd)/kernel modulesprogs: $(MAKE) -C usrinstall: kernel/iscsi_trgt.ko usr/ietd usr/ietadm @install -vD usr/ietd $(DISTDIR)/usr/sbin/ietd @install -vD usr/ietadm $(DISTDIR)/usr/sbin/ietadm if [ -f /etc/debian_version ]; then \ install -vD -m 755 etc/initd/initd.debian $(DISTDIR)/etc/init.d/iscsi-target; \ elif [ -f /etc/redhat-release ]; then \ install -vD -m 755 etc/initd/initd.redhat $(DISTDIR)/etc/init.d/iscsi-target; \ elif [ -f /etc/gentoo-release ]; then \ install -vD -m 755 etc/initd/initd.gentoo $(DISTDIR)/etc/init.d/iscsi-target; \ elif [ -f /etc/slackware-version ]; then \ install -vD -m 755 etc/initd/initd $(DISTDIR)/etc/rc.d/iscsi-target; \ else \ install -vD -m 755 etc/initd/initd $(DISTDIR)/etc/init.d/iscsi-target; \ fi @eval `sed -n 's/#define UTS_RELEASE /KERNELRELEASE=/p' $(KERNELSRC)/include/linux/version.h`; \ install -vD kernel/iscsi_trgt.ko \ $(DISTDIR)$(INSTALL_MOD_PATH)/lib/modules/$$KERNELRELEASE/kernel/iscsi/iscsi_trgt.ko -depmod -aqclean: $(MAKE) -C usr clean $(MAKE) -C $(KERNELSRC) SUBDIRS=$(shell pwd)/kernel clean
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -