an example of using automake.
来源:互联网 发布:网络在哪里找装修师傅 编辑:程序博客网 时间:2024/05/16 07:33
an example of using automake (jconv project).
$ cd jconv
$ autoscan
$ mv configure.scan configure.in
edit configure.in file
$ cat configure.in
========== File configure.in ==========
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.57)
AC_INIT(jconv, 0.1.0, fishchenATgmail.com)
AM_INIT_AUTOMAKE(jconv, 0.1.0)
AC_CONFIG_SRCDIR([jconv.h])
#AC_CONFIG_HEADER([config.h])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
AC_PROG_RANLIB
AM_PROG_LIBTOOL
#AC_PROG_LIBTOOL
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
# Checks for library functions.
AC_CHECK_FUNCS([memset strerror])
#AC_OUTPUT
AC_OUTPUT(Makefile)
========== End ==========
$ aclocal
$ autoconf
edit Makefile.am file
$ cat Makefile.am
========== File Makefile.am ==========
AUTOMAKE_OPTIONS=gnu # Flavor: gnu/gnits/foreign/cygnus
#AUTOMAKE_OPTIONS=foreign
bin_PROGRAMS=jconv
include_HEADERS=jconv.h
lib_LIBRARIES=libjconv.a
lib_LTLIBRARIES=libjconv.la
jconv_SOURCES=jconv_bin.c jconv.c jconv.h jconv_table.h
libjconv_a_SOURCES=jconv.c jconv.h jconv_table.h
libjconv_la_SOURCES=jconv.c jconv.h jconv_table.h
libjconv_la_LDFLAGS = -version-info 1:0:1 # -version-info C:R:A (5:30:1) libxxx.(C-A).A.R (5-1.1.30) = 4.1.30
========== End ==========
$ libtoolize --automake
$ automake --add-missing
add missing file following automake.
finish.
- an example of using automake.
- An example of using Thrift
- An easy example of using AJAX
- An example of using STL multimap
- An example of using libexif to set JPEG Orientation Tag
- An example of using libexif to set JPEG Orientation Tag
- an example of drawing beast tree using ggtree
- an example of repeater
- An example of how to streaming audio over network using Qt
- #150 – An Example of Using PropertyChanged and CoerceValue Callbacks(PropertyChanged和CoerceValue例子)
- An example of a trading strategy coded using Quantmod Package in R
- An Example of association query
- An example of responseXML.getElementsByTagName
- an example of enhancement framework
- An Entry Example of Log4j
- The example of Using Executors
- An Example Using boto Amazon MWS Package
- An example of lib3ds 2.0 with opengl32
- 【转摘】我这23年的学校生涯
- 程序员单身手册
- WinCVS和不同版本Python的配合问题
- 教你用VC6做QQ对对碰外挂程序
- 图片以二进制流输出到网页
- an example of using automake.
- [文字]一个人的远走高飞
- 替换以"|"分割的相同字符串
- 2月底计划(双摄像头)
- (转载)孙玉芳:我所经历的20年国产操作系统研发
- MYSQL初学者使用指南与介绍
- CVS常用命令速查手册
- [心情]我想我是忧伤的
- 捉虫记:一网打尽KT600、NF2、865PE主板BUG