在Windows下使用gcc生成makefile [英] Generate makefile using gcc under Windows

查看:456
本文介绍了在Windows下使用gcc生成makefile的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设法安装了Cygwin和gcc,因此在硬件就绪后将其移植到Solaris之前,可以在PC上编译我们非常庞大且结构不规则的C ++项目.

现在有人告诉我一种生成Makefile的简单方法(不涉及输入3000个文件名).我可以使用Visual SourceSafe制作的vssscc文件吗?有一个自动制作软件,但据我所知,它要我完成所有工作.

我检查了很多网站,告诉您如何操作.每个人都讲述一个不同的故事.如果我只是键入automake,我会得到很多有关在configure.ac中尝试的东西的有用评论,但是肯定有比这更快的方法.

I managed to install Cygwin and gcc, so I can compile our very large and irregularly structured C++ project here on the PC before I port it to Solaris when the hardware is ready.

Now someone tell me an easy way to generate a makefile (which does not involve typing in 3000 filenames). Can I use the vssscc files made by Visual SourceSafe? There is an automake, but as far as I can see it wants me to do all the work.

I checked out a lot of sites that tell you how to do it. Every one tells a different story. If I just type automake I get a lot of helpful comments about things to try in configure.ac, but there must be a quicker way than this...

推荐答案

该链接可能会有所帮助:
http://www.gamedev.net/topic/496969-auto -generate-gcc-makefile-for-huge-project/ [ http://netbeans.org /community/releases/60/cpp-setup-instructions.html [
This link may be helpful:
http://www.gamedev.net/topic/496969-auto-generate-gcc-makefile-for-huge-project/[^]

Have you considered an IDE like Eclipse or Netbeans? Here''s a link to Netbeans describing how to use it with GCC: http://netbeans.org/community/releases/60/cpp-setup-instructions.html[^]


仔细思考了几个小时后,我意识到我将不得不输入所有这些文件名.好吧,复制并粘贴它们.

由于无论如何我们将在Solaris机器上使用Eclipse,也许我应该只在PC上安装Eclipse,然后再也不用再搞乱了. OK,下载一个不错的新Eclipse ...
After pondering autohell for a few hours I realise I am going to have to type in all those file names after all. Well, copy and paste them.

Since we are going to use Eclipse on the Solaris machine anyway, maybe I should just install Eclipse here on my PC and stop messing about. OK, download a nice new Eclipse...


这篇关于在Windows下使用gcc生成makefile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆