随笔分类 -  strongswan

strongswan开源软件分析
configure.ac
摘要:## Copyright (C) 2007-2013 Tobias Brunner# Copyright (C) 2006-2013 Andreas Steffen# Copyright (C) 2006-2013 Martin Willi# Hochschule fuer Technik Rapperswil## This program is free software; you can redistribute it and/or modify it# under the terms of the GNU General Public License as published by th 阅读全文

posted @ 2014-03-11 23:06 小风儿_xf 阅读(6824) 评论(0) 推荐(0)

Automake创建项目
摘要:autoconf和automake可以方便的构建linux下项目,一个简单的automake项目实例,麻雀虽小五脏俱全,以后无外乎在这基础上扩展相应的宏完善而已。1.首先建立项目目录树1)创建目录树$ mkdir lib$ mkdir src$ mkdir include$ vim include/arith.h$ vim lib/addtest.cpp$ vim lib/multest.cpp$ vim src/arith.cpp2)编辑源代码文件include/arith.h:void addtest(int a, int b);void multest(int a, int b);l.. 阅读全文

posted @ 2014-03-10 21:44 小风儿_xf 阅读(715) 评论(0) 推荐(0)

Autoconf/Automake工具简介
摘要:在linux下编程的时候,有时候工程项目很大,文件比较多,此时需要使用自动创建Makefile文件功能。也就是使用Autoconf/Automake工具自动生成Makefile,为编译程序带来了方便,当前大多数软件包都是用此方法生成,Autoconf/Automake工具组主要包括autoconf,automake,perl,m4。Autoconfig/Automake工具使用实例一、首先建立编写一个C源程序文件,命名为hello.c,其代码很简单,就是hello world!程序。二、使用Autoscan工具生成config.ac文件.该文件的简要说明如下:1、 AC_PREREQQ宏... 阅读全文

posted @ 2014-03-09 22:16 小风儿_xf 阅读(5295) 评论(1) 推荐(2)

导航