Linux C project_(草稿)

【filehead: 】

【keyword:】

【status: underwriting】

1.  Under the software engineering's guide,  using the the  felicitous library, building every module code.

2.  using the autotools to manage the project.

     2.1    write   【Makefile.am】  /  【configure.in】  file;

     2.2    write 【acinclude.m4】 file to include the check macro;

     2.3   run  【aclocal】 command, get the file aclocal.m4.

=====================

<< refer

C.1 aclocal

The aclocal program creates the file `aclocal.m4' by combining stock installed macros, user defined macros and the contents of `acinclude.m4' to define all of the macros required by `configure.in' in a single file. aclocal was created as a fix for some missing functionality in Autoconf, and as such we consider it a wart. In due course aclocal itself will disappear, and Autoconf will perform the same function unaided.

 
user input files   optional input     process          output files
================   ==============     =======          ============


                    acinclude.m4 - - - - -.
                                          V
                                      .-------,
configure.in ------------------------>|aclocal|

                 {user macro files} ->|       |------> aclocal.m4
                                      `-------'

>> end

     2.4  run 【autoconf】    gets the 【configure】 file;

     2.5 run  【automake】 gets 【makefile.in】 from 【makefile.am】

  3. write the 【ReadMe】 and include the 【copyright】 file,   and something else.

  4. OK.  User can build and install the project using

           ./configure

          make

          make install

 5. Example:

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值