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

📄 makefile

📁 Linux内核源代码 为压缩文件 是<<Linux内核>>一书中的源代码
💻
字号:
CFLAGS	= -g -O2 -Wall $(CPPFLAGS)TARGET	= $(TOPDIR)/include/asm-ia64/offsets.hall: mrproper:clean:	rm -f print_offsets.s print_offsets offsets.hfastdep: offsets.h	@if ! cmp -s offsets.h ${TARGET}; then	\		echo -e "*** Updating ${TARGET}...";	\		cp offsets.h ${TARGET};		\	else					\		echo "*** ${TARGET} is up to date";	\	fi## If we're cross-compiling, we use the cross-compiler to translate# print_offsets.c into an assembly file and then awk to translate this# file into offsets.h.  This avoids having to use a simulator to# generate this file.  This is based on an idea suggested by Asit# Mallick.  If we're running natively, we can of course just build# print_offsets and run it. --davidm#ifeq ($(CROSS_COMPILE),)offsets.h: print_offsets	./print_offsets > offsets.hprint_offsets: print_offsets.c FORCE_RECOMPILE	$(CC) $(CFLAGS) print_offsets.c -o $@FORCE_RECOMPILE:elseoffsets.h: print_offsets.s	$(AWK) -f print_offsets.awk $^ > $@print_offsets.s: print_offsets.c	$(CC) $(CFLAGS) -S print_offsets.c -o $@endif.PHONY: all modules modules_install

⌨️ 快捷键说明

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