c++ Makefile demo
there are three files: T.h , T.cpp and main.cpp .I wanna get a executive file named demo,I can vi this Makefile as follows:
- demo:main.o T.o
- g++ *.o -o demo
- T.o:T.h T.cpp
- g++ -c T.cpp
- main.o:main.cpp
- g++ -c main.cpp
- #T.o:T.h T.cpp
- # g++ -c T.cpp
- clean:
- rm -f *.o