- 论坛徽章:
- 0
|
简单例子:
- $ ls
- Makefile.am configure.ac hello.c
- $ aclocal
- $ autoheader
- $ autoconf
- $ automake --add-missing
- configure.ac: installing `./install-sh'
- configure.ac: installing `./mkinstalldirs'
- configure.ac: installing `./missing'
- Makefile.am: installing `./depcomp'
- $ gmake
- gmake: *** No targets specified and no makefile found. Stop.
- $ lf
- ./ Makefile.in config.h.in depcomp@ missing@
- ../ aclocal.m4 configure* hello.c mkinstalldirs@
- Makefile.am autom4te.cache/ configure.ac install-sh@
- $ ./configure
- checking for a BSD-compatible install... /usr/bin/install -c
- checking whether build environment is sane... yes
- checking for gawk... gawk
- checking whether make sets $(MAKE)... yes
- checking for gcc... gcc
- checking for C compiler default output file name... a.out
- checking whether the C compiler works... yes
- checking whether we are cross compiling... no
- checking for suffix of executables...
- checking for suffix of object files... o
- checking whether we are using the GNU C compiler... yes
- checking whether gcc accepts -g... yes
- checking for gcc option to accept ISO C89... none needed
- checking for style of include used by make... GNU
- checking dependency style of gcc... gcc3
- checking how to run the C preprocessor... gcc -E
- checking for grep that handles long lines and -e... /usr/bin/grep
- checking for egrep... /usr/bin/grep -E
- checking for ANSI C header files... yes
- checking for sys/types.h... yes
- checking for sys/stat.h... yes
- checking for stdlib.h... yes
- checking for string.h... yes
- checking for memory.h... yes
- checking for strings.h... yes
- checking for inttypes.h... yes
- checking for stdint.h... yes
- checking for unistd.h... yes
- checking stdio.h usability... yes
- checking stdio.h presence... yes
- checking for stdio.h... yes
- configure: creating ./config.status
- config.status: creating Makefile
- config.status: WARNING: Makefile.in seems to ignore the --datarootdir setting
- config.status: creating config.h
- config.status: executing depfiles commands
- $ gmake
- gmake all-am
- gmake[1]: Entering directory `/usr/home/mymtom/src/play/automake/hello-1.0'
- source='hello.c' object='hello.o' libtool=no \
- depfile='.deps/hello.Po' tmpdepfile='.deps/hello.TPo' \
- depmode=gcc3 /usr/local/bin/bash ./depcomp \
- gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c `test -f 'hello.c' || echo './'`hello.c
- gcc -g -O2 -o hello hello.o
- gmake[1]: Leaving directory `/usr/home/mymtom/src/play/automake/hello-1.0'
- $ gmake dist
- { test ! -d hello-1.0 || { find hello-1.0 -type d ! -perm -200 -exec chmod u+w {} ';' && rm -fr hello-1.0; }; }
- mkdir hello-1.0
- find hello-1.0 -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
- ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
- ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
- ! -type d ! -perm -444 -exec /usr/local/bin/bash /usr/home/mymtom/src/play/automake/hello-1.0/install-sh -c -m a+r {} {} \; \
- || chmod -R a+r hello-1.0
- /usr/local/bin/bash /usr/home/mymtom/src/play/automake/hello-1.0/missing --run tar chof - hello-1.0 | GZIP=--best gzip -c >hello-1.0.tar.gz
- { test ! -d hello-1.0 || { find hello-1.0 -type d ! -perm -200 -exec chmod u+w {} ';' && rm -fr hello-1.0; }; }
- $ ls -F
- Makefile config.log hello.c
- Makefile.am config.status* hello.o
- Makefile.in configure* install-sh@
- aclocal.m4 configure.ac missing@
- autom4te.cache/ depcomp@ mkinstalldirs@
- config.h hello* stamp-h1
- config.h.in hello-1.0.tar.gz
- $
复制代码 |
评分
-
查看全部评分
|