gnu autotools编译工具学习

https://blog.csdn.net/qq_38781075/article/details/125785551

https://www.cnblogs.com/fengwei/p/4394165.html#SEC96

https://www.cnblogs.com/tangm421/p/13828233.html

                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([myproject], [1,0])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([b.h])
AC_CONFIG_HEADERS([config.h])

# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_RANLIB
AM_PROG_AR

# Checks for libraries.

# Checks for header files.

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4

bin_PROGRAMS = test
test_SOURCES = a.c b.c
noinst_HEADERS = b.h
test_LDADD = src/libfoo.a
SUBDIRS = src/

 

posted @ 2022-11-15 22:37  菠萝超级酸  阅读(25)  评论(0编辑  收藏  举报