makefile

来自「上传linux-jx2410的源代码」· 代码 · 共 44 行

TXT
44
字号
## linux/arch/arm/tools/Makefile## Copyright (C) 2001 Russell King#all:	$(TOPDIR)/include/asm-arm/mach-types.h \	$(TOPDIR)/include/asm-arm/constants.h$(TOPDIR)/include/asm-arm/mach-types.h: mach-types gen-mach-types	awk -f gen-mach-types mach-types > $@# Generate the constants.h header file using the compiler.  We get# the compiler to spit out assembly code, and then mundge it into# what we want.  We do this in several stages so make picks up on# any errors that occur along the way.constants.h: constants-hdr getconstants.c	$(CC) $(CFLAGS) -S -o $@.tmp.1 getconstants.c	sed 's/^\(#define .* \)[#$$]\(.*\)/\1\2/;/^#define/!d' $@.tmp.1 > $@.tmp.2	cat constants-hdr $@.tmp.2 > $@	$(RM) $@.tmp*# Only update include/asm-arm/constants.h when it has actually changed.$(TOPDIR)/include/asm-arm/constants.h: constants.h	cmp constants.h $@ >/dev/null 2>&1 || cp -p constants.h $@# Build our dependencies, and then generate the constants and# mach-types header files.  If we do it now, mkdep will pick# the dependencies up later on when it runs through the other# directoriesdep:	$(TOPDIR)/scripts/mkdep $(CFLAGS) $(EXTRA_CFLAGS) -- getconstants.c |\	 sed s,getconstants.o,constants.h, > .depend	$(MAKE) all.PHONY:	all depifneq ($(wildcard .depend),)include .dependendif

⌨️ 快捷键说明

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