开发者

From nmake: "no rule to make target `*.rc'"

I am in the process of trying to build putty tray, a variant of putty, from source on a Windows 7 system. I need to build it, not just download it, because I need to implement some additional functionality. I'm using nmake and (shoul开发者_Python百科dn't be relevant) the Microsoft C++ compiler. To be precise, I'm working in a cmd window, I'm in the WINDOWS folder of the putty sources, and I'm running the command nmake -f MAKEFILE.VC.

C sources are compiling correctly, but then I'm running into an error that I don't understand:

no rule to make target `*.rc' needed by `pageant.res'

I understand perfectly well what it would mean if it said it couldn't make a particular file: it would mean the file was missing. But I don't get how this makes sense with a wild card.

The presumably relevant part of MAKEFILE.VC is

pageant.res: *.c *.h *.rc ..\windows\pageant.rc ..\windows\rcstuff.h \
                ..\windows\pageant.ico ..\windows\pageants.ico \
                ..\windows\version.rc2 ..\windows\pageant.mft
        rc $(RCFL) -r $(RCFLAGS) ..\windows\pageant.rc

And, yes, there are *.rc files in the folder: PAGEANT.RC, PLINK.RC, PSCP.RC, PSFTP.RC, PUTTY.RC, PUTTYTEL.RC

Any ideas?


Have you considered trying gmake instead of nmake?

Much of the makefile-driven open source project world finds nmake too limiting and has standardized on the Gnu's gmake as a much better tool. I haven't checked to be sure, but this has the feel of an nmake limitation and PuTTY is certainly the sort of project that would use gmake.

A good place to find a native Windows build of gmake is at the GnuWin32 project. Check out the other packages available there. They are a good source of native Windows builds of a lot of the familiar and useful Gnu tools. They have an advantage over projects like Cygwin that their tools work at the normal CMD prompt, and don't require installation beyond having their bin folder in your PATH, which their nice Windows installer will take care of for you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜