请问:Makefile.inc是什么文件?
跟一般的makefile有什么不同?是不是还有makefile.***(其他后缀名)?以下是一个Makefile.inc,请问是什么意思呢?
# The PLATFORM defined in build/platform-name
UNAME=$(shell uname -a)
ARCH=i386
ifneq (,$(findstring sparc,$(UNAME)))
export ARCH=sparc
endif
OTHER_FLAGS += -DBUILD_VERSION='"$(VERSION)"' 还有一下这个makefile又是什么意思呢?特别是在最后几行,$(MAKE)和$(BUILDDIR)是什么意思啊?怎么前面都没有出现MAKE和BUILDDIR呢?
BUILDDIR=$(shell pwd)
TOP=../..
PLATFORM=linux
export LANG=C
UNAME=$(shell uname -a)
ifneq (,$(findstring Linux,$(UNAME)))
export PLATFORM=linux
endif
SUBDIRS = \
$(TOP)/tools/preverifier/build/linux \
$(TOP)/api \
ifeq ($(DEBUG), true)
SUBDIRS += $(TOP)/tools/kdp
endif
ifneq ($(ROMIZING), false)
SUBDIRS += $(TOP)/tools/jcc
endif
SUBDIRS += $(TOP)/kvm/VmUnix/build
all clean : FORCE
@for i in $(SUBDIRS) ; do \
echo ">>>Recursively making "$$i" "$@"..."; \
cd $$i; $(MAKE) $@ \
|| exit 1; cd $(BUILDDIR); \
echo "<<<Finished Recursively making "$$i" "$@"." ; \
done
FORCE:
页:
[1]