automakeとは、
./configure
make
makeinstall
でソースファイルからアプリケーションをインストールする為に必要なconfigureやMakefileを
比較的簡単簡単に作成するツール群です。前回ではconfigureが生成されたのでconfigureを実行してアプリケーションをインストールします。
[root@epicon-4.4]# ls
AUTHORS Makefile.am aclocal.m4 configure epicon.nr main.c
COPYING Makefile.in autom4te.cache configure.ac epicon_main.c missing
ChangeLog NEWS autoscan.log depcomp epicon_uty.c
INSTALL README config.h.in epicon.h install-sh
Makefileを生成する為のconfigureが生成される
[root@epicon-4.4]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
.
.
.
checking for strrchr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
[root@epicon-4.4]# ls
AUTHORS Makefile.am autom4te.cache config.status epicon.nr missing
COPYING Makefile.in autoscan.log configure epicon_main.c stamp-h1
ChangeLog NEWS config.h configure.ac epicon_uty.c
INSTALL README config.h.in depcomp install-sh
Makefile aclocal.m4 config.log epicon.h main.c
[root@epicon-4.4]# make
make all-am
make[1]: Entering directory `/root/epicon-4.4'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c;
then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT epicon_main.o -MD -MP -MF ".deps/epicon_main.Tpo" -c -o epicon_main.o epicon_main.c;
then mv -f ".deps/epicon_main.Tpo" ".deps/epicon_main.Po"; else rm -f ".deps/epicon_main.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT epicon_uty.o -MD -MP -MF ".deps/epicon_uty.Tpo" -c -o epicon_uty.o epicon_uty.c;
then mv -f ".deps/epicon_uty.Tpo" ".deps/epicon_uty.Po"; else rm -f ".deps/epicon_uty.Tpo"; exit 1; fi
gcc -g -O2 -I /usr/include/ncurses -lncurses -o epicon main.o epicon_main.o epicon_uty.o -lncurses
make[1]: Leaving directory `/root/epicon-4.4'
[root@epicon-4.4]# make install
make[1]: Entering directory `/root/epicon-4.4'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/usr/bin/install -c 'epicon' '/usr/local/bin/epicon'
test -z "/usr/share/man/man1" || mkdir -p -- "/usr/share/man/man1"
/usr/bin/install -c -m 644 './epicon.nr' '/usr/share/man/man1/epicon.1'
make[1]: Leaving directory `/root/epicon-4.4'
[root@epicon-4.4]# ls
AUTHORS Makefile.in config.h depcomp epicon_uty.c stamp-h1
COPYING NEWS config.h.in epicon epicon_uty.o
ChangeLog README config.log epicon.h install-sh
INSTALL aclocal.m4 config.status epicon.nr main.c
Makefile autom4te.cache configure epicon_main.c main.o
Makefile.am autoscan.log configure.ac epicon_main.o missing
[root@epicon-4.4]# epicon
** Welcome to epicon Version-4.6 Copyright Isamu Yamauchi compiled:Jun 27 2009 **
exec shell ~!
send binary files ~f
call rz,sz,sx,rx ~rz,~sz,~sx,~rx
call kermit ~sk,~rk
external command ~C
change speed ~c
exit ~.
Connected /dev/ttyS0
Disconnected
[root@epicon-4.4]#
pepoとおやすみ