
The machine directory uses GNU autoconf and automake for
configuration. There is a configuration template file
(configure.in) and Makefile template
(Makefile.am) in the main machine directory
(libc/machine within the
newlib directory).
configure.ac contains a case
statement configuring the target specific subdirectories. This must
be updated to configure the subdirectory for the new target. Thus
for the OpenRISC 1000 we have the following.
if test -n "${machine_dir}"; then
case ${machine_dir} in
a29k) AC_CONFIG_SUBDIRS(a29k) ;;
arm) AC_CONFIG_SUBDIRS(arm) ;;
<other machines not shown>
necv70) AC_CONFIG_SUBDIRS(necv70) ;;
or32) AC_CONFIG_SUBDIRS(or32) ;;
powerpc) AC_CONFIG_SUBDIRS(powerpc) ;;
<other machines not shown>
xstormy16) AC_CONFIG_SUBDIRS(xstormy16) ;;
z8k) AC_CONFIG_SUBDIRS(z8k) ;;
esac;
fi
Makefile.am is standard and will not need to be
changed. Having changed the configuration template, the
configuration file, configure, will need to be
regenerated. This only requires running autoconf
autoconf
Since Makefile.am has not been changed there is
no need to run automake
