|
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT(hello2,1.0.0,newman0708@gmail.com)
AM_INIT_AUTOMAKE(hello2,1.0.0,newman0708@gmail.com)
AC_CONFIG_SRCDIR([src/main/main.c])
AC_CONFIG_HEADER([config.h])
# Checks for programs.
AC_PROG_CC
#AC_PROG_RANLIB ### Added if static libary used
AC_PROG_LIBTOOL ### Added if dynamic libary used
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
# Checks for library functions.
AC_OUTPUT(Makefile
include/Makefile
src/Makefile
src/main/Makefile
src/foo/Makefile
src/bar/Makefile
)
Makefile.am
### Makefile.am ###
SUBDIRS = include src
AUTOMAKE_OPTIONS=foreign
make时
make[3]: Entering directory `/mnt/mybag/doc/C.Language/hello2/src/main'
/bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -g -D_DEBUG -L../../src/bar -o hello2 main.o ../../src/foo/libfoo.a -lbar
gcc -g -O2 -o .libs/hello2 main.o -L/home/newman0708/doc/C.Language/hello2/src/bar ../../src/foo/libfoo.a /home/newman0708/doc/C.Language/hello2/src/bar/.libs/libbar.so
creating hello2
自动加入了-g参数, 不知道 为什么呀 |
|