分页: 1 / 1

c2make--Makefile创建者

发表于 : 2010-06-01 20:06
ubuntu-mm
c2make 创建者,是一款根据源文件直接生成Makefile文件的得力助手工具,可以用于C、C++、GTK+、Gtkmm、Motif、wxWidget以及OpenGL程序开发。

c2make Source Forge 主页:http://sourceforge.net/projects/c2make/files/

示例:
// mytest.c
#include <stdio.h>
#include <math.h>

int main()
{
double s = sqrt(9);
printf("s = %f\n", s);
return 0;
}

您可以去附件中下载,然后安装。打开终端,进入mytest.c所在目录,使用以下命令:
c2make mytest "" -lm

即可。

GTK+程序hello.c示例:
编辑一个GTK+程序(前提是您的电脑上必须安装Gtk+开发环境),然后打开终端进入到hello.c所在目录中:
$c2make hello "" ""
c2make (2.10.05-7)
C2make Builder, is a helpful assistant tool which can create the Makefile from the source files directly when you do C, C++, GTK+, Gtkmm, Motif, wxWidget and OpenGL programming.
Copyright (C) 2010 Chinsoft Studio.

Written by young <[email protected]> on May 27th, 2010.

--------Menu-------
1---c program
2---c++ program
3---gtk+ program
4---gtkmm program
5---motif program
6---wxWidget program
7---OpenGL program
-------------------

please choose a type of the program:
3

create the file makefile successfully!
$make

到此完成GTK+程序hello.c的编译。

如果您想了解c2make的使用方法,可以在终端中输入:
man c2make

c2make-2.10.05-7.tar.gz 文件已经上传了,下载完毕后,使用以下命令编译:
tar -xvzf c2make-2.10.05-7.tar.gz
cd c2make-2.10.05-7
./configure
make

安装:
sudo make install

卸载:
sudo make uninstall

--------------------------------------------------------分割线---------------------------------------------------------------------------------------
c2make-2.10.06-8.tar.gz,该版本已添加安装与卸载功能。此外,该版本tar包中添加了MAN手册文件c2make.1。下载后,请使用以下命令编译:
tar -xvzf c2make-2.10.06-8.tar.gz
cd c2make-2.10.06-8
./configure
make

安装:
sudo make install

卸载:
sudo make uninstall

示例工程mytest:
1.生成Makefile文件
cd ~/workspace/cprograms/mytest
c2make mytest "" ""

2.安装
cd ~/workspace/cprograms/mytest
sudo make install

3.卸载
cd ~/workspace/cprograms/mytest
sudo make uninstall

Re: c2make--Makefile创建者

发表于 : 2010-06-02 22:03
i_NIX
这个东西是好还是坏呢?

Re: c2make--Makefile创建者

发表于 : 2010-06-03 10:47
lgxwqq
试试,希望能用上 :em06

Re: c2make--Makefile创建者

发表于 : 2010-06-03 13:01
UserLogin
is it available for lucid 64bit?

Re: c2make--Makefile创建者

发表于 : 2010-06-03 19:23
ubuntu-mm
回复 :4 楼 UserLogin

上面的Debian包是在Ubuntu 9.10 32bits上编译生成的,可能在Ubuntu 10.04上无法运行(内核版本不同)。
我会尽快将标准的tar.gz包上传上来,供大家下载!

Re: c2make--Makefile创建者

发表于 : 2010-06-03 19:25
ubuntu-mm
i_NIX 写了:这个东西是好还是坏呢?
写这个工具,就是免去手写Makefile文件,根据源代码直接生成Makefile文件,然后运行make命令便可编译工程。

Re: c2make--Makefile创建者

发表于 : 2010-06-03 19:25
ubuntu-mm
lgxwqq 写了:试试,希望能用上 :em06
谢谢支持!

Re: c2make--Makefile创建者

发表于 : 2010-06-03 19:26
ubuntu-mm
UserLogin 写了:is it available for lucid 64bit?
上面的Debian包是在Ubuntu 9.10 32bits上编译生成的,可能在Ubuntu 10.04上无法运行(内核版本不同)。
我会尽快将标准的tar.gz包上传上来,供大家下载!

Re: c2make--Makefile创建者

发表于 : 2010-06-04 20:07
UserLogin
ubuntu-mm 写了:
UserLogin 写了:is it available for lucid 64bit?
上面的Debian包是在Ubuntu 9.10 32bits上编译生成的,可能在Ubuntu 10.04上无法运行(内核版本不同)。
我会尽快将标准的tar.gz包上传上来,供大家下载!
前两天一直为makefile头疼,不过最后还是自己写了
期待程序出来瞧瞧

Re: c2make--Makefile创建者

发表于 : 2010-06-05 22:45
ubuntu-mm
UserLogin 写了:
ubuntu-mm 写了:
UserLogin 写了:is it available for lucid 64bit?
上面的Debian包是在Ubuntu 9.10 32bits上编译生成的,可能在Ubuntu 10.04上无法运行(内核版本不同)。
我会尽快将标准的tar.gz包上传上来,供大家下载!
前两天一直为makefile头疼,不过最后还是自己写了
期待程序出来瞧瞧
c2make-2.10.05-7.tar.gz 文件已经上传了,下载完毕后,使用以下命令编译:
tar -xvzf c2make-2.10.0-7.tar.gz
cd c2make
./configure
make

安装:
sudo make install

卸载:
sudo make uninstall

Re: c2make--Makefile创建者

发表于 : 2010-06-06 15:14
UserLogin
ubuntu-mm 写了:
UserLogin 写了:
ubuntu-mm 写了:
UserLogin 写了:is it available for lucid 64bit?
上面的Debian包是在Ubuntu 9.10 32bits上编译生成的,可能在Ubuntu 10.04上无法运行(内核版本不同)。
我会尽快将标准的tar.gz包上传上来,供大家下载!
前两天一直为makefile头疼,不过最后还是自己写了
期待程序出来瞧瞧
c2make-2.10.05-7.tar.gz 文件已经上传了,下载完毕后,使用以下命令编译:
tar -xvzf c2make-2.10.0-7.tar.gz
cd c2make
./configure
make

安装:
sudo make install

卸载:
sudo make uninstall
tar -xvzf c2make-2.10.05-7.tar.gz
cd c2make-2.10.05-7
./configure
make

Re: c2make--Makefile创建者

发表于 : 2010-06-06 22:13
Jarson
mark :em11

Re: c2make--Makefile创建者

发表于 : 2010-09-06 17:19
leon_young
先留着! :em11

Re: c2make--Makefile创建者

发表于 : 2010-10-10 1:57
ubuntu-mm
c2make, which is a free software that was released by Chin Foundry, is a helpful assistant tool which can generate the Makefile from the source files directly when you do C, C++, GTK+, Gtkmm, Motif, wxWidget and OpenGL programming.

Chin Foundry has announced the release of c2make 3.10.10-1 on October 10th, 2010.