VerySource

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1449|回复: 3

VC++6.0中,如何使用makefile编译程序

[复制链接]

1

主题

2

帖子

3.00

积分

新手上路

Rank: 1

积分
3.00
发表于 2020-1-2 16:40:01 | 显示全部楼层 |阅读模式
NMAKE -f "test.mak" CFG="test - Debug "
就是这种,那里有相关的资料
回复

使用道具 举报

1

主题

27

帖子

24.00

积分

新手上路

Rank: 1

积分
24.00
发表于 2020-1-2 16:42:01 | 显示全部楼层
回复

使用道具 举报

0

主题

30

帖子

22.00

积分

新手上路

Rank: 1

积分
22.00
发表于 2020-1-2 23:15:01 | 显示全部楼层
Refers to MSDN:
================
Create a Project in the Development Environment That Can Be Built with NMAKE
There are two ways to export a makefile from the development environment. You can choose to export a makefile whenever you save a project, or export a makefile only for specific projects. Note that creating an export makefile increases project save time, and you should only do it when necessary.

The export makefile stores all the information required to build the project and can be used from the command line. The makefile specifies the same project build settings you set in the development environment. If you use NMAKE on the command line to build the project, the NMAKE syntax needed is given in the makefile as a comment that begins !MESSAGE NMAKE. For example, for a file test.mak the NMAKE syntax line is:

!MESSAGE NMAKE /f "test.mak" CFG="test - Win32 Debug"
To export an NMAKE makefile whenever you save a project

From the Tools menu, click Options.
The Options dialog box appears.

On the Options dialog box, click the Build tab.


Select the Always export makefile when saving project option.


Click OK.
To export an NMAKE makefile for a particular project

Open the project.


From the Project menu, click Export Makefile.
A .MAK file with the project name is immediately created and saved to the project directory.

回复

使用道具 举报

0

主题

1

帖子

2.00

积分

新手上路

Rank: 1

积分
2.00
发表于 2020-9-4 22:45:01 | 显示全部楼层
疑问中.....
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

快速回复 返回顶部 返回列表