makefile

来自「MINIX2.0操作系统源码 MINIX2.0操作系统源码」· 代码 · 共 24 行

TXT
24
字号
# Master Makefile to compile everything in /usr/src except the kernel.

MAKE	= exec make -$(MAKEFLAGS)

usage:
	@echo "Usage:" >&2
	@echo "	make all        # Compile everything" >&2
	@echo "	make world      # Install the result (run as bin!)" >&2
	@echo "	make clean      # Remove all compiler results" >&2
	@echo "	(Run 'make' in tools to make a kernel)" >&2; exit 1

world:	install

install clean::
	cd lib && $(MAKE) $@	# Libraries first!

all::
	@echo "Are the libraries up to date?"; sleep 2

all install clean::
	cd boot && $(MAKE) $@
	test ! -d commands || { cd commands && $(MAKE) $@; }
	cd tools && $(MAKE) $@

⌨️ 快捷键说明

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