可执行程序automake(1.15.1)模板
系统环境:
ubuntu18
源码目录:
$(top_srcdir)/
src/
*.h *.cpp
步骤:
1. 生成configure.scan
$ autoscan
2. 改名:
$ mv configure.scan configure.ac
3. 编辑configure.ac
模板如下:
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([xxx], [20180526], [BUG-REPORT-ADDRESS])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/xxxx.cpp])
AC_CONFIG_HEADERS([config.h])
AC_CONF