谁能帮我解读一下linux下makefiles文件

来源:百度知道 编辑:UC知道 时间:2024/05/30 22:56:40
谁能帮我解读一下linux下makefiles文件,或者谁能提供一下参考资料,其
makefile的语法我都知道,但就是看不懂!
VERSION = 1
PATCHLEVEL = 0
ALPHA =
all: Version zImage
.EXPORT_ALL_VARIABLES:
CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
else if [ -x /bin/bash ]; then echo /bin/bash; \
else echo sh; fi ; fi)

#
# Make "config" the default target if there is no configuration file or
# "depend" the target if there is no top-level dependency information.
#
ifeq (.config,$(wildcard .config))
include .config
ifeq (.depend,$(wildcard .depend))
include .depend
else
CONFIGURATION = depend
endif
else
CONFIGURATION = config
endif

ifdef CONFIGURATION
CONFIGURE = dummy
endif

........................................

出现这种提示就应该是没有GCC。
请你说明你安装的GCC-4.1.1是原代码文件还是已经编译好的?如果是原代码的文件,安装时也是要GCC的,你没有安装GCC,当然也是安不上的。
也就是说,不论你安装什么软件,只要是原代码文件,就必须要有GCC的。