一个简单的MAKEFILE问题, 高手帮忙看一下.
MakeFile内容如下:
##############################################################################
# Makefile
##############################################################################
ifndef TOP
TOP = ..
CONFIG = $(TOP)/config
endif
include $(CONFIG)
############################# targets section ################################
# If you want to create a library with the objects files, define the name here
OBJS = test.o
TARGETS = test
all: default $(TARGETS)
######################### Makefile.rules section #############################
include $(TOP)/Makefile.rules
ifeq ($(SHAREDLIBS), Y)
LD_NANOXCLIENTLIBS = $(CCNANOXCLIENTLIBS)
else
LD_NANOXCLIENTLIBS = $(NANOXCLIENTLIBS)
endif
######################## Tools targets section ###############################
$(TARGETS): $(OBJS) $(NANOXCLIENTLIBS) $(TOP)/config
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(LD_NANOXCLIENTLIBS)
clr:
rm -f *.o *~ .depend $(TARGETS)
但make之后出现如下错误:
No rule to make target ` test ', needed by `test'.
不知道怎么修改,请指点一二,谢谢啦~!