プログラムのメイクファイルを作成しています。メインは on: twitServer.cpp とその using: Command.h Client.h
メイクファイルを作成しましたが、動作しないようです。私が理解するのを手伝ってもらえますか?
twitServer: twitServer.o Command.o Client.o
g++ -Wall -o twitServer.o Command.o Client.o twitServer
twitServer.o: twitServer.cpp Command.h Client.h
g++ -c -Wall twitServer.cpp
Command.o: Command.cpp Command.h
g++ -c -Wall Command.cpp
Client.o: Client.cpp Client.h
g++ -c -Wall Client.cpp
clean:
rm twitServer Client.o Command.o Client.o
私のエラーは次のとおりです: g++: twitServer: そのようなファイルまたはディレクトリはありません
私はすべてのファイルを取得しましたが: Client.cpp Client.o Command.h Makefile twitServer.cpp Client.h Command.cpp Command.o Makefile~ twitServer.o