mirror of
https://github.com/t-crest/rtems.git
synced 2025-11-16 12:34:47 +00:00
Incorporated automake I patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
This is the first real automake patch.
It adds automake support to c/build-tools and cleans up a few minor
issues.
I consider this to be a testing probe to examine problems with automake.
Therefore, this patch is just a more or less harmless replacement of the
former RTEMS Makefiles and I expect it not last for long. If you want to
give automake Makefiles a public try and if you want/need to learn about
problems with it, then it's about time for a new snapshot, IMO. I may
have screwed up something not directly related to automake, but I expect
very few (none to be precise) problems with automake. However, somebody
should at least try building on Cygwin. If you feel a bit more
adventureous, then I also can continue to submit more patches.
[FYI: I still have a couple of automake files laying around, but they
need some cleanup before being submitted as patches. Now, that I am just
into it, I'll perhaps submit another one tonight :-]
After applying this patch (patch -p1 -E <
<path-to>/rtems-rc-19990318-0), first run the "autogen" script from the
toplevel source directory, before committing to CVS. Be careful about
dependencies between Makefile.am and Makefile.ins when cutting tarballs
from CVS. Makefile.ins are required to be newer than Makefile.ams,
otherwise users would need to have automake, autoconf and perl. Some
people recommend to "touch" all Makefile.in after checkout from cvs (cf.
egcs/contrib/egcs_update).
ATTENTION:
* This patch adds a number of new files.
* remove aclocal/exeext.m4 and aclocal/cygwin.m4 from CVS, They are now
covered by autoconf-2.13`s AC_EXEEXT.
Some features/side-effects which are probably interesting for you:
In a configured build-tree "cd c/build-tools", then try
* "make RTEMS_BSP=<bsp> install"
* "make RTEMS_BSP=<bsp> dist"
This commit is contained in:
312
aclocal.m4
vendored
312
aclocal.m4
vendored
@@ -10,6 +10,184 @@ dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|||||||
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
dnl PARTICULAR PURPOSE.
|
dnl PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_TOP,
|
||||||
|
[dnl
|
||||||
|
RTEMS_TOPdir="$1";
|
||||||
|
AC_SUBST(RTEMS_TOPdir)
|
||||||
|
|
||||||
|
PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
|
||||||
|
AC_SUBST(PROJECT_ROOT)
|
||||||
|
|
||||||
|
RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
|
||||||
|
AC_SUBST(RTEMS_ROOT)
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Note: This option is considered obsolete
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_ENABLE_GMAKE_PRINT,
|
||||||
|
[
|
||||||
|
AC_ARG_ENABLE(gmake-print-directory,
|
||||||
|
[ --enable-gmake-print-directory enable GNU Make's print directory],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes) RTEMS_USE_OWN_PDIR=no ;;
|
||||||
|
no) RTEMS_USE_OWN_PDIR=yes ;;
|
||||||
|
*) AC_MSG_ERROR(bad value ${enableval} for gmake-print-directory option)
|
||||||
|
;;
|
||||||
|
esac],[RTEMS_USE_OWN_PDIR=yes])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_ENABLE_MULTIPROCESSING,
|
||||||
|
[
|
||||||
|
AC_ARG_ENABLE(multiprocessing,
|
||||||
|
[ --enable-multiprocessing enable multiprocessing interface],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes) RTEMS_HAS_MULTIPROCESSING=yes ;;
|
||||||
|
no) RTEMS_HAS_MULTIPROCESSING=no ;;
|
||||||
|
*) AC_MSG_ERROR(bad value ${enableval} for enable-multiprocessing option) ;;
|
||||||
|
esac],[RTEMS_HAS_MULTIPROCESSING=no])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_ENABLE_POSIX,
|
||||||
|
[
|
||||||
|
AC_ARG_ENABLE(posix,
|
||||||
|
[ --enable-posix enable posix interface],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes) RTEMS_HAS_POSIX_API=yes ;;
|
||||||
|
no) RTEMS_HAS_POSIX_API=no ;;
|
||||||
|
*) AC_MSG_ERROR(bad value ${enableval} for enable-posix option) ;;
|
||||||
|
esac],[RTEMS_HAS_POSIX_API=yes])
|
||||||
|
|
||||||
|
changequote(,)dnl
|
||||||
|
case "${target}" in
|
||||||
|
# hpux unix port should go here
|
||||||
|
i[3456]86-go32-rtems*)
|
||||||
|
RTEMS_HAS_POSIX_API=no
|
||||||
|
;;
|
||||||
|
i[3456]86-pc-linux*) # unix "simulator" port
|
||||||
|
RTEMS_HAS_POSIX_API=no
|
||||||
|
;;
|
||||||
|
i[3456]86-*freebsd2*) # unix "simulator" port
|
||||||
|
RTEMS_HAS_POSIX_API=no
|
||||||
|
;;
|
||||||
|
no_cpu-*rtems*)
|
||||||
|
RTEMS_HAS_POSIX_API=no
|
||||||
|
;;
|
||||||
|
sparc-sun-solaris*) # unix "simulator" port
|
||||||
|
RTEMS_HAS_POSIX_API=no
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
changequote([,])dnl
|
||||||
|
AC_SUBST(RTEMS_HAS_POSIX_API)
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_ENABLE_NETWORKING,
|
||||||
|
[
|
||||||
|
AC_ARG_ENABLE(networking,
|
||||||
|
[ --enable-networking enable TCP/IP stack],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes) RTEMS_HAS_NETWORKING=yes ;;
|
||||||
|
no) RTEMS_HAS_NETWORKING=no ;;
|
||||||
|
*) AC_MSG_ERROR(bad value ${enableval} for enable-networking option) ;;
|
||||||
|
esac],[RTEMS_HAS_NETWORKING=yes])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_ENABLE_RDBG,
|
||||||
|
[
|
||||||
|
AC_ARG_ENABLE(rdbg,
|
||||||
|
[ --enable-rdbg enable remote debugger],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes) RTEMS_HAS_RDBG=yes ;;
|
||||||
|
no) RTEMS_HAS_RDBG=no ;;
|
||||||
|
*) AC_MSG_ERROR(bad value ${enableval} for enable-rdbg option) ;;
|
||||||
|
esac],[RTEMS_HAS_RDBG=no])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_ENABLE_INLINES,
|
||||||
|
[AC_ARG_ENABLE(rtems-inlines,
|
||||||
|
[ --enable-rtems-inlines enable RTEMS inline functions]
|
||||||
|
[ (default:enabled, disable to use macros)],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes) RTEMS_USE_MACROS=no ;;
|
||||||
|
no) RTEMS_USE_MACROS=yes ;;
|
||||||
|
*) AC_MSG_ERROR(bad value ${enableval} for disable-rtems-inlines option) ;;
|
||||||
|
esac],[RTEMS_USE_MACROS=no])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_ENABLE_CXX,
|
||||||
|
[
|
||||||
|
AC_ARG_ENABLE(cxx,
|
||||||
|
[ --enable-cxx enable C++ support,]
|
||||||
|
[ and build the rtems++ library],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes) RTEMS_HAS_CPLUSPLUS=yes ;;
|
||||||
|
no) RTEMS_HAS_CPLUSPLUS=no ;;
|
||||||
|
*) AC_MSG_ERROR(bad value ${enableval} for enable-cxx option) ;;
|
||||||
|
esac], [RTEMS_HAS_CPLUSPLUS=no])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_ENABLE_GCC28,
|
||||||
|
[
|
||||||
|
AC_ARG_ENABLE(gcc28,
|
||||||
|
[ --enable-gcc28 enable use of gcc 2.8.x features],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes) RTEMS_USE_GCC272=no ;;
|
||||||
|
no) RTEMS_USE_GCC272=yes ;;
|
||||||
|
*) AC_MSG_ERROR(bad value ${enableval} for gcc-28 option) ;;
|
||||||
|
esac],[RTEMS_USE_GCC272=no])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_ENABLE_LIBCDIR,
|
||||||
|
[
|
||||||
|
AC_ARG_ENABLE(libcdir,
|
||||||
|
[ --enable-libcdir=directory set the directory for the C library],
|
||||||
|
[ RTEMS_LIBC_DIR="${enableval}" ; \
|
||||||
|
test -d ${enableval} || AC_MSG_ERROR("$enableval is not a directory" ) ] )
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_ENABLE_BARE,
|
||||||
|
[
|
||||||
|
AC_ARG_ENABLE(bare-cpu-cflags,
|
||||||
|
[ --enable-bare-cpu-cflags specify a particular cpu cflag]
|
||||||
|
[ (bare bsp specific)],
|
||||||
|
[case "${enableval}" in
|
||||||
|
no) BARE_CPU_CFLAGS="" ;;
|
||||||
|
*) BARE_CPU_CFLAGS="${enableval}" ;;
|
||||||
|
esac],
|
||||||
|
[BARE_CPU_CFLAGS=""])
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(bare-cpu-model,
|
||||||
|
[ --enable-bare-cpu-model specify a particular cpu model]
|
||||||
|
[ (bare bsp specific)],
|
||||||
|
[case "${enableval}" in
|
||||||
|
no) BARE_CPU_MODEL="" ;;
|
||||||
|
*) BARE_CPU_MODEL="${enableval}" ;;
|
||||||
|
esac],
|
||||||
|
[BARE_CPU_MODEL=""])
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
dnl $Id$
|
dnl $Id$
|
||||||
|
|
||||||
AC_DEFUN(RTEMS_PATH_PERL,
|
AC_DEFUN(RTEMS_PATH_PERL,
|
||||||
@@ -123,6 +301,48 @@ changequote([,])dnl
|
|||||||
AC_MSG_RESULT($target_cpu)
|
AC_MSG_RESULT($target_cpu)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
dnl check if RTEMS support a cpu
|
||||||
|
AC_DEFUN(RTEMS_CHECK_CPU,
|
||||||
|
[dnl
|
||||||
|
AC_REQUIRE([RTEMS_TOP])
|
||||||
|
AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])
|
||||||
|
# Is this a supported CPU?
|
||||||
|
AC_MSG_CHECKING([if cpu $target_cpu is supported])
|
||||||
|
if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$target_cpu"; then
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR(no)
|
||||||
|
fi
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CANONICAL_HOST,
|
||||||
|
[dnl
|
||||||
|
AC_REQUIRE([AC_CANONICAL_HOST])
|
||||||
|
RTEMS_HOST=$host_os
|
||||||
|
changequote(,)dnl
|
||||||
|
case "${target}" in
|
||||||
|
# hpux unix port should go here
|
||||||
|
i[3456]86-pc-linux*) # unix "simulator" port
|
||||||
|
RTEMS_HOST=Linux
|
||||||
|
;;
|
||||||
|
i[3456]86-*freebsd2*) # unix "simulator" port
|
||||||
|
RTEMS_HOST=FreeBSD
|
||||||
|
;;
|
||||||
|
sparc-sun-solaris*) # unix "simulator" port
|
||||||
|
RTEMS_HOST=Solaris
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
changequote([,])dnl
|
||||||
|
AC_SUBST(RTEMS_HOST)
|
||||||
|
])dnl
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl $Id$
|
dnl $Id$
|
||||||
dnl
|
dnl
|
||||||
@@ -480,67 +700,6 @@ EOF
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl $Id$
|
|
||||||
dnl
|
|
||||||
dnl Detect the Cygwin32 environment (unix under Win32)
|
|
||||||
dnl
|
|
||||||
dnl 98/06/16 David Fiddes (D.J.Fiddes@hw.ac.uk)
|
|
||||||
dnl Hacked from automake-1.3
|
|
||||||
|
|
||||||
# Check to see if we're running under Cygwin32, without using
|
|
||||||
# AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
|
|
||||||
# Otherwise set it to "no".
|
|
||||||
|
|
||||||
dnl RTEMS_CYGWIN32()
|
|
||||||
AC_DEFUN(RTEMS_CYGWIN32,
|
|
||||||
[AC_CACHE_CHECK(for Cygwin32 environment, rtems_cv_cygwin32,
|
|
||||||
[AC_TRY_COMPILE(,[return __CYGWIN32__;],
|
|
||||||
rtems_cv_cygwin32=yes, rtems_cv_cygwin32=no)
|
|
||||||
rm -f conftest*])
|
|
||||||
CYGWIN32=
|
|
||||||
test "$rtems_cv_cygwin32" = yes && CYGWIN32=yes])
|
|
||||||
|
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl $Id$
|
|
||||||
dnl
|
|
||||||
dnl Set the EXE extension
|
|
||||||
dnl
|
|
||||||
dnl 98/06/16 David Fiddes (D.J.Fiddes@hw.ac.uk)
|
|
||||||
dnl Hacked from automake-1.3
|
|
||||||
|
|
||||||
# Check to see if we're running under Win32, without using
|
|
||||||
# AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
|
|
||||||
# Otherwise set it to "".
|
|
||||||
|
|
||||||
dnl RTEMS_EXEEXT()
|
|
||||||
dnl This knows we add .exe if we're building in the Cygwin32
|
|
||||||
dnl environment. But if we're not, then it compiles a test program
|
|
||||||
dnl to see if there is a suffix for executables.
|
|
||||||
AC_DEFUN(RTEMS_EXEEXT,
|
|
||||||
[AC_REQUIRE([RTEMS_CYGWIN32])
|
|
||||||
AC_MSG_CHECKING([for executable suffix])
|
|
||||||
AC_CACHE_VAL(rtems_cv_exeext,
|
|
||||||
[if test "$CYGWIN32" = yes; then
|
|
||||||
rtems_cv_exeext=.exe
|
|
||||||
else
|
|
||||||
cat > rtems_c_test.c << 'EOF'
|
|
||||||
int main() {
|
|
||||||
/* Nothing needed here */
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
${CC-cc} -o rtems_c_test $CFLAGS $CPPFLAGS $LDFLAGS rtems_c_test.c $LIBS 1>&5
|
|
||||||
rtems_cv_exeext=`echo rtems_c_test.* | grep -v rtems_c_test.c | sed -e s/rtems_c_test//`
|
|
||||||
rm -f rtems_c_test*])
|
|
||||||
test x"${rtems_cv_exeext}" = x && rtems_cv_exeext=no
|
|
||||||
fi
|
|
||||||
EXEEXT=""
|
|
||||||
test x"${rtems_cv_exeext}" != xno && EXEEXT=${rtems_cv_exeext}
|
|
||||||
AC_MSG_RESULT(${rtems_cv_exeext})
|
|
||||||
AC_SUBST(EXEEXT)])
|
|
||||||
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl $Id$
|
dnl $Id$
|
||||||
dnl
|
dnl
|
||||||
@@ -676,3 +835,34 @@ fi
|
|||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_ENABLE_TESTS,
|
||||||
|
[
|
||||||
|
# If the tests are enabled, then find all the test suite Makefiles
|
||||||
|
AC_MSG_CHECKING([if the test suites are enabled? ])
|
||||||
|
tests_enabled=yes
|
||||||
|
AC_ARG_ENABLE(tests,
|
||||||
|
[ --enable-tests enable tests (default:disabled)],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes) AC_MSG_RESULT(yes) ;;
|
||||||
|
no) AC_MSG_RESULT(no) ; tests_enabled=no ;;
|
||||||
|
*) AC_MSG_ERROR(bad value ${enableval} for tests option) ;;
|
||||||
|
esac], AC_MSG_RESULT(no))
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl FIXME: this needs to be reworked
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_ENABLE_HWAPI,
|
||||||
|
[dnl
|
||||||
|
AC_ARG_ENABLE(hwapi, \
|
||||||
|
[ --enable-hwapi enable hardware API library],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes) RTEMS_HAS_HWAPI=yes ;;
|
||||||
|
no) RTEMS_HAS_HWAPI=no ;;
|
||||||
|
*) AC_MSG_ERROR(bad value ${enableval} for hwapi option) ;;
|
||||||
|
esac],[RTEMS_HAS_HWAPI=no])
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
|||||||
@@ -7,10 +7,6 @@ RTEMS_HOST=$host_os
|
|||||||
changequote(,)dnl
|
changequote(,)dnl
|
||||||
case "${target}" in
|
case "${target}" in
|
||||||
# hpux unix port should go here
|
# hpux unix port should go here
|
||||||
i[3456]86-go32-rtems*)
|
|
||||||
rtems_bsp="go32 go32_p5"
|
|
||||||
skip_startfiles="yes"
|
|
||||||
;;
|
|
||||||
i[3456]86-pc-linux*) # unix "simulator" port
|
i[3456]86-pc-linux*) # unix "simulator" port
|
||||||
RTEMS_HOST=Linux
|
RTEMS_HOST=Linux
|
||||||
;;
|
;;
|
||||||
@@ -26,4 +22,3 @@ esac
|
|||||||
changequote([,])dnl
|
changequote([,])dnl
|
||||||
AC_SUBST(RTEMS_HOST)
|
AC_SUBST(RTEMS_HOST)
|
||||||
])dnl
|
])dnl
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ dnl $Id$
|
|||||||
AC_DEFUN(RTEMS_ENABLE_INLINES,
|
AC_DEFUN(RTEMS_ENABLE_INLINES,
|
||||||
[AC_ARG_ENABLE(rtems-inlines,
|
[AC_ARG_ENABLE(rtems-inlines,
|
||||||
[ --enable-rtems-inlines enable RTEMS inline functions]
|
[ --enable-rtems-inlines enable RTEMS inline functions]
|
||||||
[ (use macros)],
|
[ (default:enabled, disable to use macros)],
|
||||||
[case "${enableval}" in
|
[case "${enableval}" in
|
||||||
yes) RTEMS_USE_MACROS=no ;;
|
yes) RTEMS_USE_MACROS=no ;;
|
||||||
no) RTEMS_USE_MACROS=yes ;;
|
no) RTEMS_USE_MACROS=yes ;;
|
||||||
|
|||||||
1
autogen
1
autogen
@@ -53,6 +53,7 @@ dir=`dirname $i`;
|
|||||||
cd $dir;
|
cd $dir;
|
||||||
aclocal -I $aclocal_dir;
|
aclocal -I $aclocal_dir;
|
||||||
autoconf;
|
autoconf;
|
||||||
|
test -n "`grep CONFIG_HEADER configure.in`" && autoheader ;
|
||||||
test -f Makefile.am && automake $verbose ;
|
test -f Makefile.am && automake $verbose ;
|
||||||
)
|
)
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -81,7 +81,8 @@ make_src_makefiles: Makefile.in Makefile
|
|||||||
-rm make_src_makefiles.tmp
|
-rm make_src_makefiles.tmp
|
||||||
|
|
||||||
pre_install_src: env make_src_makefiles
|
pre_install_src: env make_src_makefiles
|
||||||
cd build-tools/scripts; $(MAKE)
|
cd build-tools/scripts; \
|
||||||
|
$(MAKE) RTEMS_BSP=${RTEMS_BSP} install-exec-local
|
||||||
@echo "Order of preinstall directories"
|
@echo "Order of preinstall directories"
|
||||||
cat make_src_makefiles
|
cat make_src_makefiles
|
||||||
@echo
|
@echo
|
||||||
@@ -112,7 +113,7 @@ clean_wrapup: clean_tools clean_dirs clean_modules
|
|||||||
.PHONY: dirs clean_wrapup clean_dirs clean_tools clean_modules env install
|
.PHONY: dirs clean_wrapup clean_dirs clean_tools clean_modules env install
|
||||||
|
|
||||||
$(BUILD_DIRS):
|
$(BUILD_DIRS):
|
||||||
-$(MKDIR) $(BUILD_DIRS)
|
$(RTEMS_ROOT)/mkinstalldirs $(BUILD_DIRS)
|
||||||
if test -d $(PROJECT_ROOT)/c/src/lib/libhwapi; then \
|
if test -d $(PROJECT_ROOT)/c/src/lib/libhwapi; then \
|
||||||
(cd $(PROJECT_ROOT)/c/src/lib/libhwapi ; $(MAKE) mkdirs) \
|
(cd $(PROJECT_ROOT)/c/src/lib/libhwapi ; $(MAKE) mkdirs) \
|
||||||
fi
|
fi
|
||||||
|
|||||||
8
c/build-tools/Makefile.am
Normal file
8
c/build-tools/Makefile.am
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS=foreign
|
||||||
|
ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal
|
||||||
|
|
||||||
|
SUBDIRS = scripts src
|
||||||
@@ -1,25 +1,331 @@
|
|||||||
|
# Makefile.in generated automatically by automake 1.4 from Makefile.am
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
#
|
#
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
|
|
||||||
@SET_MAKE@
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
top_builddir = ../..
|
VPATH = @srcdir@
|
||||||
subdir = c/build-tools
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
|
bindir = @bindir@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
datadir = @datadir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
libdir = @libdir@
|
||||||
|
infodir = @infodir@
|
||||||
|
mandir = @mandir@
|
||||||
|
includedir = @includedir@
|
||||||
|
oldincludedir = /usr/include
|
||||||
|
|
||||||
|
DESTDIR =
|
||||||
|
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
|
||||||
|
top_builddir = .
|
||||||
|
AUTOCONF = @AUTOCONF@
|
||||||
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
CC = @CC@
|
||||||
|
EXEEXT = @EXEEXT@
|
||||||
|
KSH = @KSH@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
PROJECT_ROOT = @PROJECT_ROOT@
|
PROJECT_ROOT = @PROJECT_ROOT@
|
||||||
|
RTEMS_ROOT = @RTEMS_ROOT@
|
||||||
|
RTEMS_TOPdir = @RTEMS_TOPdir@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
|
||||||
VPATH = @srcdir@
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal
|
||||||
|
|
||||||
include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
|
SUBDIRS = scripts src
|
||||||
include $(RTEMS_ROOT)/make/directory.cfg
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
|
||||||
|
CONFIG_HEADER = ./src/config.h
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
DIST_COMMON = Makefile.am Makefile.in aclocal.m4 configure configure.in
|
||||||
|
|
||||||
SUB_DIRS=os scripts src
|
|
||||||
|
|
||||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = tar
|
||||||
|
GZIP_ENV = --best
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||||
cd $(top_builddir) \
|
cd $(top_builddir) \
|
||||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
$(ACLOCAL_M4): configure.in
|
||||||
|
cd $(srcdir) && $(ACLOCAL)
|
||||||
|
|
||||||
|
config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||||
|
$(SHELL) ./config.status --recheck
|
||||||
|
$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
|
||||||
|
cd $(srcdir) && $(AUTOCONF)
|
||||||
|
|
||||||
|
# This directory's subdirectories are mostly independent; you can cd
|
||||||
|
# into them and run `make' without going through this Makefile.
|
||||||
|
# To change the values of `make' variables: instead of editing Makefiles,
|
||||||
|
# (1) if the variable is set in `config.status', edit `config.status'
|
||||||
|
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||||
|
# (2) otherwise, pass the desired values on the `make' command line.
|
||||||
|
|
||||||
|
@SET_MAKE@
|
||||||
|
|
||||||
|
all-recursive install-data-recursive install-exec-recursive \
|
||||||
|
installdirs-recursive install-recursive uninstall-recursive \
|
||||||
|
check-recursive installcheck-recursive info-recursive dvi-recursive:
|
||||||
|
@set fnord $(MAKEFLAGS); amf=$$2; \
|
||||||
|
dot_seen=no; \
|
||||||
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
echo "Making $$target in $$subdir"; \
|
||||||
|
if test "$$subdir" = "."; then \
|
||||||
|
dot_seen=yes; \
|
||||||
|
local_target="$$target-am"; \
|
||||||
|
else \
|
||||||
|
local_target="$$target"; \
|
||||||
|
fi; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||||
|
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||||
|
done; \
|
||||||
|
if test "$$dot_seen" = "no"; then \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||||
|
fi; test -z "$$fail"
|
||||||
|
|
||||||
|
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||||
|
maintainer-clean-recursive:
|
||||||
|
@set fnord $(MAKEFLAGS); amf=$$2; \
|
||||||
|
dot_seen=no; \
|
||||||
|
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
rev="$$subdir $$rev"; \
|
||||||
|
test "$$subdir" = "." && dot_seen=yes; \
|
||||||
|
done; \
|
||||||
|
test "$$dot_seen" = "no" && rev=". $$rev"; \
|
||||||
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
|
for subdir in $$rev; do \
|
||||||
|
echo "Making $$target in $$subdir"; \
|
||||||
|
if test "$$subdir" = "."; then \
|
||||||
|
local_target="$$target-am"; \
|
||||||
|
else \
|
||||||
|
local_target="$$target"; \
|
||||||
|
fi; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||||
|
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||||
|
done && test -z "$$fail"
|
||||||
|
tags-recursive:
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||||
|
done
|
||||||
|
|
||||||
|
tags: TAGS
|
||||||
|
|
||||||
|
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||||
|
list='$(SOURCES) $(HEADERS)'; \
|
||||||
|
unique=`for i in $$list; do echo $$i; done | \
|
||||||
|
awk ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
here=`pwd` && cd $(srcdir) \
|
||||||
|
&& mkid -f$$here/ID $$unique $(LISP)
|
||||||
|
|
||||||
|
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
|
||||||
|
tags=; \
|
||||||
|
here=`pwd`; \
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
if test "$$subdir" = .; then :; else \
|
||||||
|
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
|
||||||
|
fi; \
|
||||||
|
done; \
|
||||||
|
list='$(SOURCES) $(HEADERS)'; \
|
||||||
|
unique=`for i in $$list; do echo $$i; done | \
|
||||||
|
awk ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|
||||||
|
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
|
||||||
|
|
||||||
|
mostlyclean-tags:
|
||||||
|
|
||||||
|
clean-tags:
|
||||||
|
|
||||||
|
distclean-tags:
|
||||||
|
-rm -f TAGS ID
|
||||||
|
|
||||||
|
maintainer-clean-tags:
|
||||||
|
|
||||||
|
distdir = $(PACKAGE)-$(VERSION)
|
||||||
|
top_distdir = $(distdir)
|
||||||
|
|
||||||
|
# This target untars the dist file and tries a VPATH configuration. Then
|
||||||
|
# it guarantees that the distribution is self-contained by making another
|
||||||
|
# tarfile.
|
||||||
|
distcheck: dist
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
|
||||||
|
mkdir $(distdir)/=build
|
||||||
|
mkdir $(distdir)/=inst
|
||||||
|
dc_install_base=`cd $(distdir)/=inst && pwd`; \
|
||||||
|
cd $(distdir)/=build \
|
||||||
|
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dist
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
@banner="$(distdir).tar.gz is ready for distribution"; \
|
||||||
|
dashes=`echo "$$banner" | sed s/./=/g`; \
|
||||||
|
echo "$$dashes"; \
|
||||||
|
echo "$$banner"; \
|
||||||
|
echo "$$dashes"
|
||||||
|
dist: distdir
|
||||||
|
-chmod -R a+r $(distdir)
|
||||||
|
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
dist-all: distdir
|
||||||
|
-chmod -R a+r $(distdir)
|
||||||
|
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
mkdir $(distdir)
|
||||||
|
-chmod 777 $(distdir)
|
||||||
|
here=`cd $(top_builddir) && pwd`; \
|
||||||
|
top_distdir=`cd $(distdir) && pwd`; \
|
||||||
|
distdir=`cd $(distdir) && pwd`; \
|
||||||
|
cd $(top_srcdir) \
|
||||||
|
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile
|
||||||
|
@for file in $(DISTFILES); do \
|
||||||
|
d=$(srcdir); \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
cp -pr $$/$$file $(distdir)/$$file; \
|
||||||
|
else \
|
||||||
|
test -f $(distdir)/$$file \
|
||||||
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||||
|
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
for subdir in $(SUBDIRS); do \
|
||||||
|
if test "$$subdir" = .; then :; else \
|
||||||
|
test -d $(distdir)/$$subdir \
|
||||||
|
|| mkdir $(distdir)/$$subdir \
|
||||||
|
|| exit 1; \
|
||||||
|
chmod 777 $(distdir)/$$subdir; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
|
||||||
|
|| exit 1; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
info-am:
|
||||||
|
info: info-recursive
|
||||||
|
dvi-am:
|
||||||
|
dvi: dvi-recursive
|
||||||
|
check-am: all-am
|
||||||
|
check: check-recursive
|
||||||
|
installcheck-am:
|
||||||
|
installcheck: installcheck-recursive
|
||||||
|
install-exec-am:
|
||||||
|
install-exec: install-exec-recursive
|
||||||
|
|
||||||
|
install-data-am:
|
||||||
|
install-data: install-data-recursive
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
install: install-recursive
|
||||||
|
uninstall-am:
|
||||||
|
uninstall: uninstall-recursive
|
||||||
|
all-am: Makefile
|
||||||
|
all-redirect: all-recursive
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs: installdirs-recursive
|
||||||
|
installdirs-am:
|
||||||
|
|
||||||
|
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||||
|
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
mostlyclean-am: mostlyclean-tags mostlyclean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-recursive
|
||||||
|
|
||||||
|
clean-am: clean-tags clean-generic mostlyclean-am
|
||||||
|
|
||||||
|
clean: clean-recursive
|
||||||
|
|
||||||
|
distclean-am: distclean-tags distclean-generic clean-am
|
||||||
|
|
||||||
|
distclean: distclean-recursive
|
||||||
|
-rm -f config.status
|
||||||
|
|
||||||
|
maintainer-clean-am: maintainer-clean-tags maintainer-clean-generic \
|
||||||
|
distclean-am
|
||||||
|
@echo "This command is intended for maintainers to use;"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-recursive
|
||||||
|
-rm -f config.status
|
||||||
|
|
||||||
|
.PHONY: install-data-recursive uninstall-data-recursive \
|
||||||
|
install-exec-recursive uninstall-exec-recursive installdirs-recursive \
|
||||||
|
uninstalldirs-recursive all-recursive check-recursive \
|
||||||
|
installcheck-recursive info-recursive dvi-recursive \
|
||||||
|
mostlyclean-recursive distclean-recursive clean-recursive \
|
||||||
|
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
|
||||||
|
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
|
||||||
|
dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
|
||||||
|
install-exec install-data-am install-data install-am install \
|
||||||
|
uninstall-am uninstall all-redirect all-am all installdirs-am \
|
||||||
|
installdirs mostlyclean-generic distclean-generic clean-generic \
|
||||||
|
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
||||||
|
|||||||
156
c/build-tools/aclocal.m4
vendored
Normal file
156
c/build-tools/aclocal.m4
vendored
Normal file
@@ -0,0 +1,156 @@
|
|||||||
|
dnl aclocal.m4 generated automatically by aclocal 1.4
|
||||||
|
|
||||||
|
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||||
|
dnl This file is free software; the Free Software Foundation
|
||||||
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
|
dnl with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
dnl This program is distributed in the hope that it will be useful,
|
||||||
|
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
dnl PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_TOP,
|
||||||
|
[dnl
|
||||||
|
RTEMS_TOPdir="$1";
|
||||||
|
AC_SUBST(RTEMS_TOPdir)
|
||||||
|
|
||||||
|
PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
|
||||||
|
AC_SUBST(PROJECT_ROOT)
|
||||||
|
|
||||||
|
RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
|
||||||
|
AC_SUBST(RTEMS_ROOT)
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
# Do all the work for Automake. This macro actually does too much --
|
||||||
|
# some checks are only needed if your package does certain things.
|
||||||
|
# But this isn't really a big deal.
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
|
dnl Usage:
|
||||||
|
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
|
||||||
|
|
||||||
|
AC_DEFUN(AM_INIT_AUTOMAKE,
|
||||||
|
[AC_REQUIRE([AC_PROG_INSTALL])
|
||||||
|
PACKAGE=[$1]
|
||||||
|
AC_SUBST(PACKAGE)
|
||||||
|
VERSION=[$2]
|
||||||
|
AC_SUBST(VERSION)
|
||||||
|
dnl test to see if srcdir already configured
|
||||||
|
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
||||||
|
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
||||||
|
fi
|
||||||
|
ifelse([$3],,
|
||||||
|
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
||||||
|
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
|
||||||
|
AC_REQUIRE([AM_SANITY_CHECK])
|
||||||
|
AC_REQUIRE([AC_ARG_PROGRAM])
|
||||||
|
dnl FIXME This is truly gross.
|
||||||
|
missing_dir=`cd $ac_aux_dir && pwd`
|
||||||
|
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
|
||||||
|
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
|
||||||
|
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
|
||||||
|
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
|
||||||
|
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
|
||||||
|
AC_REQUIRE([AC_PROG_MAKE_SET])])
|
||||||
|
|
||||||
|
#
|
||||||
|
# Check to make sure that the build environment is sane.
|
||||||
|
#
|
||||||
|
|
||||||
|
AC_DEFUN(AM_SANITY_CHECK,
|
||||||
|
[AC_MSG_CHECKING([whether build environment is sane])
|
||||||
|
# Just in case
|
||||||
|
sleep 1
|
||||||
|
echo timestamp > conftestfile
|
||||||
|
# Do `set' in a subshell so we don't clobber the current shell's
|
||||||
|
# arguments. Must try -L first in case configure is actually a
|
||||||
|
# symlink; some systems play weird games with the mod time of symlinks
|
||||||
|
# (eg FreeBSD returns the mod time of the symlink's containing
|
||||||
|
# directory).
|
||||||
|
if (
|
||||||
|
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
||||||
|
if test "[$]*" = "X"; then
|
||||||
|
# -L didn't work.
|
||||||
|
set X `ls -t $srcdir/configure conftestfile`
|
||||||
|
fi
|
||||||
|
if test "[$]*" != "X $srcdir/configure conftestfile" \
|
||||||
|
&& test "[$]*" != "X conftestfile $srcdir/configure"; then
|
||||||
|
|
||||||
|
# If neither matched, then we have a broken ls. This can happen
|
||||||
|
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
||||||
|
# broken ls alias from the environment. This has actually
|
||||||
|
# happened. Such a system could not be considered "sane".
|
||||||
|
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
||||||
|
alias in your environment])
|
||||||
|
fi
|
||||||
|
|
||||||
|
test "[$]2" = conftestfile
|
||||||
|
)
|
||||||
|
then
|
||||||
|
# Ok.
|
||||||
|
:
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([newly created file is older than distributed files!
|
||||||
|
Check your system clock])
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
AC_MSG_RESULT(yes)])
|
||||||
|
|
||||||
|
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
|
||||||
|
dnl The program must properly implement --version.
|
||||||
|
AC_DEFUN(AM_MISSING_PROG,
|
||||||
|
[AC_MSG_CHECKING(for working $2)
|
||||||
|
# Run test in a subshell; some versions of sh will print an error if
|
||||||
|
# an executable is not found, even if stderr is redirected.
|
||||||
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
||||||
|
if ($2 --version) < /dev/null > /dev/null 2>&1; then
|
||||||
|
$1=$2
|
||||||
|
AC_MSG_RESULT(found)
|
||||||
|
else
|
||||||
|
$1="$3/missing $2"
|
||||||
|
AC_MSG_RESULT(missing)
|
||||||
|
fi
|
||||||
|
AC_SUBST($1)])
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PATH_KSH,
|
||||||
|
[
|
||||||
|
dnl NOTE: prefer bash over ksh over sh
|
||||||
|
AC_PATH_PROGS(KSH,bash ksh sh)
|
||||||
|
if test -z "$KSH"; then
|
||||||
|
dnl NOTE: This cannot happen -- /bin/sh must always exist
|
||||||
|
AC_MSG_ERROR(
|
||||||
|
[***]
|
||||||
|
[ Cannot determine a usable shell bash/ksh/sh]
|
||||||
|
[ Please contact your system administrator] );
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
# Like AC_CONFIG_HEADER, but automatically create stamp file.
|
||||||
|
|
||||||
|
AC_DEFUN(AM_CONFIG_HEADER,
|
||||||
|
[AC_PREREQ([2.12])
|
||||||
|
AC_CONFIG_HEADER([$1])
|
||||||
|
dnl When config.status generates a header, we must update the stamp-h file.
|
||||||
|
dnl This file resides in the same directory as the config header
|
||||||
|
dnl that is generated. We must strip everything past the first ":",
|
||||||
|
dnl and everything past the last "/".
|
||||||
|
AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
|
||||||
|
ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
|
||||||
|
<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
|
||||||
|
<<am_indx=1
|
||||||
|
for am_file in <<$1>>; do
|
||||||
|
case " <<$>>CONFIG_HEADERS " in
|
||||||
|
*" <<$>>am_file "*<<)>>
|
||||||
|
echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
am_indx=`expr "<<$>>am_indx" + 1`
|
||||||
|
done<<>>dnl>>)
|
||||||
|
changequote([,]))])
|
||||||
|
|
||||||
1622
c/build-tools/configure
vendored
Normal file
1622
c/build-tools/configure
vendored
Normal file
File diff suppressed because it is too large
Load Diff
30
c/build-tools/configure.in
Normal file
30
c/build-tools/configure.in
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AC_PREREQ(2.13)
|
||||||
|
AC_INIT(scripts)
|
||||||
|
AC_CONFIG_AUX_DIR(../..)
|
||||||
|
RTEMS_TOP(../..)
|
||||||
|
|
||||||
|
AC_CANONICAL_HOST
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE(rtems-build-tools,4.1.0,no)
|
||||||
|
AC_EXEEXT
|
||||||
|
|
||||||
|
AC_PROG_CC
|
||||||
|
AC_CHECK_FUNCS(strerror)
|
||||||
|
|
||||||
|
RTEMS_PATH_KSH
|
||||||
|
|
||||||
|
AM_CONFIG_HEADER(src/config.h)
|
||||||
|
|
||||||
|
AC_OUTPUT(
|
||||||
|
Makefile
|
||||||
|
src/Makefile
|
||||||
|
scripts/Makefile
|
||||||
|
scripts/install-if-change
|
||||||
|
scripts/lock-directory
|
||||||
|
scripts/rcs-clean
|
||||||
|
scripts/unlock-directory
|
||||||
|
)
|
||||||
8
c/build-tools/os/Makefile.am
Normal file
8
c/build-tools/os/Makefile.am
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
|
# FIXME: Is this subdirectory still in use ?
|
||||||
|
## SUBDIRS = msdos
|
||||||
23
c/build-tools/scripts/Makefile.am
Normal file
23
c/build-tools/scripts/Makefile.am
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
|
bin_SCRIPTS=\
|
||||||
|
install-if-change \
|
||||||
|
lock-directory \
|
||||||
|
unlock-directory \
|
||||||
|
rcs-clean
|
||||||
|
|
||||||
|
noinst_SCRIPTS = search-id.sh
|
||||||
|
|
||||||
|
#
|
||||||
|
# HACK: install to the build-tree
|
||||||
|
#
|
||||||
|
install-exec-local: $(bin_SCRIPTS)
|
||||||
|
$(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
|
||||||
|
$(INSTALL_SCRIPT) $(bin_SCRIPTS) \
|
||||||
|
$(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
|
||||||
|
|
||||||
|
preinstall: install-exec-local
|
||||||
@@ -1,46 +1,231 @@
|
|||||||
|
# Makefile.in generated automatically by automake 1.4 from Makefile.am
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
#
|
#
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
# RTEMS build tools
|
|
||||||
# NOTE: of course we can't use any of these tools
|
|
||||||
# in this Makefile. Most notably: install-if-change
|
|
||||||
#
|
|
||||||
|
|
||||||
@SET_MAKE@
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
top_builddir = ../../..
|
VPATH = @srcdir@
|
||||||
subdir = c/build-tools/scripts
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
|
bindir = @bindir@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
datadir = @datadir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
libdir = @libdir@
|
||||||
|
infodir = @infodir@
|
||||||
|
mandir = @mandir@
|
||||||
|
includedir = @includedir@
|
||||||
|
oldincludedir = /usr/include
|
||||||
|
|
||||||
|
DESTDIR =
|
||||||
|
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
|
||||||
|
top_builddir = ..
|
||||||
|
|
||||||
|
ACLOCAL = @ACLOCAL@
|
||||||
|
AUTOCONF = @AUTOCONF@
|
||||||
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
CC = @CC@
|
||||||
|
EXEEXT = @EXEEXT@
|
||||||
|
KSH = @KSH@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
PROJECT_ROOT = @PROJECT_ROOT@
|
PROJECT_ROOT = @PROJECT_ROOT@
|
||||||
|
RTEMS_ROOT = @RTEMS_ROOT@
|
||||||
|
RTEMS_TOPdir = @RTEMS_TOPdir@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
|
||||||
VPATH = @srcdir@
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
|
bin_SCRIPTS = install-if-change lock-directory unlock-directory rcs-clean
|
||||||
include $(RTEMS_ROOT)/make/leaf.cfg
|
|
||||||
|
|
||||||
DESTDIR=$(PROJECT_RELEASE)/build-tools
|
|
||||||
|
|
||||||
BUILD_PGMS=install-if-change rcs-clean lock-directory unlock-directory
|
noinst_SCRIPTS = search-id.sh
|
||||||
PGMS = $(BUILD_PGMS) search-id.sh
|
mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
|
||||||
|
CONFIG_HEADER = ../src/config.h
|
||||||
|
CONFIG_CLEAN_FILES = install-if-change lock-directory rcs-clean \
|
||||||
|
unlock-directory
|
||||||
|
SCRIPTS = $(bin_SCRIPTS) $(noinst_SCRIPTS)
|
||||||
|
|
||||||
CLEAN_ADDITIONS += $(BUILD_PGMS)
|
DIST_COMMON = README Makefile.am Makefile.in install-if-change.in \
|
||||||
|
lock-directory.in rcs-clean.in unlock-directory.in
|
||||||
|
|
||||||
INSTALLED_PGMS=$(PGMS:%=$(DESTDIR)/%)
|
|
||||||
|
|
||||||
all: $(DESTDIR) $(PGMS) install
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
$(DESTDIR):
|
TAR = tar
|
||||||
@top_srcdir@/mkinstalldirs $@
|
GZIP_ENV = --best
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --foreign scripts/Makefile
|
||||||
|
|
||||||
$(INSTALLED_PGMS): $(PGMS)
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||||
$(INSTALL) $(INSTBINFLAGS) $^ $(DESTDIR)
|
|
||||||
|
|
||||||
install: $(DESTDIR) $(INSTALLED_PGMS)
|
|
||||||
|
|
||||||
%: $(srcdir)/%.in $(top_builddir)/config.status
|
|
||||||
cd $(top_builddir) \
|
cd $(top_builddir) \
|
||||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
install-if-change: $(top_builddir)/config.status install-if-change.in
|
||||||
|
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
lock-directory: $(top_builddir)/config.status lock-directory.in
|
||||||
|
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
rcs-clean: $(top_builddir)/config.status rcs-clean.in
|
||||||
|
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
unlock-directory: $(top_builddir)/config.status unlock-directory.in
|
||||||
|
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
install-binSCRIPTS: $(bin_SCRIPTS)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
||||||
|
@list='$(bin_SCRIPTS)'; for p in $$list; do \
|
||||||
|
if test -f $$p; then \
|
||||||
|
echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
|
||||||
|
$(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
|
||||||
|
else if test -f $(srcdir)/$$p; then \
|
||||||
|
echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
|
||||||
|
$(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
|
||||||
|
else :; fi; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-binSCRIPTS:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
list='$(bin_SCRIPTS)'; for p in $$list; do \
|
||||||
|
rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
|
||||||
|
done
|
||||||
|
tags: TAGS
|
||||||
|
TAGS:
|
||||||
|
|
||||||
|
|
||||||
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||||
|
|
||||||
|
subdir = scripts
|
||||||
|
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
here=`cd $(top_builddir) && pwd`; \
|
||||||
|
top_distdir=`cd $(top_distdir) && pwd`; \
|
||||||
|
distdir=`cd $(distdir) && pwd`; \
|
||||||
|
cd $(top_srcdir) \
|
||||||
|
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign scripts/Makefile
|
||||||
|
@for file in $(DISTFILES); do \
|
||||||
|
d=$(srcdir); \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
cp -pr $$/$$file $(distdir)/$$file; \
|
||||||
|
else \
|
||||||
|
test -f $(distdir)/$$file \
|
||||||
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||||
|
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
info-am:
|
||||||
|
info: info-am
|
||||||
|
dvi-am:
|
||||||
|
dvi: dvi-am
|
||||||
|
check-am: all-am
|
||||||
|
check: check-am
|
||||||
|
installcheck-am:
|
||||||
|
installcheck: installcheck-am
|
||||||
|
install-exec-am: install-binSCRIPTS install-exec-local
|
||||||
|
install-exec: install-exec-am
|
||||||
|
|
||||||
|
install-data-am:
|
||||||
|
install-data: install-data-am
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
install: install-am
|
||||||
|
uninstall-am: uninstall-binSCRIPTS
|
||||||
|
uninstall: uninstall-am
|
||||||
|
all-am: Makefile $(SCRIPTS)
|
||||||
|
all-redirect: all-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs:
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
||||||
|
|
||||||
|
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||||
|
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
mostlyclean-am: mostlyclean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-am
|
||||||
|
|
||||||
|
clean-am: clean-generic mostlyclean-am
|
||||||
|
|
||||||
|
clean: clean-am
|
||||||
|
|
||||||
|
distclean-am: distclean-generic clean-am
|
||||||
|
|
||||||
|
distclean: distclean-am
|
||||||
|
|
||||||
|
maintainer-clean-am: maintainer-clean-generic distclean-am
|
||||||
|
@echo "This command is intended for maintainers to use;"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-am
|
||||||
|
|
||||||
|
.PHONY: uninstall-binSCRIPTS install-binSCRIPTS tags distdir info-am \
|
||||||
|
info dvi-am dvi check check-am installcheck-am installcheck \
|
||||||
|
install-exec-local install-exec-am install-exec install-data-am \
|
||||||
|
install-data install-am install uninstall-am uninstall all-redirect \
|
||||||
|
all-am all installdirs mostlyclean-generic distclean-generic \
|
||||||
|
clean-generic maintainer-clean-generic clean mostlyclean distclean \
|
||||||
|
maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# HACK: install to the build-tree
|
||||||
|
#
|
||||||
|
install-exec-local: $(bin_SCRIPTS)
|
||||||
|
$(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
|
||||||
|
$(INSTALL_SCRIPT) $(bin_SCRIPTS) \
|
||||||
|
$(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
|
||||||
|
|
||||||
|
preinstall: install-exec-local
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
||||||
|
|||||||
22
c/build-tools/src/Makefile.am
Normal file
22
c/build-tools/src/Makefile.am
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
|
bin_PROGRAMS=cklength eolstrip packhex unhex
|
||||||
|
|
||||||
|
cklength_SOURCES = cklength.c
|
||||||
|
eolstrip_SOURCES = eolstrip.c
|
||||||
|
packhex_SOURCES = packhex.c
|
||||||
|
unhex_SOURCES = unhex.c
|
||||||
|
|
||||||
|
#
|
||||||
|
# HACK: install to the build-tree
|
||||||
|
#
|
||||||
|
install-exec-local: $(bin_PROGRAMS)
|
||||||
|
$(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
|
||||||
|
$(INSTALL_PROGRAM) $(bin_PROGRAMS) \
|
||||||
|
$(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
|
||||||
|
|
||||||
|
preinstall: install-exec-local
|
||||||
@@ -1,81 +1,397 @@
|
|||||||
|
# Makefile.in generated automatically by automake 1.4 from Makefile.am
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
#
|
#
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
|
|
||||||
@SET_MAKE@
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
top_builddir = ../../..
|
VPATH = @srcdir@
|
||||||
subdir = c/build-tools/src
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
|
bindir = @bindir@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
datadir = @datadir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
libdir = @libdir@
|
||||||
|
infodir = @infodir@
|
||||||
|
mandir = @mandir@
|
||||||
|
includedir = @includedir@
|
||||||
|
oldincludedir = /usr/include
|
||||||
|
|
||||||
|
DESTDIR =
|
||||||
|
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
|
||||||
|
top_builddir = ..
|
||||||
|
|
||||||
|
ACLOCAL = @ACLOCAL@
|
||||||
|
AUTOCONF = @AUTOCONF@
|
||||||
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
CC = @CC@
|
||||||
|
EXEEXT = @EXEEXT@
|
||||||
|
KSH = @KSH@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
PROJECT_ROOT = @PROJECT_ROOT@
|
PROJECT_ROOT = @PROJECT_ROOT@
|
||||||
|
RTEMS_ROOT = @RTEMS_ROOT@
|
||||||
|
RTEMS_TOPdir = @RTEMS_TOPdir@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
|
||||||
exec_prefix = @exec_prefix@
|
AUTOMAKE_OPTIONS = foreign
|
||||||
bindir = @bindir@
|
|
||||||
libdir = @libdir@
|
|
||||||
includedir = @includedir@
|
|
||||||
manext = 1
|
|
||||||
mandir = @mandir@/man$(manext)
|
|
||||||
|
|
||||||
# FIXME: $EXEEXT should be set in a central cfg-file used for native
|
bin_PROGRAMS = cklength eolstrip packhex unhex
|
||||||
# compiling (e.g. gcc.cfg) instead of setting EXEEXE here.
|
|
||||||
EXEEXT=@EXEEXT@
|
|
||||||
|
|
||||||
VPATH = @srcdir@
|
cklength_SOURCES = cklength.c
|
||||||
|
eolstrip_SOURCES = eolstrip.c
|
||||||
|
packhex_SOURCES = packhex.c
|
||||||
|
unhex_SOURCES = unhex.c
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
|
||||||
|
CONFIG_HEADER = config.h
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
bin_PROGRAMS = cklength$(EXEEXT) eolstrip$(EXEEXT) packhex$(EXEEXT) \
|
||||||
|
unhex$(EXEEXT)
|
||||||
|
PROGRAMS = $(bin_PROGRAMS)
|
||||||
|
|
||||||
# we use host compiler in this directory
|
|
||||||
USE_HOST_COMPILER=yes
|
|
||||||
|
|
||||||
# C source names, if any, go here -- minus the .c
|
DEFS = @DEFS@ -I. -I$(srcdir) -I.
|
||||||
C_PIECES=cklength eolstrip packhex unhex
|
CPPFLAGS = @CPPFLAGS@
|
||||||
C_FILES=$(C_PIECES:%=%.c)
|
LDFLAGS = @LDFLAGS@
|
||||||
C_O_FILES=$(C_PIECES:%=$(ARCH)/%.o)
|
LIBS = @LIBS@
|
||||||
|
cklength_OBJECTS = cklength.o
|
||||||
|
cklength_LDADD = $(LDADD)
|
||||||
|
cklength_DEPENDENCIES =
|
||||||
|
cklength_LDFLAGS =
|
||||||
|
eolstrip_OBJECTS = eolstrip.o
|
||||||
|
eolstrip_LDADD = $(LDADD)
|
||||||
|
eolstrip_DEPENDENCIES =
|
||||||
|
eolstrip_LDFLAGS =
|
||||||
|
packhex_OBJECTS = packhex.o
|
||||||
|
packhex_LDADD = $(LDADD)
|
||||||
|
packhex_DEPENDENCIES =
|
||||||
|
packhex_LDFLAGS =
|
||||||
|
unhex_OBJECTS = unhex.o
|
||||||
|
unhex_LDADD = $(LDADD)
|
||||||
|
unhex_DEPENDENCIES =
|
||||||
|
unhex_LDFLAGS =
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
|
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||||
|
CCLD = $(CC)
|
||||||
|
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||||
|
DIST_COMMON = ./stamp-h.in Makefile.am Makefile.in config.h.in
|
||||||
|
|
||||||
H_FILES=
|
|
||||||
|
|
||||||
SRCS=$(C_FILES) $(CC_FILES) $(H_FILES)
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
|
|
||||||
|
|
||||||
# FIXME: building into $(ARCH) doesn't make sense for host programs
|
TAR = tar
|
||||||
PGMS=$(ARCH)/cklength$(EXEEXT) $(ARCH)/eolstrip$(EXEEXT) \
|
GZIP_ENV = --best
|
||||||
$(ARCH)/packhex$(EXEEXT) $(ARCH)/unhex$(EXEEXT)
|
DEP_FILES = .deps/cklength.P .deps/eolstrip.P .deps/packhex.P \
|
||||||
|
.deps/unhex.P
|
||||||
|
SOURCES = $(cklength_SOURCES) $(eolstrip_SOURCES) $(packhex_SOURCES) $(unhex_SOURCES)
|
||||||
|
OBJECTS = $(cklength_OBJECTS) $(eolstrip_OBJECTS) $(packhex_OBJECTS) $(unhex_OBJECTS)
|
||||||
|
|
||||||
include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
|
all: all-redirect
|
||||||
include $(RTEMS_ROOT)/make/leaf.cfg
|
.SUFFIXES:
|
||||||
|
.SUFFIXES: .S .c .o .s
|
||||||
|
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile
|
||||||
|
|
||||||
#
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||||
# (OPTIONAL) Add local stuff here using +=
|
|
||||||
#
|
|
||||||
|
|
||||||
DEFINES +=
|
|
||||||
CPPFLAGS += -I.
|
|
||||||
CFLAGS +=
|
|
||||||
|
|
||||||
LD_PATHS +=
|
|
||||||
LD_LIBS +=
|
|
||||||
LDFLAGS +=
|
|
||||||
|
|
||||||
#
|
|
||||||
# Add your list of files to delete here. The config files
|
|
||||||
# already know how to delete some stuff, so you may want
|
|
||||||
# to just run 'make clean' first to see what gets missed.
|
|
||||||
# 'make clobber' already includes 'make clean'
|
|
||||||
#
|
|
||||||
|
|
||||||
CLEAN_ADDITIONS += $(HOST_ARCH)
|
|
||||||
CLOBBER_ADDITIONS +=
|
|
||||||
|
|
||||||
DESTDIR=${PROJECT_RELEASE}/build-tools
|
|
||||||
|
|
||||||
$(DESTDIR):
|
|
||||||
@top_srcdir@/mkinstalldirs $@
|
|
||||||
|
|
||||||
all: $(ARCH) $(DESTDIR) $(SRCS) $(PGMS)
|
|
||||||
$(INSTALL) $(INSTBINFLAGS) $(PGMS) $(DESTDIR)
|
|
||||||
|
|
||||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
||||||
cd $(top_builddir) \
|
cd $(top_builddir) \
|
||||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
|
||||||
|
config.h: stamp-h
|
||||||
|
@if test ! -f $@; then \
|
||||||
|
rm -f stamp-h; \
|
||||||
|
$(MAKE) stamp-h; \
|
||||||
|
else :; fi
|
||||||
|
stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES= CONFIG_HEADERS=src/config.h \
|
||||||
|
$(SHELL) ./config.status
|
||||||
|
@echo timestamp > stamp-h 2> /dev/null
|
||||||
|
$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
|
||||||
|
@if test ! -f $@; then \
|
||||||
|
rm -f $(srcdir)/stamp-h.in; \
|
||||||
|
$(MAKE) $(srcdir)/stamp-h.in; \
|
||||||
|
else :; fi
|
||||||
|
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||||
|
cd $(top_srcdir) && $(AUTOHEADER)
|
||||||
|
@echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
|
||||||
|
|
||||||
|
mostlyclean-hdr:
|
||||||
|
|
||||||
|
clean-hdr:
|
||||||
|
|
||||||
|
distclean-hdr:
|
||||||
|
-rm -f config.h
|
||||||
|
|
||||||
|
maintainer-clean-hdr:
|
||||||
|
|
||||||
|
mostlyclean-binPROGRAMS:
|
||||||
|
|
||||||
|
clean-binPROGRAMS:
|
||||||
|
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
|
||||||
|
|
||||||
|
distclean-binPROGRAMS:
|
||||||
|
|
||||||
|
maintainer-clean-binPROGRAMS:
|
||||||
|
|
||||||
|
install-binPROGRAMS: $(bin_PROGRAMS)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
||||||
|
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||||
|
if test -f $$p; then \
|
||||||
|
echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
|
||||||
|
$(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
|
||||||
|
else :; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-binPROGRAMS:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||||
|
rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
|
||||||
|
done
|
||||||
|
|
||||||
|
.s.o:
|
||||||
|
$(COMPILE) -c $<
|
||||||
|
|
||||||
|
.S.o:
|
||||||
|
$(COMPILE) -c $<
|
||||||
|
|
||||||
|
mostlyclean-compile:
|
||||||
|
-rm -f *.o core *.core
|
||||||
|
|
||||||
|
clean-compile:
|
||||||
|
|
||||||
|
distclean-compile:
|
||||||
|
-rm -f *.tab.c
|
||||||
|
|
||||||
|
maintainer-clean-compile:
|
||||||
|
|
||||||
|
cklength$(EXEEXT): $(cklength_OBJECTS) $(cklength_DEPENDENCIES)
|
||||||
|
@rm -f cklength$(EXEEXT)
|
||||||
|
$(LINK) $(cklength_LDFLAGS) $(cklength_OBJECTS) $(cklength_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
eolstrip$(EXEEXT): $(eolstrip_OBJECTS) $(eolstrip_DEPENDENCIES)
|
||||||
|
@rm -f eolstrip$(EXEEXT)
|
||||||
|
$(LINK) $(eolstrip_LDFLAGS) $(eolstrip_OBJECTS) $(eolstrip_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
packhex$(EXEEXT): $(packhex_OBJECTS) $(packhex_DEPENDENCIES)
|
||||||
|
@rm -f packhex$(EXEEXT)
|
||||||
|
$(LINK) $(packhex_LDFLAGS) $(packhex_OBJECTS) $(packhex_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
unhex$(EXEEXT): $(unhex_OBJECTS) $(unhex_DEPENDENCIES)
|
||||||
|
@rm -f unhex$(EXEEXT)
|
||||||
|
$(LINK) $(unhex_LDFLAGS) $(unhex_OBJECTS) $(unhex_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
tags: TAGS
|
||||||
|
|
||||||
|
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||||
|
list='$(SOURCES) $(HEADERS)'; \
|
||||||
|
unique=`for i in $$list; do echo $$i; done | \
|
||||||
|
awk ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
here=`pwd` && cd $(srcdir) \
|
||||||
|
&& mkid -f$$here/ID $$unique $(LISP)
|
||||||
|
|
||||||
|
TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
|
||||||
|
tags=; \
|
||||||
|
here=`pwd`; \
|
||||||
|
list='$(SOURCES) $(HEADERS)'; \
|
||||||
|
unique=`for i in $$list; do echo $$i; done | \
|
||||||
|
awk ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
|
||||||
|
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
|
||||||
|
|
||||||
|
mostlyclean-tags:
|
||||||
|
|
||||||
|
clean-tags:
|
||||||
|
|
||||||
|
distclean-tags:
|
||||||
|
-rm -f TAGS ID
|
||||||
|
|
||||||
|
maintainer-clean-tags:
|
||||||
|
|
||||||
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||||
|
|
||||||
|
subdir = src
|
||||||
|
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
here=`cd $(top_builddir) && pwd`; \
|
||||||
|
top_distdir=`cd $(top_distdir) && pwd`; \
|
||||||
|
distdir=`cd $(distdir) && pwd`; \
|
||||||
|
cd $(top_srcdir) \
|
||||||
|
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign src/Makefile
|
||||||
|
@for file in $(DISTFILES); do \
|
||||||
|
d=$(srcdir); \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
cp -pr $$/$$file $(distdir)/$$file; \
|
||||||
|
else \
|
||||||
|
test -f $(distdir)/$$file \
|
||||||
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||||
|
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
|
||||||
|
|
||||||
|
-include $(DEP_FILES)
|
||||||
|
|
||||||
|
mostlyclean-depend:
|
||||||
|
|
||||||
|
clean-depend:
|
||||||
|
|
||||||
|
distclean-depend:
|
||||||
|
-rm -rf .deps
|
||||||
|
|
||||||
|
maintainer-clean-depend:
|
||||||
|
|
||||||
|
%.o: %.c
|
||||||
|
@echo '$(COMPILE) -c $<'; \
|
||||||
|
$(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
|
||||||
|
@-cp .deps/$(*F).pp .deps/$(*F).P; \
|
||||||
|
tr ' ' '\012' < .deps/$(*F).pp \
|
||||||
|
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
|
||||||
|
>> .deps/$(*F).P; \
|
||||||
|
rm .deps/$(*F).pp
|
||||||
|
|
||||||
|
%.lo: %.c
|
||||||
|
@echo '$(LTCOMPILE) -c $<'; \
|
||||||
|
$(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
|
||||||
|
@-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
|
||||||
|
< .deps/$(*F).pp > .deps/$(*F).P; \
|
||||||
|
tr ' ' '\012' < .deps/$(*F).pp \
|
||||||
|
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
|
||||||
|
>> .deps/$(*F).P; \
|
||||||
|
rm -f .deps/$(*F).pp
|
||||||
|
info-am:
|
||||||
|
info: info-am
|
||||||
|
dvi-am:
|
||||||
|
dvi: dvi-am
|
||||||
|
check-am: all-am
|
||||||
|
check: check-am
|
||||||
|
installcheck-am:
|
||||||
|
installcheck: installcheck-am
|
||||||
|
all-recursive-am: config.h
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||||
|
|
||||||
|
install-exec-am: install-binPROGRAMS install-exec-local
|
||||||
|
install-exec: install-exec-am
|
||||||
|
|
||||||
|
install-data-am:
|
||||||
|
install-data: install-data-am
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
install: install-am
|
||||||
|
uninstall-am: uninstall-binPROGRAMS
|
||||||
|
uninstall: uninstall-am
|
||||||
|
all-am: Makefile $(PROGRAMS) config.h
|
||||||
|
all-redirect: all-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs:
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
||||||
|
|
||||||
|
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||||
|
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS \
|
||||||
|
mostlyclean-compile mostlyclean-tags mostlyclean-depend \
|
||||||
|
mostlyclean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-am
|
||||||
|
|
||||||
|
clean-am: clean-hdr clean-binPROGRAMS clean-compile clean-tags \
|
||||||
|
clean-depend clean-generic mostlyclean-am
|
||||||
|
|
||||||
|
clean: clean-am
|
||||||
|
|
||||||
|
distclean-am: distclean-hdr distclean-binPROGRAMS distclean-compile \
|
||||||
|
distclean-tags distclean-depend distclean-generic \
|
||||||
|
clean-am
|
||||||
|
|
||||||
|
distclean: distclean-am
|
||||||
|
|
||||||
|
maintainer-clean-am: maintainer-clean-hdr maintainer-clean-binPROGRAMS \
|
||||||
|
maintainer-clean-compile maintainer-clean-tags \
|
||||||
|
maintainer-clean-depend maintainer-clean-generic \
|
||||||
|
distclean-am
|
||||||
|
@echo "This command is intended for maintainers to use;"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-am
|
||||||
|
|
||||||
|
.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
|
||||||
|
mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
|
||||||
|
maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
|
||||||
|
mostlyclean-compile distclean-compile clean-compile \
|
||||||
|
maintainer-clean-compile tags mostlyclean-tags distclean-tags \
|
||||||
|
clean-tags maintainer-clean-tags distdir mostlyclean-depend \
|
||||||
|
distclean-depend clean-depend maintainer-clean-depend info-am info \
|
||||||
|
dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
|
||||||
|
install-exec-local install-exec-am install-exec install-data-am \
|
||||||
|
install-data install-am install uninstall-am uninstall all-redirect \
|
||||||
|
all-am all installdirs mostlyclean-generic distclean-generic \
|
||||||
|
clean-generic maintainer-clean-generic clean mostlyclean distclean \
|
||||||
|
maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# HACK: install to the build-tree
|
||||||
|
#
|
||||||
|
install-exec-local: $(bin_PROGRAMS)
|
||||||
|
$(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
|
||||||
|
$(INSTALL_PROGRAM) $(bin_PROGRAMS) \
|
||||||
|
$(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
|
||||||
|
|
||||||
|
preinstall: install-exec-local
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
/*
|
/* src/config.h.in. Generated automatically from configure.in by autoheader. */
|
||||||
* This file is editted automatically by autoconf.
|
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Define if you have the strerror function. */
|
/* Define if you have the strerror function. */
|
||||||
#undef HAVE_STRERROR
|
#undef HAVE_STRERROR
|
||||||
|
|
||||||
|
|||||||
1
c/build-tools/src/stamp-h.in
Normal file
1
c/build-tools/src/stamp-h.in
Normal file
@@ -0,0 +1 @@
|
|||||||
|
timestamp
|
||||||
@@ -61,7 +61,7 @@ ${LIB}: ${SRCS} ${OBJS}
|
|||||||
$(make-library)
|
$(make-library)
|
||||||
|
|
||||||
preinstall :
|
preinstall :
|
||||||
$(MKDIR) $(PROJECT_INCLUDE)/libcpu
|
$(RTEMS_ROOT)/mkinstalldirs $(PROJECT_INCLUDE)/libcpu
|
||||||
$(INSTALL_CHANGE) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/libcpu
|
$(INSTALL_CHANGE) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/libcpu
|
||||||
|
|
||||||
all: ${ARCH} $(SRCS) preinstall $(OBJ) $(LIB)
|
all: ${ARCH} $(SRCS) preinstall $(OBJ) $(LIB)
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ include $(RTEMS_ROOT)/make/leaf.cfg
|
|||||||
all: install
|
all: install
|
||||||
|
|
||||||
install:
|
install:
|
||||||
test -d $(PROJECT_INCLUDE)/mpc860 || $(MKDIR) $(PROJECT_INCLUDE)/mpc860
|
$(RTEMS_ROOT)/mkinstalldirs $(PROJECT_INCLUDE)/mpc860
|
||||||
$(INSTALL_CHANGE) -m 444 $(H_FILES) $(PROJECT_INCLUDE)/mpc860
|
$(INSTALL_CHANGE) -m 444 $(H_FILES) $(PROJECT_INCLUDE)/mpc860
|
||||||
|
|
||||||
all: FORCEIT
|
all: FORCEIT
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ all: install
|
|||||||
# file name conflicts
|
# file name conflicts
|
||||||
|
|
||||||
install:
|
install:
|
||||||
test -d $(PROJECT_INCLUDE)/sh || $(MKDIR) $(PROJECT_INCLUDE)/sh
|
$(RTEMS_ROOT)/mkinstalldirs $(PROJECT_INCLUDE)/sh
|
||||||
$(INSTALL_CHANGE) -m 444 $(H_FILES) $(PROJECT_INCLUDE)/sh
|
$(INSTALL_CHANGE) -m 444 $(H_FILES) $(PROJECT_INCLUDE)/sh
|
||||||
|
|
||||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ CLOBBER_ADDITIONS +=
|
|||||||
|
|
||||||
$(LIB): ${LIBS} $(RELS)
|
$(LIB): ${LIBS} $(RELS)
|
||||||
$(RM) -r $(ARCH)
|
$(RM) -r $(ARCH)
|
||||||
$(MKDIR) $(ARCH)
|
mkdir $(ARCH)
|
||||||
cd $(ARCH); for lib in $(LIBS:%=../%); do \
|
cd $(ARCH); for lib in $(LIBS:%=../%); do \
|
||||||
$(AR) -xv $$lib; \
|
$(AR) -xv $$lib; \
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ CLOBBER_ADDITIONS +=
|
|||||||
|
|
||||||
$(LIB): ${LIBS} $(RELS)
|
$(LIB): ${LIBS} $(RELS)
|
||||||
$(RM) -r $(ARCH)
|
$(RM) -r $(ARCH)
|
||||||
$(MKDIR) $(ARCH)
|
mkdir $(ARCH)
|
||||||
cd $(ARCH); for lib in $(LIBS:%=../%); do \
|
cd $(ARCH); for lib in $(LIBS:%=../%); do \
|
||||||
$(AR) -xv $$lib; \
|
$(AR) -xv $$lib; \
|
||||||
done
|
done
|
||||||
|
|||||||
213
configure.in
213
configure.in
@@ -2,102 +2,27 @@ dnl Process this file with autoconf to produce a configure script.
|
|||||||
dnl
|
dnl
|
||||||
dnl $Id$
|
dnl $Id$
|
||||||
|
|
||||||
AC_PREREQ(2.12)
|
AC_PREREQ(2.13)
|
||||||
AC_INIT(README)
|
AC_INIT(README)
|
||||||
RTEMS_TOP(.)
|
RTEMS_TOP(.)
|
||||||
|
|
||||||
dnl Checks for programs.
|
dnl Checks for programs.
|
||||||
AC_PROG_MAKE_SET
|
AC_PROG_MAKE_SET
|
||||||
AC_CANONICAL_SYSTEM
|
AC_CANONICAL_SYSTEM
|
||||||
|
|
||||||
AC_ARG_WITH(cross-host,[ --with-cross-host=HOST host (cygnus)], \
|
AC_ARG_WITH(cross-host,[ --with-cross-host=HOST host (cygnus)], \
|
||||||
host=$withval)
|
host=$withval)
|
||||||
|
|
||||||
AC_ARG_ENABLE(gmake-print-directory, \
|
RTEMS_ENABLE_GMAKE_PRINT
|
||||||
[ --enable-gmake-print-directory enable GNU Make's print directory], \
|
RTEMS_ENABLE_MULTIPROCESSING
|
||||||
[case "${enableval}" in
|
RTEMS_ENABLE_POSIX
|
||||||
yes) RTEMS_USE_OWN_PDIR=no ;;
|
RTEMS_ENABLE_NETWORKING
|
||||||
no) RTEMS_USE_OWN_PDIR=yes ;;
|
RTEMS_ENABLE_RDBG
|
||||||
*) AC_MSG_ERROR(bad value ${enableval} for gmake-print-directory option) ;;
|
RTEMS_ENABLE_INLINES
|
||||||
esac],[RTEMS_USE_OWN_PDIR=yes])
|
RTEMS_ENABLE_CXX
|
||||||
|
RTEMS_ENABLE_GCC28
|
||||||
AC_ARG_ENABLE(multiprocessing, \
|
RTEMS_ENABLE_LIBCDIR
|
||||||
[ --enable-multiprocessing enable multiprocessing interface], \
|
RTEMS_ENABLE_BARE
|
||||||
[case "${enableval}" in
|
|
||||||
yes) RTEMS_HAS_MULTIPROCESSING=yes ;;
|
|
||||||
no) RTEMS_HAS_MULTIPROCESSING=no ;;
|
|
||||||
*) AC_MSG_ERROR(bad value ${enableval} for enable-multiprocessing option) ;;
|
|
||||||
esac],[RTEMS_HAS_MULTIPROCESSING=no])
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(posix, \
|
|
||||||
[ --enable-posix enable posix interface], \
|
|
||||||
[case "${enableval}" in
|
|
||||||
yes) RTEMS_HAS_POSIX_API=yes ;;
|
|
||||||
no) RTEMS_HAS_POSIX_API=no ;;
|
|
||||||
*) AC_MSG_ERROR(bad value ${enableval} for enable-posix option) ;;
|
|
||||||
esac],[RTEMS_HAS_POSIX_API=yes])
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(networking, \
|
|
||||||
[ --enable-networking enable TCP/IP stack], \
|
|
||||||
[case "${enableval}" in
|
|
||||||
yes) RTEMS_HAS_NETWORKING=yes ;;
|
|
||||||
no) RTEMS_HAS_NETWORKING=no ;;
|
|
||||||
*) AC_MSG_ERROR(bad value ${enableval} for enable-networking option) ;;
|
|
||||||
esac],[RTEMS_HAS_NETWORKING=yes])
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(rdbg, \
|
|
||||||
[ --enable-rdbg enable remote debugger], \
|
|
||||||
[case "${enableval}" in
|
|
||||||
yes) RTEMS_HAS_RDBG=yes ;;
|
|
||||||
no) RTEMS_HAS_RDBG=no ;;
|
|
||||||
*) AC_MSG_ERROR(bad value ${enableval} for enable-rdbg option) ;;
|
|
||||||
esac],[RTEMS_HAS_RDBG=no])
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(rtems-inlines, \
|
|
||||||
[ --enable-rtems-inlines enable RTEMS inline functions, the default (disable to use macros)], \
|
|
||||||
[case "${enableval}" in
|
|
||||||
yes) RTEMS_USE_MACROS=no ;;
|
|
||||||
no) RTEMS_USE_MACROS=yes ;;
|
|
||||||
*) AC_MSG_ERROR(bad value ${enableval} for disable-rtems-inlines option) ;;
|
|
||||||
esac],[RTEMS_USE_MACROS=no])
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(cxx, \
|
|
||||||
[ --enable-cxx enable C++ support, and build the rtems++ library], \
|
|
||||||
[case "${enableval}" in
|
|
||||||
yes) RTEMS_HAS_CPLUSPLUS=yes ;;
|
|
||||||
no) RTEMS_HAS_CPLUSPLUS=no ;;
|
|
||||||
*) AC_MSG_ERROR(bad value ${enableval} for enable-cxx option) ;;
|
|
||||||
esac], [RTEMS_HAS_CPLUSPLUS=no])
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(gcc28, \
|
|
||||||
[ --enable-gcc28 enable use of gcc 2.8.x features], \
|
|
||||||
[case "${enableval}" in
|
|
||||||
yes) RTEMS_USE_GCC272=no ;;
|
|
||||||
no) RTEMS_USE_GCC272=yes ;;
|
|
||||||
*) AC_MSG_ERROR(bad value ${enableval} for gcc-28 option) ;;
|
|
||||||
esac],[RTEMS_USE_GCC272=no])
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(libcdir, \
|
|
||||||
[ --enable-libcdir=directory set the directory for the C library], \
|
|
||||||
[ RTEMS_LIBC_DIR="${enableval}" ; \
|
|
||||||
test -d ${enableval} || AC_MSG_ERROR("$enableval is not a directory" ) ] )
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(bare-cpu-cflags,
|
|
||||||
[ --enable-bare-cpu-cflags \
|
|
||||||
specify a particular cpu cflag (bare bsp specific)],
|
|
||||||
[case "${enableval}" in
|
|
||||||
no) BARE_CPU_CFLAGS="" ;;
|
|
||||||
*) BARE_CPU_CFLAGS="${enableval}" ;;
|
|
||||||
esac],
|
|
||||||
[BARE_CPU_CFLAGS=""])
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(bare-cpu-model,
|
|
||||||
[ --enable-bare-cpu-model \
|
|
||||||
specify a particular cpu model (bare bsp specific)],
|
|
||||||
[case "${enableval}" in
|
|
||||||
no) BARE_CPU_MODEL="" ;;
|
|
||||||
*) BARE_CPU_MODEL="${enableval}" ;;
|
|
||||||
esac],
|
|
||||||
[BARE_CPU_MODEL=""])
|
|
||||||
|
|
||||||
RTEMS_PREFIX=${target_cpu}-${target_vendor}
|
RTEMS_PREFIX=${target_cpu}-${target_vendor}
|
||||||
|
|
||||||
@@ -115,6 +40,11 @@ AC_PROG_INSTALL
|
|||||||
RTEMS_PATH_PERL
|
RTEMS_PATH_PERL
|
||||||
|
|
||||||
dnl check mkdir behaviour, try to get mkdir -p -m 0755
|
dnl check mkdir behaviour, try to get mkdir -p -m 0755
|
||||||
|
dnl NOTE: This is considered obsolete
|
||||||
|
dnl MKDIR is not used anywhere in the source tree anymore.
|
||||||
|
dnl In Makefile.ins/Makefile.ams, use
|
||||||
|
dnl "mkinstalldirs" for recursive mkdir and
|
||||||
|
dnl "mkdir" for non-recursive mkdir, instead
|
||||||
RTEMS_PATH_MKDIR
|
RTEMS_PATH_MKDIR
|
||||||
RTEMS_PROG_MKDIR_M
|
RTEMS_PROG_MKDIR_M
|
||||||
RTEMS_PROG_MKDIR_P
|
RTEMS_PROG_MKDIR_P
|
||||||
@@ -150,53 +80,26 @@ dnl a BSP library would be used to link an application.
|
|||||||
RTEMS_HOST=$host_os
|
RTEMS_HOST=$host_os
|
||||||
|
|
||||||
RTEMS_CANONICAL_TARGET_CPU
|
RTEMS_CANONICAL_TARGET_CPU
|
||||||
|
RTEMS_CHECK_CPU
|
||||||
|
RTEMS_CANONICAL_HOST
|
||||||
|
|
||||||
changequote(,)dnl
|
changequote(,)dnl
|
||||||
case "${target}" in
|
case "${target}" in
|
||||||
# hpux unix port should go here
|
|
||||||
i[3456]86-go32-rtems*)
|
i[3456]86-go32-rtems*)
|
||||||
rtems_bsp="go32 go32_p5"
|
rtems_bsp="go32 go32_p5"
|
||||||
skip_startfiles="yes"
|
skip_startfiles="yes"
|
||||||
RTEMS_HAS_POSIX_API=no
|
;;
|
||||||
;;
|
*)
|
||||||
i[3456]86-pc-linux*) # unix "simulator" port
|
;;
|
||||||
RTEMS_HOST=Linux
|
|
||||||
# override these settings
|
|
||||||
RTEMS_HAS_POSIX_API=no
|
|
||||||
;;
|
|
||||||
i[3456]86-*freebsd2*) # unix "simulator" port
|
|
||||||
RTEMS_HOST=FreeBSD
|
|
||||||
# override these settings
|
|
||||||
RTEMS_HAS_POSIX_API=no
|
|
||||||
;;
|
|
||||||
no_cpu-*rtems*)
|
|
||||||
RTEMS_HAS_POSIX_API=no
|
|
||||||
;;
|
|
||||||
sparc-sun-solaris*) # unix "simulator" port
|
|
||||||
RTEMS_HOST=Solaris
|
|
||||||
# override these settings
|
|
||||||
RTEMS_HAS_POSIX_API=no
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
changequote([,])dnl
|
changequote([,])dnl
|
||||||
|
|
||||||
|
|
||||||
# Override the set of BSPs to be built.
|
# Override the set of BSPs to be built.
|
||||||
AC_ARG_ENABLE(rtemsbsp, \
|
AC_ARG_ENABLE(rtemsbsp, \
|
||||||
[ --enable-rtemsbsp=bsp1 bsp2 .. BSPs to include in build], \
|
[ --enable-rtemsbsp=bsp1 bsp2 .. BSPs to include in build], \
|
||||||
rtems_bsp=$enableval \
|
rtems_bsp=$enableval \
|
||||||
)
|
)
|
||||||
|
|
||||||
# Is this a supported CPU?
|
|
||||||
AC_MSG_CHECKING([if cpu $target_cpu is supported])
|
|
||||||
if test -d "$srcdir/c/src/exec/score/cpu/$target_cpu"; then
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
else
|
|
||||||
AC_MSG_ERROR(no)
|
|
||||||
fi
|
|
||||||
|
|
||||||
RTEMS_TOOL_PREFIX
|
RTEMS_TOOL_PREFIX
|
||||||
|
|
||||||
dnl check target cc
|
dnl check target cc
|
||||||
@@ -236,9 +139,8 @@ RTEMS_I386_GAS_CODE16
|
|||||||
|
|
||||||
dnl check host cc
|
dnl check host cc
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
dnl check for .exe (Cygwin)
|
||||||
RTEMS_CYGWIN32
|
AC_EXEEXT
|
||||||
RTEMS_EXEEXT
|
|
||||||
|
|
||||||
dnl FIXME: HACK for egcs/cygwin mixing '\\' and '/' in gcc -print-*
|
dnl FIXME: HACK for egcs/cygwin mixing '\\' and '/' in gcc -print-*
|
||||||
case $host_os in
|
case $host_os in
|
||||||
@@ -261,10 +163,6 @@ fi
|
|||||||
dnl Add -g if the host compiler accepts -g, assume -g means debugging
|
dnl Add -g if the host compiler accepts -g, assume -g means debugging
|
||||||
test "$ac_cv_prog_cc_g" = "yes" && CC_CFLAGS_DEBUG_V=${CC_CFLAGS_DEBUG_V-"-g"}
|
test "$ac_cv_prog_cc_g" = "yes" && CC_CFLAGS_DEBUG_V=${CC_CFLAGS_DEBUG_V-"-g"}
|
||||||
|
|
||||||
dnl check for host library functions
|
|
||||||
dnl NOTE: must be called after AC_PROG_CC
|
|
||||||
AC_CHECK_FUNCS(strerror)
|
|
||||||
|
|
||||||
dnl check for SysV IPC used by simulators
|
dnl check for SysV IPC used by simulators
|
||||||
if test "$target_cpu" = "unix" ; then
|
if test "$target_cpu" = "unix" ; then
|
||||||
RTEMS_SYSV_SEM
|
RTEMS_SYSV_SEM
|
||||||
@@ -379,7 +277,6 @@ fi
|
|||||||
|
|
||||||
dnl END configure.target.in
|
dnl END configure.target.in
|
||||||
|
|
||||||
|
|
||||||
PROJECT_ROOT=`pwd;`
|
PROJECT_ROOT=`pwd;`
|
||||||
|
|
||||||
# If RTEMS macros are enabled, then use them. Otherwise, use inlines.
|
# If RTEMS macros are enabled, then use them. Otherwise, use inlines.
|
||||||
@@ -409,18 +306,7 @@ if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
|
|||||||
makefiles="$makefiles c/src/lib/librtems++/Makefile"
|
makefiles="$makefiles c/src/lib/librtems++/Makefile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If the tests are enabled, then find all the test suite Makefiles
|
RTEMS_ENABLE_TESTS
|
||||||
AC_MSG_CHECKING([if the test suites are enabled? ])
|
|
||||||
tests_enabled=no
|
|
||||||
AC_ARG_ENABLE(tests, \
|
|
||||||
[ --enable-tests enable tests (default:disabled)], \
|
|
||||||
[case "${enableval}" in
|
|
||||||
yes) AC_MSG_RESULT(yes) ; tests_enabled=yes ;;
|
|
||||||
no) AC_MSG_RESULT(no) ; tests_enabled=no ;;
|
|
||||||
*) AC_MSG_ERROR(bad value ${enableval} for tests option) ;;
|
|
||||||
esac],
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
)
|
|
||||||
|
|
||||||
RTEMS_CHECK_MAKEFILE(c/src/tests/tools/$target_cpu)
|
RTEMS_CHECK_MAKEFILE(c/src/tests/tools/$target_cpu)
|
||||||
|
|
||||||
@@ -437,29 +323,23 @@ if test "$tests_enabled" = "yes"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# If the HWAPI is enabled, the find the HWAPI Makefiles
|
# If the HWAPI is enabled, the find the HWAPI Makefiles
|
||||||
AC_MSG_CHECKING([if the HWAPI is enabled? ])
|
RTEMS_ENABLE_HWAPI
|
||||||
AC_ARG_ENABLE(hwapi, \
|
if test "$RTEMS_HAS_HWAPI" = "yes"; then
|
||||||
[ --enable-hwapi enable hardware API library], \
|
AC_MSG_CHECKING(whether libwapi is present)
|
||||||
[case "${enableval}" in
|
if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then
|
||||||
yes) AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then
|
makefiles="$makefiles c/src/lib/libhwapi/Makefile"
|
||||||
makefiles="$makefiles c/src/lib/libhwapi/Makefile"
|
RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/analog)
|
||||||
RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/analog)
|
RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/discrete)
|
||||||
RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/discrete)
|
RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/drivers)
|
||||||
RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/drivers)
|
RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/non_volatile_memory)
|
||||||
RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/non_volatile_memory)
|
RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/serial)
|
||||||
RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/serial)
|
RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/support)
|
||||||
RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/support)
|
RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/wrapup)
|
||||||
RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/wrapup)
|
else
|
||||||
else
|
AC_MSG_ERROR(No source code found for the HWAPI)
|
||||||
AC_MSG_ERROR(No source code found for the HWAPI)
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
|
||||||
no) AC_MSG_RESULT(no) ;;
|
|
||||||
*) AC_MSG_ERROR(bad value ${enableval} for hwapi option) ;;
|
|
||||||
esac],
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
)
|
|
||||||
|
|
||||||
AC_SUBST(RTEMS_GAS_CODE16)
|
AC_SUBST(RTEMS_GAS_CODE16)
|
||||||
AC_SUBST(rtems_cv_prog_cc_cross)
|
AC_SUBST(rtems_cv_prog_cc_cross)
|
||||||
@@ -484,13 +364,14 @@ AC_SUBST(CC_CFLAGS_PROFILE_V)
|
|||||||
AC_SUBST(CC_LDFLAGS_PROFILE_V)
|
AC_SUBST(CC_LDFLAGS_PROFILE_V)
|
||||||
|
|
||||||
# pick up all the Makefiles in required parts of the tree
|
# pick up all the Makefiles in required parts of the tree
|
||||||
RTEMS_CHECK_MAKEFILE(c/build-tools)
|
|
||||||
RTEMS_CHECK_MAKEFILE(make)
|
RTEMS_CHECK_MAKEFILE(make)
|
||||||
RTEMS_CHECK_MAKEFILE(c/src/lib/libchip)
|
RTEMS_CHECK_MAKEFILE(c/src/lib/libchip)
|
||||||
RTEMS_CHECK_MAKEFILE(c/src/lib/libmisc)
|
RTEMS_CHECK_MAKEFILE(c/src/lib/libmisc)
|
||||||
RTEMS_CHECK_MAKEFILE(c/src/tests/samples)
|
RTEMS_CHECK_MAKEFILE(c/src/tests/samples)
|
||||||
|
|
||||||
AC_CONFIG_HEADER(c/build-tools/src/config.h)
|
AC_CONFIG_SUBDIRS(c/build-tools)
|
||||||
|
# FIXME: libwapi needs a separate configure.in in future ;-
|
||||||
|
# AC_CONFIG_SUBDIRS(c/src/lib/libwapi)
|
||||||
|
|
||||||
# try not to explicitly list a Makefile here
|
# try not to explicitly list a Makefile here
|
||||||
AC_OUTPUT(
|
AC_OUTPUT(
|
||||||
|
|||||||
8
tools/build/Makefile.am
Normal file
8
tools/build/Makefile.am
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS=foreign
|
||||||
|
ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal
|
||||||
|
|
||||||
|
SUBDIRS = scripts src
|
||||||
@@ -1,25 +1,331 @@
|
|||||||
|
# Makefile.in generated automatically by automake 1.4 from Makefile.am
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
#
|
#
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
|
|
||||||
@SET_MAKE@
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
top_builddir = ../..
|
VPATH = @srcdir@
|
||||||
subdir = c/build-tools
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
|
bindir = @bindir@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
datadir = @datadir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
libdir = @libdir@
|
||||||
|
infodir = @infodir@
|
||||||
|
mandir = @mandir@
|
||||||
|
includedir = @includedir@
|
||||||
|
oldincludedir = /usr/include
|
||||||
|
|
||||||
|
DESTDIR =
|
||||||
|
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
|
||||||
|
top_builddir = .
|
||||||
|
AUTOCONF = @AUTOCONF@
|
||||||
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
CC = @CC@
|
||||||
|
EXEEXT = @EXEEXT@
|
||||||
|
KSH = @KSH@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
PROJECT_ROOT = @PROJECT_ROOT@
|
PROJECT_ROOT = @PROJECT_ROOT@
|
||||||
|
RTEMS_ROOT = @RTEMS_ROOT@
|
||||||
|
RTEMS_TOPdir = @RTEMS_TOPdir@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
|
||||||
VPATH = @srcdir@
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal
|
||||||
|
|
||||||
include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
|
SUBDIRS = scripts src
|
||||||
include $(RTEMS_ROOT)/make/directory.cfg
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
|
||||||
|
CONFIG_HEADER = ./src/config.h
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
DIST_COMMON = Makefile.am Makefile.in aclocal.m4 configure configure.in
|
||||||
|
|
||||||
SUB_DIRS=os scripts src
|
|
||||||
|
|
||||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = tar
|
||||||
|
GZIP_ENV = --best
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||||
cd $(top_builddir) \
|
cd $(top_builddir) \
|
||||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
$(ACLOCAL_M4): configure.in
|
||||||
|
cd $(srcdir) && $(ACLOCAL)
|
||||||
|
|
||||||
|
config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||||
|
$(SHELL) ./config.status --recheck
|
||||||
|
$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
|
||||||
|
cd $(srcdir) && $(AUTOCONF)
|
||||||
|
|
||||||
|
# This directory's subdirectories are mostly independent; you can cd
|
||||||
|
# into them and run `make' without going through this Makefile.
|
||||||
|
# To change the values of `make' variables: instead of editing Makefiles,
|
||||||
|
# (1) if the variable is set in `config.status', edit `config.status'
|
||||||
|
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||||
|
# (2) otherwise, pass the desired values on the `make' command line.
|
||||||
|
|
||||||
|
@SET_MAKE@
|
||||||
|
|
||||||
|
all-recursive install-data-recursive install-exec-recursive \
|
||||||
|
installdirs-recursive install-recursive uninstall-recursive \
|
||||||
|
check-recursive installcheck-recursive info-recursive dvi-recursive:
|
||||||
|
@set fnord $(MAKEFLAGS); amf=$$2; \
|
||||||
|
dot_seen=no; \
|
||||||
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
echo "Making $$target in $$subdir"; \
|
||||||
|
if test "$$subdir" = "."; then \
|
||||||
|
dot_seen=yes; \
|
||||||
|
local_target="$$target-am"; \
|
||||||
|
else \
|
||||||
|
local_target="$$target"; \
|
||||||
|
fi; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||||
|
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||||
|
done; \
|
||||||
|
if test "$$dot_seen" = "no"; then \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||||
|
fi; test -z "$$fail"
|
||||||
|
|
||||||
|
mostlyclean-recursive clean-recursive distclean-recursive \
|
||||||
|
maintainer-clean-recursive:
|
||||||
|
@set fnord $(MAKEFLAGS); amf=$$2; \
|
||||||
|
dot_seen=no; \
|
||||||
|
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
rev="$$subdir $$rev"; \
|
||||||
|
test "$$subdir" = "." && dot_seen=yes; \
|
||||||
|
done; \
|
||||||
|
test "$$dot_seen" = "no" && rev=". $$rev"; \
|
||||||
|
target=`echo $@ | sed s/-recursive//`; \
|
||||||
|
for subdir in $$rev; do \
|
||||||
|
echo "Making $$target in $$subdir"; \
|
||||||
|
if test "$$subdir" = "."; then \
|
||||||
|
local_target="$$target-am"; \
|
||||||
|
else \
|
||||||
|
local_target="$$target"; \
|
||||||
|
fi; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||||
|
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||||
|
done && test -z "$$fail"
|
||||||
|
tags-recursive:
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
||||||
|
done
|
||||||
|
|
||||||
|
tags: TAGS
|
||||||
|
|
||||||
|
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||||
|
list='$(SOURCES) $(HEADERS)'; \
|
||||||
|
unique=`for i in $$list; do echo $$i; done | \
|
||||||
|
awk ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
here=`pwd` && cd $(srcdir) \
|
||||||
|
&& mkid -f$$here/ID $$unique $(LISP)
|
||||||
|
|
||||||
|
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
|
||||||
|
tags=; \
|
||||||
|
here=`pwd`; \
|
||||||
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||||
|
if test "$$subdir" = .; then :; else \
|
||||||
|
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
|
||||||
|
fi; \
|
||||||
|
done; \
|
||||||
|
list='$(SOURCES) $(HEADERS)'; \
|
||||||
|
unique=`for i in $$list; do echo $$i; done | \
|
||||||
|
awk ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|
||||||
|
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
|
||||||
|
|
||||||
|
mostlyclean-tags:
|
||||||
|
|
||||||
|
clean-tags:
|
||||||
|
|
||||||
|
distclean-tags:
|
||||||
|
-rm -f TAGS ID
|
||||||
|
|
||||||
|
maintainer-clean-tags:
|
||||||
|
|
||||||
|
distdir = $(PACKAGE)-$(VERSION)
|
||||||
|
top_distdir = $(distdir)
|
||||||
|
|
||||||
|
# This target untars the dist file and tries a VPATH configuration. Then
|
||||||
|
# it guarantees that the distribution is self-contained by making another
|
||||||
|
# tarfile.
|
||||||
|
distcheck: dist
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
|
||||||
|
mkdir $(distdir)/=build
|
||||||
|
mkdir $(distdir)/=inst
|
||||||
|
dc_install_base=`cd $(distdir)/=inst && pwd`; \
|
||||||
|
cd $(distdir)/=build \
|
||||||
|
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) dist
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
@banner="$(distdir).tar.gz is ready for distribution"; \
|
||||||
|
dashes=`echo "$$banner" | sed s/./=/g`; \
|
||||||
|
echo "$$dashes"; \
|
||||||
|
echo "$$banner"; \
|
||||||
|
echo "$$dashes"
|
||||||
|
dist: distdir
|
||||||
|
-chmod -R a+r $(distdir)
|
||||||
|
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
dist-all: distdir
|
||||||
|
-chmod -R a+r $(distdir)
|
||||||
|
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
-rm -rf $(distdir)
|
||||||
|
mkdir $(distdir)
|
||||||
|
-chmod 777 $(distdir)
|
||||||
|
here=`cd $(top_builddir) && pwd`; \
|
||||||
|
top_distdir=`cd $(distdir) && pwd`; \
|
||||||
|
distdir=`cd $(distdir) && pwd`; \
|
||||||
|
cd $(top_srcdir) \
|
||||||
|
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile
|
||||||
|
@for file in $(DISTFILES); do \
|
||||||
|
d=$(srcdir); \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
cp -pr $$/$$file $(distdir)/$$file; \
|
||||||
|
else \
|
||||||
|
test -f $(distdir)/$$file \
|
||||||
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||||
|
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
for subdir in $(SUBDIRS); do \
|
||||||
|
if test "$$subdir" = .; then :; else \
|
||||||
|
test -d $(distdir)/$$subdir \
|
||||||
|
|| mkdir $(distdir)/$$subdir \
|
||||||
|
|| exit 1; \
|
||||||
|
chmod 777 $(distdir)/$$subdir; \
|
||||||
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
|
||||||
|
|| exit 1; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
info-am:
|
||||||
|
info: info-recursive
|
||||||
|
dvi-am:
|
||||||
|
dvi: dvi-recursive
|
||||||
|
check-am: all-am
|
||||||
|
check: check-recursive
|
||||||
|
installcheck-am:
|
||||||
|
installcheck: installcheck-recursive
|
||||||
|
install-exec-am:
|
||||||
|
install-exec: install-exec-recursive
|
||||||
|
|
||||||
|
install-data-am:
|
||||||
|
install-data: install-data-recursive
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
install: install-recursive
|
||||||
|
uninstall-am:
|
||||||
|
uninstall: uninstall-recursive
|
||||||
|
all-am: Makefile
|
||||||
|
all-redirect: all-recursive
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs: installdirs-recursive
|
||||||
|
installdirs-am:
|
||||||
|
|
||||||
|
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||||
|
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
mostlyclean-am: mostlyclean-tags mostlyclean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-recursive
|
||||||
|
|
||||||
|
clean-am: clean-tags clean-generic mostlyclean-am
|
||||||
|
|
||||||
|
clean: clean-recursive
|
||||||
|
|
||||||
|
distclean-am: distclean-tags distclean-generic clean-am
|
||||||
|
|
||||||
|
distclean: distclean-recursive
|
||||||
|
-rm -f config.status
|
||||||
|
|
||||||
|
maintainer-clean-am: maintainer-clean-tags maintainer-clean-generic \
|
||||||
|
distclean-am
|
||||||
|
@echo "This command is intended for maintainers to use;"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-recursive
|
||||||
|
-rm -f config.status
|
||||||
|
|
||||||
|
.PHONY: install-data-recursive uninstall-data-recursive \
|
||||||
|
install-exec-recursive uninstall-exec-recursive installdirs-recursive \
|
||||||
|
uninstalldirs-recursive all-recursive check-recursive \
|
||||||
|
installcheck-recursive info-recursive dvi-recursive \
|
||||||
|
mostlyclean-recursive distclean-recursive clean-recursive \
|
||||||
|
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
|
||||||
|
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
|
||||||
|
dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
|
||||||
|
install-exec install-data-am install-data install-am install \
|
||||||
|
uninstall-am uninstall all-redirect all-am all installdirs-am \
|
||||||
|
installdirs mostlyclean-generic distclean-generic clean-generic \
|
||||||
|
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
||||||
|
|||||||
156
tools/build/aclocal.m4
vendored
Normal file
156
tools/build/aclocal.m4
vendored
Normal file
@@ -0,0 +1,156 @@
|
|||||||
|
dnl aclocal.m4 generated automatically by aclocal 1.4
|
||||||
|
|
||||||
|
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||||
|
dnl This file is free software; the Free Software Foundation
|
||||||
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
|
dnl with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
dnl This program is distributed in the hope that it will be useful,
|
||||||
|
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
dnl PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_TOP,
|
||||||
|
[dnl
|
||||||
|
RTEMS_TOPdir="$1";
|
||||||
|
AC_SUBST(RTEMS_TOPdir)
|
||||||
|
|
||||||
|
PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
|
||||||
|
AC_SUBST(PROJECT_ROOT)
|
||||||
|
|
||||||
|
RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
|
||||||
|
AC_SUBST(RTEMS_ROOT)
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
# Do all the work for Automake. This macro actually does too much --
|
||||||
|
# some checks are only needed if your package does certain things.
|
||||||
|
# But this isn't really a big deal.
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
|
dnl Usage:
|
||||||
|
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
|
||||||
|
|
||||||
|
AC_DEFUN(AM_INIT_AUTOMAKE,
|
||||||
|
[AC_REQUIRE([AC_PROG_INSTALL])
|
||||||
|
PACKAGE=[$1]
|
||||||
|
AC_SUBST(PACKAGE)
|
||||||
|
VERSION=[$2]
|
||||||
|
AC_SUBST(VERSION)
|
||||||
|
dnl test to see if srcdir already configured
|
||||||
|
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
||||||
|
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
||||||
|
fi
|
||||||
|
ifelse([$3],,
|
||||||
|
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
||||||
|
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
|
||||||
|
AC_REQUIRE([AM_SANITY_CHECK])
|
||||||
|
AC_REQUIRE([AC_ARG_PROGRAM])
|
||||||
|
dnl FIXME This is truly gross.
|
||||||
|
missing_dir=`cd $ac_aux_dir && pwd`
|
||||||
|
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
|
||||||
|
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
|
||||||
|
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
|
||||||
|
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
|
||||||
|
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
|
||||||
|
AC_REQUIRE([AC_PROG_MAKE_SET])])
|
||||||
|
|
||||||
|
#
|
||||||
|
# Check to make sure that the build environment is sane.
|
||||||
|
#
|
||||||
|
|
||||||
|
AC_DEFUN(AM_SANITY_CHECK,
|
||||||
|
[AC_MSG_CHECKING([whether build environment is sane])
|
||||||
|
# Just in case
|
||||||
|
sleep 1
|
||||||
|
echo timestamp > conftestfile
|
||||||
|
# Do `set' in a subshell so we don't clobber the current shell's
|
||||||
|
# arguments. Must try -L first in case configure is actually a
|
||||||
|
# symlink; some systems play weird games with the mod time of symlinks
|
||||||
|
# (eg FreeBSD returns the mod time of the symlink's containing
|
||||||
|
# directory).
|
||||||
|
if (
|
||||||
|
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
||||||
|
if test "[$]*" = "X"; then
|
||||||
|
# -L didn't work.
|
||||||
|
set X `ls -t $srcdir/configure conftestfile`
|
||||||
|
fi
|
||||||
|
if test "[$]*" != "X $srcdir/configure conftestfile" \
|
||||||
|
&& test "[$]*" != "X conftestfile $srcdir/configure"; then
|
||||||
|
|
||||||
|
# If neither matched, then we have a broken ls. This can happen
|
||||||
|
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
||||||
|
# broken ls alias from the environment. This has actually
|
||||||
|
# happened. Such a system could not be considered "sane".
|
||||||
|
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
||||||
|
alias in your environment])
|
||||||
|
fi
|
||||||
|
|
||||||
|
test "[$]2" = conftestfile
|
||||||
|
)
|
||||||
|
then
|
||||||
|
# Ok.
|
||||||
|
:
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([newly created file is older than distributed files!
|
||||||
|
Check your system clock])
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
AC_MSG_RESULT(yes)])
|
||||||
|
|
||||||
|
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
|
||||||
|
dnl The program must properly implement --version.
|
||||||
|
AC_DEFUN(AM_MISSING_PROG,
|
||||||
|
[AC_MSG_CHECKING(for working $2)
|
||||||
|
# Run test in a subshell; some versions of sh will print an error if
|
||||||
|
# an executable is not found, even if stderr is redirected.
|
||||||
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
||||||
|
if ($2 --version) < /dev/null > /dev/null 2>&1; then
|
||||||
|
$1=$2
|
||||||
|
AC_MSG_RESULT(found)
|
||||||
|
else
|
||||||
|
$1="$3/missing $2"
|
||||||
|
AC_MSG_RESULT(missing)
|
||||||
|
fi
|
||||||
|
AC_SUBST($1)])
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PATH_KSH,
|
||||||
|
[
|
||||||
|
dnl NOTE: prefer bash over ksh over sh
|
||||||
|
AC_PATH_PROGS(KSH,bash ksh sh)
|
||||||
|
if test -z "$KSH"; then
|
||||||
|
dnl NOTE: This cannot happen -- /bin/sh must always exist
|
||||||
|
AC_MSG_ERROR(
|
||||||
|
[***]
|
||||||
|
[ Cannot determine a usable shell bash/ksh/sh]
|
||||||
|
[ Please contact your system administrator] );
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
# Like AC_CONFIG_HEADER, but automatically create stamp file.
|
||||||
|
|
||||||
|
AC_DEFUN(AM_CONFIG_HEADER,
|
||||||
|
[AC_PREREQ([2.12])
|
||||||
|
AC_CONFIG_HEADER([$1])
|
||||||
|
dnl When config.status generates a header, we must update the stamp-h file.
|
||||||
|
dnl This file resides in the same directory as the config header
|
||||||
|
dnl that is generated. We must strip everything past the first ":",
|
||||||
|
dnl and everything past the last "/".
|
||||||
|
AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
|
||||||
|
ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
|
||||||
|
<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
|
||||||
|
<<am_indx=1
|
||||||
|
for am_file in <<$1>>; do
|
||||||
|
case " <<$>>CONFIG_HEADERS " in
|
||||||
|
*" <<$>>am_file "*<<)>>
|
||||||
|
echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
am_indx=`expr "<<$>>am_indx" + 1`
|
||||||
|
done<<>>dnl>>)
|
||||||
|
changequote([,]))])
|
||||||
|
|
||||||
1622
tools/build/configure
vendored
Normal file
1622
tools/build/configure
vendored
Normal file
File diff suppressed because it is too large
Load Diff
30
tools/build/configure.in
Normal file
30
tools/build/configure.in
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AC_PREREQ(2.13)
|
||||||
|
AC_INIT(scripts)
|
||||||
|
AC_CONFIG_AUX_DIR(../..)
|
||||||
|
RTEMS_TOP(../..)
|
||||||
|
|
||||||
|
AC_CANONICAL_HOST
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE(rtems-build-tools,4.1.0,no)
|
||||||
|
AC_EXEEXT
|
||||||
|
|
||||||
|
AC_PROG_CC
|
||||||
|
AC_CHECK_FUNCS(strerror)
|
||||||
|
|
||||||
|
RTEMS_PATH_KSH
|
||||||
|
|
||||||
|
AM_CONFIG_HEADER(src/config.h)
|
||||||
|
|
||||||
|
AC_OUTPUT(
|
||||||
|
Makefile
|
||||||
|
src/Makefile
|
||||||
|
scripts/Makefile
|
||||||
|
scripts/install-if-change
|
||||||
|
scripts/lock-directory
|
||||||
|
scripts/rcs-clean
|
||||||
|
scripts/unlock-directory
|
||||||
|
)
|
||||||
8
tools/build/os/Makefile.am
Normal file
8
tools/build/os/Makefile.am
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
|
# FIXME: Is this subdirectory still in use ?
|
||||||
|
## SUBDIRS = msdos
|
||||||
23
tools/build/scripts/Makefile.am
Normal file
23
tools/build/scripts/Makefile.am
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
|
bin_SCRIPTS=\
|
||||||
|
install-if-change \
|
||||||
|
lock-directory \
|
||||||
|
unlock-directory \
|
||||||
|
rcs-clean
|
||||||
|
|
||||||
|
noinst_SCRIPTS = search-id.sh
|
||||||
|
|
||||||
|
#
|
||||||
|
# HACK: install to the build-tree
|
||||||
|
#
|
||||||
|
install-exec-local: $(bin_SCRIPTS)
|
||||||
|
$(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
|
||||||
|
$(INSTALL_SCRIPT) $(bin_SCRIPTS) \
|
||||||
|
$(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
|
||||||
|
|
||||||
|
preinstall: install-exec-local
|
||||||
@@ -1,46 +1,231 @@
|
|||||||
|
# Makefile.in generated automatically by automake 1.4 from Makefile.am
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
#
|
#
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
# RTEMS build tools
|
|
||||||
# NOTE: of course we can't use any of these tools
|
|
||||||
# in this Makefile. Most notably: install-if-change
|
|
||||||
#
|
|
||||||
|
|
||||||
@SET_MAKE@
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
top_builddir = ../../..
|
VPATH = @srcdir@
|
||||||
subdir = c/build-tools/scripts
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
|
bindir = @bindir@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
datadir = @datadir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
libdir = @libdir@
|
||||||
|
infodir = @infodir@
|
||||||
|
mandir = @mandir@
|
||||||
|
includedir = @includedir@
|
||||||
|
oldincludedir = /usr/include
|
||||||
|
|
||||||
|
DESTDIR =
|
||||||
|
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
|
||||||
|
top_builddir = ..
|
||||||
|
|
||||||
|
ACLOCAL = @ACLOCAL@
|
||||||
|
AUTOCONF = @AUTOCONF@
|
||||||
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
CC = @CC@
|
||||||
|
EXEEXT = @EXEEXT@
|
||||||
|
KSH = @KSH@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
PROJECT_ROOT = @PROJECT_ROOT@
|
PROJECT_ROOT = @PROJECT_ROOT@
|
||||||
|
RTEMS_ROOT = @RTEMS_ROOT@
|
||||||
|
RTEMS_TOPdir = @RTEMS_TOPdir@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
|
||||||
VPATH = @srcdir@
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
|
bin_SCRIPTS = install-if-change lock-directory unlock-directory rcs-clean
|
||||||
include $(RTEMS_ROOT)/make/leaf.cfg
|
|
||||||
|
|
||||||
DESTDIR=$(PROJECT_RELEASE)/build-tools
|
|
||||||
|
|
||||||
BUILD_PGMS=install-if-change rcs-clean lock-directory unlock-directory
|
noinst_SCRIPTS = search-id.sh
|
||||||
PGMS = $(BUILD_PGMS) search-id.sh
|
mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
|
||||||
|
CONFIG_HEADER = ../src/config.h
|
||||||
|
CONFIG_CLEAN_FILES = install-if-change lock-directory rcs-clean \
|
||||||
|
unlock-directory
|
||||||
|
SCRIPTS = $(bin_SCRIPTS) $(noinst_SCRIPTS)
|
||||||
|
|
||||||
CLEAN_ADDITIONS += $(BUILD_PGMS)
|
DIST_COMMON = README Makefile.am Makefile.in install-if-change.in \
|
||||||
|
lock-directory.in rcs-clean.in unlock-directory.in
|
||||||
|
|
||||||
INSTALLED_PGMS=$(PGMS:%=$(DESTDIR)/%)
|
|
||||||
|
|
||||||
all: $(DESTDIR) $(PGMS) install
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
$(DESTDIR):
|
TAR = tar
|
||||||
@top_srcdir@/mkinstalldirs $@
|
GZIP_ENV = --best
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --foreign scripts/Makefile
|
||||||
|
|
||||||
$(INSTALLED_PGMS): $(PGMS)
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||||
$(INSTALL) $(INSTBINFLAGS) $^ $(DESTDIR)
|
|
||||||
|
|
||||||
install: $(DESTDIR) $(INSTALLED_PGMS)
|
|
||||||
|
|
||||||
%: $(srcdir)/%.in $(top_builddir)/config.status
|
|
||||||
cd $(top_builddir) \
|
cd $(top_builddir) \
|
||||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
install-if-change: $(top_builddir)/config.status install-if-change.in
|
||||||
|
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
lock-directory: $(top_builddir)/config.status lock-directory.in
|
||||||
|
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
rcs-clean: $(top_builddir)/config.status rcs-clean.in
|
||||||
|
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
unlock-directory: $(top_builddir)/config.status unlock-directory.in
|
||||||
|
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
install-binSCRIPTS: $(bin_SCRIPTS)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
||||||
|
@list='$(bin_SCRIPTS)'; for p in $$list; do \
|
||||||
|
if test -f $$p; then \
|
||||||
|
echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
|
||||||
|
$(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
|
||||||
|
else if test -f $(srcdir)/$$p; then \
|
||||||
|
echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
|
||||||
|
$(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
|
||||||
|
else :; fi; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-binSCRIPTS:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
list='$(bin_SCRIPTS)'; for p in $$list; do \
|
||||||
|
rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
|
||||||
|
done
|
||||||
|
tags: TAGS
|
||||||
|
TAGS:
|
||||||
|
|
||||||
|
|
||||||
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||||
|
|
||||||
|
subdir = scripts
|
||||||
|
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
here=`cd $(top_builddir) && pwd`; \
|
||||||
|
top_distdir=`cd $(top_distdir) && pwd`; \
|
||||||
|
distdir=`cd $(distdir) && pwd`; \
|
||||||
|
cd $(top_srcdir) \
|
||||||
|
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign scripts/Makefile
|
||||||
|
@for file in $(DISTFILES); do \
|
||||||
|
d=$(srcdir); \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
cp -pr $$/$$file $(distdir)/$$file; \
|
||||||
|
else \
|
||||||
|
test -f $(distdir)/$$file \
|
||||||
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||||
|
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
info-am:
|
||||||
|
info: info-am
|
||||||
|
dvi-am:
|
||||||
|
dvi: dvi-am
|
||||||
|
check-am: all-am
|
||||||
|
check: check-am
|
||||||
|
installcheck-am:
|
||||||
|
installcheck: installcheck-am
|
||||||
|
install-exec-am: install-binSCRIPTS install-exec-local
|
||||||
|
install-exec: install-exec-am
|
||||||
|
|
||||||
|
install-data-am:
|
||||||
|
install-data: install-data-am
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
install: install-am
|
||||||
|
uninstall-am: uninstall-binSCRIPTS
|
||||||
|
uninstall: uninstall-am
|
||||||
|
all-am: Makefile $(SCRIPTS)
|
||||||
|
all-redirect: all-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs:
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
||||||
|
|
||||||
|
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||||
|
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
mostlyclean-am: mostlyclean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-am
|
||||||
|
|
||||||
|
clean-am: clean-generic mostlyclean-am
|
||||||
|
|
||||||
|
clean: clean-am
|
||||||
|
|
||||||
|
distclean-am: distclean-generic clean-am
|
||||||
|
|
||||||
|
distclean: distclean-am
|
||||||
|
|
||||||
|
maintainer-clean-am: maintainer-clean-generic distclean-am
|
||||||
|
@echo "This command is intended for maintainers to use;"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-am
|
||||||
|
|
||||||
|
.PHONY: uninstall-binSCRIPTS install-binSCRIPTS tags distdir info-am \
|
||||||
|
info dvi-am dvi check check-am installcheck-am installcheck \
|
||||||
|
install-exec-local install-exec-am install-exec install-data-am \
|
||||||
|
install-data install-am install uninstall-am uninstall all-redirect \
|
||||||
|
all-am all installdirs mostlyclean-generic distclean-generic \
|
||||||
|
clean-generic maintainer-clean-generic clean mostlyclean distclean \
|
||||||
|
maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# HACK: install to the build-tree
|
||||||
|
#
|
||||||
|
install-exec-local: $(bin_SCRIPTS)
|
||||||
|
$(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
|
||||||
|
$(INSTALL_SCRIPT) $(bin_SCRIPTS) \
|
||||||
|
$(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
|
||||||
|
|
||||||
|
preinstall: install-exec-local
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
||||||
|
|||||||
22
tools/build/src/Makefile.am
Normal file
22
tools/build/src/Makefile.am
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
|
bin_PROGRAMS=cklength eolstrip packhex unhex
|
||||||
|
|
||||||
|
cklength_SOURCES = cklength.c
|
||||||
|
eolstrip_SOURCES = eolstrip.c
|
||||||
|
packhex_SOURCES = packhex.c
|
||||||
|
unhex_SOURCES = unhex.c
|
||||||
|
|
||||||
|
#
|
||||||
|
# HACK: install to the build-tree
|
||||||
|
#
|
||||||
|
install-exec-local: $(bin_PROGRAMS)
|
||||||
|
$(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
|
||||||
|
$(INSTALL_PROGRAM) $(bin_PROGRAMS) \
|
||||||
|
$(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
|
||||||
|
|
||||||
|
preinstall: install-exec-local
|
||||||
@@ -1,81 +1,397 @@
|
|||||||
|
# Makefile.in generated automatically by automake 1.4 from Makefile.am
|
||||||
|
|
||||||
|
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
||||||
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||||
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
|
# PARTICULAR PURPOSE.
|
||||||
|
|
||||||
#
|
#
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
|
|
||||||
@SET_MAKE@
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
top_builddir = ../../..
|
VPATH = @srcdir@
|
||||||
subdir = c/build-tools/src
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
|
bindir = @bindir@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
datadir = @datadir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
sharedstatedir = @sharedstatedir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
libdir = @libdir@
|
||||||
|
infodir = @infodir@
|
||||||
|
mandir = @mandir@
|
||||||
|
includedir = @includedir@
|
||||||
|
oldincludedir = /usr/include
|
||||||
|
|
||||||
|
DESTDIR =
|
||||||
|
|
||||||
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
|
|
||||||
|
top_builddir = ..
|
||||||
|
|
||||||
|
ACLOCAL = @ACLOCAL@
|
||||||
|
AUTOCONF = @AUTOCONF@
|
||||||
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
AUTOHEADER = @AUTOHEADER@
|
||||||
|
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
CC = @CC@
|
||||||
|
EXEEXT = @EXEEXT@
|
||||||
|
KSH = @KSH@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
PROJECT_ROOT = @PROJECT_ROOT@
|
PROJECT_ROOT = @PROJECT_ROOT@
|
||||||
|
RTEMS_ROOT = @RTEMS_ROOT@
|
||||||
|
RTEMS_TOPdir = @RTEMS_TOPdir@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
|
||||||
exec_prefix = @exec_prefix@
|
AUTOMAKE_OPTIONS = foreign
|
||||||
bindir = @bindir@
|
|
||||||
libdir = @libdir@
|
|
||||||
includedir = @includedir@
|
|
||||||
manext = 1
|
|
||||||
mandir = @mandir@/man$(manext)
|
|
||||||
|
|
||||||
# FIXME: $EXEEXT should be set in a central cfg-file used for native
|
bin_PROGRAMS = cklength eolstrip packhex unhex
|
||||||
# compiling (e.g. gcc.cfg) instead of setting EXEEXE here.
|
|
||||||
EXEEXT=@EXEEXT@
|
|
||||||
|
|
||||||
VPATH = @srcdir@
|
cklength_SOURCES = cklength.c
|
||||||
|
eolstrip_SOURCES = eolstrip.c
|
||||||
|
packhex_SOURCES = packhex.c
|
||||||
|
unhex_SOURCES = unhex.c
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
|
||||||
|
CONFIG_HEADER = config.h
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
bin_PROGRAMS = cklength$(EXEEXT) eolstrip$(EXEEXT) packhex$(EXEEXT) \
|
||||||
|
unhex$(EXEEXT)
|
||||||
|
PROGRAMS = $(bin_PROGRAMS)
|
||||||
|
|
||||||
# we use host compiler in this directory
|
|
||||||
USE_HOST_COMPILER=yes
|
|
||||||
|
|
||||||
# C source names, if any, go here -- minus the .c
|
DEFS = @DEFS@ -I. -I$(srcdir) -I.
|
||||||
C_PIECES=cklength eolstrip packhex unhex
|
CPPFLAGS = @CPPFLAGS@
|
||||||
C_FILES=$(C_PIECES:%=%.c)
|
LDFLAGS = @LDFLAGS@
|
||||||
C_O_FILES=$(C_PIECES:%=$(ARCH)/%.o)
|
LIBS = @LIBS@
|
||||||
|
cklength_OBJECTS = cklength.o
|
||||||
|
cklength_LDADD = $(LDADD)
|
||||||
|
cklength_DEPENDENCIES =
|
||||||
|
cklength_LDFLAGS =
|
||||||
|
eolstrip_OBJECTS = eolstrip.o
|
||||||
|
eolstrip_LDADD = $(LDADD)
|
||||||
|
eolstrip_DEPENDENCIES =
|
||||||
|
eolstrip_LDFLAGS =
|
||||||
|
packhex_OBJECTS = packhex.o
|
||||||
|
packhex_LDADD = $(LDADD)
|
||||||
|
packhex_DEPENDENCIES =
|
||||||
|
packhex_LDFLAGS =
|
||||||
|
unhex_OBJECTS = unhex.o
|
||||||
|
unhex_LDADD = $(LDADD)
|
||||||
|
unhex_DEPENDENCIES =
|
||||||
|
unhex_LDFLAGS =
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
|
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||||
|
CCLD = $(CC)
|
||||||
|
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||||
|
DIST_COMMON = ./stamp-h.in Makefile.am Makefile.in config.h.in
|
||||||
|
|
||||||
H_FILES=
|
|
||||||
|
|
||||||
SRCS=$(C_FILES) $(CC_FILES) $(H_FILES)
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
|
|
||||||
|
|
||||||
# FIXME: building into $(ARCH) doesn't make sense for host programs
|
TAR = tar
|
||||||
PGMS=$(ARCH)/cklength$(EXEEXT) $(ARCH)/eolstrip$(EXEEXT) \
|
GZIP_ENV = --best
|
||||||
$(ARCH)/packhex$(EXEEXT) $(ARCH)/unhex$(EXEEXT)
|
DEP_FILES = .deps/cklength.P .deps/eolstrip.P .deps/packhex.P \
|
||||||
|
.deps/unhex.P
|
||||||
|
SOURCES = $(cklength_SOURCES) $(eolstrip_SOURCES) $(packhex_SOURCES) $(unhex_SOURCES)
|
||||||
|
OBJECTS = $(cklength_OBJECTS) $(eolstrip_OBJECTS) $(packhex_OBJECTS) $(unhex_OBJECTS)
|
||||||
|
|
||||||
include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
|
all: all-redirect
|
||||||
include $(RTEMS_ROOT)/make/leaf.cfg
|
.SUFFIXES:
|
||||||
|
.SUFFIXES: .S .c .o .s
|
||||||
|
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile
|
||||||
|
|
||||||
#
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||||
# (OPTIONAL) Add local stuff here using +=
|
|
||||||
#
|
|
||||||
|
|
||||||
DEFINES +=
|
|
||||||
CPPFLAGS += -I.
|
|
||||||
CFLAGS +=
|
|
||||||
|
|
||||||
LD_PATHS +=
|
|
||||||
LD_LIBS +=
|
|
||||||
LDFLAGS +=
|
|
||||||
|
|
||||||
#
|
|
||||||
# Add your list of files to delete here. The config files
|
|
||||||
# already know how to delete some stuff, so you may want
|
|
||||||
# to just run 'make clean' first to see what gets missed.
|
|
||||||
# 'make clobber' already includes 'make clean'
|
|
||||||
#
|
|
||||||
|
|
||||||
CLEAN_ADDITIONS += $(HOST_ARCH)
|
|
||||||
CLOBBER_ADDITIONS +=
|
|
||||||
|
|
||||||
DESTDIR=${PROJECT_RELEASE}/build-tools
|
|
||||||
|
|
||||||
$(DESTDIR):
|
|
||||||
@top_srcdir@/mkinstalldirs $@
|
|
||||||
|
|
||||||
all: $(ARCH) $(DESTDIR) $(SRCS) $(PGMS)
|
|
||||||
$(INSTALL) $(INSTBINFLAGS) $(PGMS) $(DESTDIR)
|
|
||||||
|
|
||||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
||||||
cd $(top_builddir) \
|
cd $(top_builddir) \
|
||||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
|
||||||
|
config.h: stamp-h
|
||||||
|
@if test ! -f $@; then \
|
||||||
|
rm -f stamp-h; \
|
||||||
|
$(MAKE) stamp-h; \
|
||||||
|
else :; fi
|
||||||
|
stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES= CONFIG_HEADERS=src/config.h \
|
||||||
|
$(SHELL) ./config.status
|
||||||
|
@echo timestamp > stamp-h 2> /dev/null
|
||||||
|
$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
|
||||||
|
@if test ! -f $@; then \
|
||||||
|
rm -f $(srcdir)/stamp-h.in; \
|
||||||
|
$(MAKE) $(srcdir)/stamp-h.in; \
|
||||||
|
else :; fi
|
||||||
|
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
||||||
|
cd $(top_srcdir) && $(AUTOHEADER)
|
||||||
|
@echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
|
||||||
|
|
||||||
|
mostlyclean-hdr:
|
||||||
|
|
||||||
|
clean-hdr:
|
||||||
|
|
||||||
|
distclean-hdr:
|
||||||
|
-rm -f config.h
|
||||||
|
|
||||||
|
maintainer-clean-hdr:
|
||||||
|
|
||||||
|
mostlyclean-binPROGRAMS:
|
||||||
|
|
||||||
|
clean-binPROGRAMS:
|
||||||
|
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
|
||||||
|
|
||||||
|
distclean-binPROGRAMS:
|
||||||
|
|
||||||
|
maintainer-clean-binPROGRAMS:
|
||||||
|
|
||||||
|
install-binPROGRAMS: $(bin_PROGRAMS)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
||||||
|
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||||
|
if test -f $$p; then \
|
||||||
|
echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
|
||||||
|
$(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
|
||||||
|
else :; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-binPROGRAMS:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||||
|
rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
|
||||||
|
done
|
||||||
|
|
||||||
|
.s.o:
|
||||||
|
$(COMPILE) -c $<
|
||||||
|
|
||||||
|
.S.o:
|
||||||
|
$(COMPILE) -c $<
|
||||||
|
|
||||||
|
mostlyclean-compile:
|
||||||
|
-rm -f *.o core *.core
|
||||||
|
|
||||||
|
clean-compile:
|
||||||
|
|
||||||
|
distclean-compile:
|
||||||
|
-rm -f *.tab.c
|
||||||
|
|
||||||
|
maintainer-clean-compile:
|
||||||
|
|
||||||
|
cklength$(EXEEXT): $(cklength_OBJECTS) $(cklength_DEPENDENCIES)
|
||||||
|
@rm -f cklength$(EXEEXT)
|
||||||
|
$(LINK) $(cklength_LDFLAGS) $(cklength_OBJECTS) $(cklength_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
eolstrip$(EXEEXT): $(eolstrip_OBJECTS) $(eolstrip_DEPENDENCIES)
|
||||||
|
@rm -f eolstrip$(EXEEXT)
|
||||||
|
$(LINK) $(eolstrip_LDFLAGS) $(eolstrip_OBJECTS) $(eolstrip_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
packhex$(EXEEXT): $(packhex_OBJECTS) $(packhex_DEPENDENCIES)
|
||||||
|
@rm -f packhex$(EXEEXT)
|
||||||
|
$(LINK) $(packhex_LDFLAGS) $(packhex_OBJECTS) $(packhex_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
unhex$(EXEEXT): $(unhex_OBJECTS) $(unhex_DEPENDENCIES)
|
||||||
|
@rm -f unhex$(EXEEXT)
|
||||||
|
$(LINK) $(unhex_LDFLAGS) $(unhex_OBJECTS) $(unhex_LDADD) $(LIBS)
|
||||||
|
|
||||||
|
tags: TAGS
|
||||||
|
|
||||||
|
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||||
|
list='$(SOURCES) $(HEADERS)'; \
|
||||||
|
unique=`for i in $$list; do echo $$i; done | \
|
||||||
|
awk ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
here=`pwd` && cd $(srcdir) \
|
||||||
|
&& mkid -f$$here/ID $$unique $(LISP)
|
||||||
|
|
||||||
|
TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
|
||||||
|
tags=; \
|
||||||
|
here=`pwd`; \
|
||||||
|
list='$(SOURCES) $(HEADERS)'; \
|
||||||
|
unique=`for i in $$list; do echo $$i; done | \
|
||||||
|
awk ' { files[$$0] = 1; } \
|
||||||
|
END { for (i in files) print i; }'`; \
|
||||||
|
test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
|
||||||
|
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
|
||||||
|
|
||||||
|
mostlyclean-tags:
|
||||||
|
|
||||||
|
clean-tags:
|
||||||
|
|
||||||
|
distclean-tags:
|
||||||
|
-rm -f TAGS ID
|
||||||
|
|
||||||
|
maintainer-clean-tags:
|
||||||
|
|
||||||
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||||
|
|
||||||
|
subdir = src
|
||||||
|
|
||||||
|
distdir: $(DISTFILES)
|
||||||
|
here=`cd $(top_builddir) && pwd`; \
|
||||||
|
top_distdir=`cd $(top_distdir) && pwd`; \
|
||||||
|
distdir=`cd $(distdir) && pwd`; \
|
||||||
|
cd $(top_srcdir) \
|
||||||
|
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign src/Makefile
|
||||||
|
@for file in $(DISTFILES); do \
|
||||||
|
d=$(srcdir); \
|
||||||
|
if test -d $$d/$$file; then \
|
||||||
|
cp -pr $$/$$file $(distdir)/$$file; \
|
||||||
|
else \
|
||||||
|
test -f $(distdir)/$$file \
|
||||||
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||||
|
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
|
||||||
|
|
||||||
|
-include $(DEP_FILES)
|
||||||
|
|
||||||
|
mostlyclean-depend:
|
||||||
|
|
||||||
|
clean-depend:
|
||||||
|
|
||||||
|
distclean-depend:
|
||||||
|
-rm -rf .deps
|
||||||
|
|
||||||
|
maintainer-clean-depend:
|
||||||
|
|
||||||
|
%.o: %.c
|
||||||
|
@echo '$(COMPILE) -c $<'; \
|
||||||
|
$(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
|
||||||
|
@-cp .deps/$(*F).pp .deps/$(*F).P; \
|
||||||
|
tr ' ' '\012' < .deps/$(*F).pp \
|
||||||
|
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
|
||||||
|
>> .deps/$(*F).P; \
|
||||||
|
rm .deps/$(*F).pp
|
||||||
|
|
||||||
|
%.lo: %.c
|
||||||
|
@echo '$(LTCOMPILE) -c $<'; \
|
||||||
|
$(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
|
||||||
|
@-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
|
||||||
|
< .deps/$(*F).pp > .deps/$(*F).P; \
|
||||||
|
tr ' ' '\012' < .deps/$(*F).pp \
|
||||||
|
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
|
||||||
|
>> .deps/$(*F).P; \
|
||||||
|
rm -f .deps/$(*F).pp
|
||||||
|
info-am:
|
||||||
|
info: info-am
|
||||||
|
dvi-am:
|
||||||
|
dvi: dvi-am
|
||||||
|
check-am: all-am
|
||||||
|
check: check-am
|
||||||
|
installcheck-am:
|
||||||
|
installcheck: installcheck-am
|
||||||
|
all-recursive-am: config.h
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||||
|
|
||||||
|
install-exec-am: install-binPROGRAMS install-exec-local
|
||||||
|
install-exec: install-exec-am
|
||||||
|
|
||||||
|
install-data-am:
|
||||||
|
install-data: install-data-am
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
install: install-am
|
||||||
|
uninstall-am: uninstall-binPROGRAMS
|
||||||
|
uninstall: uninstall-am
|
||||||
|
all-am: Makefile $(PROGRAMS) config.h
|
||||||
|
all-redirect: all-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs:
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
||||||
|
|
||||||
|
|
||||||
|
mostlyclean-generic:
|
||||||
|
|
||||||
|
clean-generic:
|
||||||
|
|
||||||
|
distclean-generic:
|
||||||
|
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||||
|
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||||
|
|
||||||
|
maintainer-clean-generic:
|
||||||
|
mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS \
|
||||||
|
mostlyclean-compile mostlyclean-tags mostlyclean-depend \
|
||||||
|
mostlyclean-generic
|
||||||
|
|
||||||
|
mostlyclean: mostlyclean-am
|
||||||
|
|
||||||
|
clean-am: clean-hdr clean-binPROGRAMS clean-compile clean-tags \
|
||||||
|
clean-depend clean-generic mostlyclean-am
|
||||||
|
|
||||||
|
clean: clean-am
|
||||||
|
|
||||||
|
distclean-am: distclean-hdr distclean-binPROGRAMS distclean-compile \
|
||||||
|
distclean-tags distclean-depend distclean-generic \
|
||||||
|
clean-am
|
||||||
|
|
||||||
|
distclean: distclean-am
|
||||||
|
|
||||||
|
maintainer-clean-am: maintainer-clean-hdr maintainer-clean-binPROGRAMS \
|
||||||
|
maintainer-clean-compile maintainer-clean-tags \
|
||||||
|
maintainer-clean-depend maintainer-clean-generic \
|
||||||
|
distclean-am
|
||||||
|
@echo "This command is intended for maintainers to use;"
|
||||||
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
|
|
||||||
|
maintainer-clean: maintainer-clean-am
|
||||||
|
|
||||||
|
.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
|
||||||
|
mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
|
||||||
|
maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
|
||||||
|
mostlyclean-compile distclean-compile clean-compile \
|
||||||
|
maintainer-clean-compile tags mostlyclean-tags distclean-tags \
|
||||||
|
clean-tags maintainer-clean-tags distdir mostlyclean-depend \
|
||||||
|
distclean-depend clean-depend maintainer-clean-depend info-am info \
|
||||||
|
dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
|
||||||
|
install-exec-local install-exec-am install-exec install-data-am \
|
||||||
|
install-data install-am install uninstall-am uninstall all-redirect \
|
||||||
|
all-am all installdirs mostlyclean-generic distclean-generic \
|
||||||
|
clean-generic maintainer-clean-generic clean mostlyclean distclean \
|
||||||
|
maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# HACK: install to the build-tree
|
||||||
|
#
|
||||||
|
install-exec-local: $(bin_PROGRAMS)
|
||||||
|
$(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
|
||||||
|
$(INSTALL_PROGRAM) $(bin_PROGRAMS) \
|
||||||
|
$(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
|
||||||
|
|
||||||
|
preinstall: install-exec-local
|
||||||
|
|
||||||
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||||
|
.NOEXPORT:
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
/*
|
/* src/config.h.in. Generated automatically from configure.in by autoheader. */
|
||||||
* This file is editted automatically by autoconf.
|
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Define if you have the strerror function. */
|
/* Define if you have the strerror function. */
|
||||||
#undef HAVE_STRERROR
|
#undef HAVE_STRERROR
|
||||||
|
|
||||||
|
|||||||
1
tools/build/src/stamp-h.in
Normal file
1
tools/build/src/stamp-h.in
Normal file
@@ -0,0 +1 @@
|
|||||||
|
timestamp
|
||||||
Reference in New Issue
Block a user