有关make文件
bobox 2004-12-22 04:24:58 有下面的make文件内容,在redhat linux编译没有问题,在Solaris下编译出错
ifdef USER_DEPTH
SRC_ROOT=$(USER_DEPTH)
include $(SRC_ROOT)/config/makeinclude/macros.make
include $(SRC_ROOT)/config/makeinclude/rules.make
else
all clean: echo_error
endif # USER_DEPTH
echo_error:
@echo "Error, Makefile must define USER_DEPTH."
将上面的ifdef else endif等句注释后却可以,请各位赐教