请教各位大神,cygwin下makefile中的recipe for target 'all' failed是什么原因?
Makefile:
CC=gcc
TARGET=tdd.exe
OBJ=*.o
SRC=ledDriver/ledDriverTest.c\
ledDriver/ledDriverTestRunner.c\
unity/src/unity.c\
unity/extras/fixture/src/unity_fixture.c\
AllTest.c
INCLUDE=-Iunity/extras/fixture/src -Iunity/src
SYMBOLS=-c -w
all:$(TARGET)
./$(TARGET)
$(TARGET):$(OBJ)
$(CC) -o $(TARGET) $(OBJ)
$(OBJ):$(SRC)
$(CC) $(INCLUDE) $(SYMBOLS) $(SRC)
.PHONY:clean
clean:
rm -rf $(TARGET) $(OBJ)
make结果:
$ make
gcc -Iunity/extras/fixture/src -Iunity/src -c -w ledDriver/ledDriverTest.c ledDriver/ledDriverTestRunner.c unity/src/unity.c unity/extras/fixture/src/unity_fixture.c AllTest.c
gcc -o tdd.exe *.o
./tdd.exe
Unity test run 1 of 1
.ledDriver/ledDriverTest.c:24:TEST(ledDriver, ledsOffAfterCreate):FAIL: Start here
-----------------------
1 Tests 1 Failures 0 Ignored
FAIL
Makefile:15: recipe for target 'all' failed
make: *** [all] Error 1