GNU autoconf/automake in OpenSSH

Roumen Petrov roumen.petrov at skalasoft.com
Fri Jan 19 22:03:58 EST 2001


Damien Miller wrote:

 > On Fri, 19 Jan 2001, Roumen Petrov wrote:
...
 >> In genarated Makefile from automake has rules to rebuild some files
 >> ( if you change configure.in simply run make )
 >
 >
 > We can do this with:
 >
 > Makefile: configure
 >	./configure
 >
NO 
./config.status
 > configure: configure.in
 >	autoreconf
;-)
automake make this better for you.

 >
 > and avoid an additional tool that all developers need to learn and have
 > on hand.
 >
only few developers.

I found that all sources in one directory is difficult.
Am example len put all sshd sources in subfolder sshd.
To make, install, clean you must create a Makefile.in with all rules.
But i can create Makefile.am :
------------
AM_INSTALL_PROGRAM_FLAGS=-m 0755 -s

LDFLAGS=-L.. @LDFLAGS@

sbin_PROGRAMS=sshd

LDADD=-lssh -lopenbsd-compat

# source files

sshd_SOURCES=sshd.c auth.c .....
------------
and append in configure.in in macro AC_OUTPUT -> sshd/Makefile

and run automake.

I found this easy for all developers.








More information about the openssh-unix-dev mailing list