static 问题

1 OBJT=animal.o fish.o Mainc.o
2 test:$(OBJT)
3 gcc $(OBJT) -o test
4 animal.o:animal.cpp animal.h
5 gcc -c animal.cpp
6 fish.o:fish.cpp fish.h animal.h
7 gcc -c fish.cpp
8 Mainc.o:Mainc.cpp animal.h fish.h
9 gcc -c Mainc.cpp
10 clean:
11 rm -f test *.o
12
这是我的makefile,一个make就各种错误,不知道make能不能编译C++
?????
附件:

Screenshot-1.png [ 19.82 KiB | 被浏览 17 次 ]

作者: Z_H_Z1102   发布时间: 2011-03-20

代码:
g++

作者: neaghfoz   发布时间: 2011-03-20