当前位置: 技术问答>linux和unix
makefile编译出错
来源: 互联网 发布时间:2017-05-02
本文导语: 我的makefile Makefile.mk all:directory_server file_server1 client1 directory_server:directory_server.c cc -o directory_server directory_server.c -lsocket -lnsl -lresolv file_server1:file_server1.c cc -o file_server1 file_server1.c -lsocket -lnsl -lresolv client1:cli...
我的makefile Makefile.mk
all:directory_server file_server1 client1
directory_server:directory_server.c
cc -o directory_server directory_server.c -lsocket -lnsl -lresolv
file_server1:file_server1.c
cc -o file_server1 file_server1.c -lsocket -lnsl -lresolv
client1:client1.c
cc -o client1 client1.c -lsocket -lnsl -lresolv
用make -f Makefile.mk之后出现错误Don't know how to make target 'directory_server.c'。cc前面是用的windows下的。本人新手,求高手指教啊
all:directory_server file_server1 client1
directory_server:directory_server.c
cc -o directory_server directory_server.c -lsocket -lnsl -lresolv
file_server1:file_server1.c
cc -o file_server1 file_server1.c -lsocket -lnsl -lresolv
client1:client1.c
cc -o client1 client1.c -lsocket -lnsl -lresolv
用make -f Makefile.mk之后出现错误Don't know how to make target 'directory_server.c'。cc前面是用的windows下的。本人新手,求高手指教啊
|
查看是不是文件名写错了, 提示信息很明确, 就是当前文件夹下没找到这个文件。