| An Internationalized Software Project With Auto Tools | ||
|---|---|---|
| Prev | Adding Auto Tool Support | Next |
# setenv ACLOCAL aclocal19 # setenv AUTOMAKE automake19 # setenv AUTOCONF autoconf259 # setenv AUTOHEADER autoheader259 |
# touch setEnvironment.freebsd # chmod a+x setEnvironment.freebsd |
setEnvironment.freebsd |
#!/bin/csh setenv ACLOCAL aclocal19 setenv AUTOMAKE automake19 setenv AUTOCONF autoconf259 setenv AUTOHEADER autoheader259 csh |
# autoscan259 autom4te259: configure.ac: no such file or directory autoscan259: /usr/local/bin/autom4te259 failed with exit status: 1 |
# mv configure.scan configure.ac |
configure.ac |
|
# touch Makefile.am # touch src/Makefile.am |
Makefile.am |
SUBDIRS = src |
src/Makefile.am |
bin_PROGRAMS = testproj testproj_SOURCES = main.cpp noinst_HEADERS = testproj.h |
# ${ACLOCAL}
... lots of warnings
|
# ${AUTOHEADER}
|
# touch NEWS # touch README # touch AUTHORS # touch ChangeLog |
# ${AUTOMAKE} --add-missing
configure.ac: installing `./install-sh'
configure.ac: installing `./missing'
src/Makefile.am: installing `./depcomp'
Makefile.am: installing `./INSTALL'
Makefile.am: installing `./COPYING'
|
# ${AUTOCONF}
|
# ./configure checking for a BSD-compatible install... /usr/bin/install -c ... checking dependency style of gcc... gcc3 configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating config.h config.status: executing depfiles commands |
# cat config.h /* config.h. Generated by configure. */ /* config.h.in. Generated from configure.ac by autoheader. */ /* Name of package */ #define PACKAGE "testproj" ... /* Version number of package */ #define VERSION "0.1" |
# gmake gmake all-recursive gmake[1]: Entering directory `/usr/home/he/develop/testproj' Making all in src gmake[2]: Entering directory `/usr/home/he/develop/testproj/src' if g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.cpp; \ then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi g++ -g -O2 -o testproj main.o gmake[2]: Leaving directory `/usr/home/he/develop/testproj/src' gmake[2]: Entering directory `/usr/home/he/develop/testproj' gmake[2]: Nothing to be done for `all-am'. gmake[2]: Leaving directory `/usr/home/he/develop/testproj' gmake[1]: Leaving directory `/usr/home/he/develop/testproj' |
# gmake install Making install in src gmake[1]: Entering directory `/usr/home/he/develop/testproj/src' gmake[2]: Entering directory `/usr/home/he/develop/testproj/src' test -z "/usr/local/bin" || /usr/home/he/develop/testproj/install-sh -d "/usr/local/bin" /usr/bin/install -c 'testproj' '/usr/local/bin/testproj' gmake[2]: Nothing to be done for `install-data-am'. gmake[2]: Leaving directory `/usr/home/he/develop/testproj/src' gmake[1]: Leaving directory `/usr/home/he/develop/testproj/src' gmake[1]: Entering directory `/usr/home/he/develop/testproj' gmake[2]: Entering directory `/usr/home/he/develop/testproj' gmake[2]: Nothing to be done for `install-exec-am'. gmake[2]: Nothing to be done for `install-data-am'. gmake[2]: Leaving directory `/usr/home/he/develop/testproj' gmake[1]: Leaving directory `/usr/home/he/develop/testproj' # rehash # testproj Hello world! |
# gmake uninstall Making uninstall in src gmake[1]: Entering directory `/usr/home/he/develop/testproj/src' rm -f '/usr/local/bin/testproj' gmake[1]: Leaving directory `/usr/home/he/develop/testproj/src' gmake[1]: Entering directory `/usr/home/he/develop/testproj' gmake[1]: Nothing to be done for `uninstall-am'. gmake[1]: Leaving directory `/usr/home/he/develop/testproj' |
# ./configure --help
`configure' configures testproj 0.1 to adapt to many kinds of systems.
...
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc. You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.
...
Some influential environment variables:
CXX C++ compiler command
CXXFLAGS C++ compiler flags
...
|
# gmake dist-bzip2 ... |
# gmake clean ... |
# gmake distclean ... |
# ./configure ... |
| Prev | Home | Next |
| Auto Tools Overview | Revision Control |