本质上来说windows是没有make命令的,而真正和Linux中make命令有相同作用的是mingw32-make。我们为了使用方便可以直接把mingw32-make改为make。但是如果你在其它的编译软件中想要使用mingw32-make的时候记得把它改成make。
-
这两篇教程是比较好的,两个结合着看还是挺不错的。
(https://blog.csdn.net/nicholas_liu2017/article/details/78323391)
(https://blog.csdn.net/fuyanhuangyan/article/details/78671042) -
把他们的步骤总结一下就是
1、下载安装MinGW:https://osdn.net/projects/mingw/downloads/68260/mingw-get-setup.exe/
2、安装MinGW的时候选择Basic setup下选择mingw32-base包就可以了。
3、打开MinGW的安装目录,打开bin文件夹,将mingw32-make.exe重命名为make.exe。
4、设置环境变量,只需把bin文件夹的路径 C:\MinGW\bin 放到用户变量中去。
5、查看make是否安装成功: 在cmd中输入 make -v。
6、看到以下内容表示安装成功: GNU Make 3.82.90 Built for i686-pc-mingw32 Copyright (C) 1988-2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
另:Cygwin工具使用入门教程
https://blog.csdn.net/chunleixiahe/article/details/55666792
https://www.linuxidc.com/Linux/2019-02/156967.htm