mirror of
https://github.com/t-crest/rtems.git
synced 2025-12-05 15:15:48 +00:00
This is part of a major patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
to move RTEMS more to automake/autoconf and GNU compliance.
Finally, here they are: the "big-patch" patches - merged into one big
patch (~1.5MB).
Sorry for the delay, but testing took much more time than I had expected
- esp. reworking the acpolish script triggered many more tiny issues
than I had expected (cf. below).
At least, now you've got something to spend your weekend with :-.
WARNINGS:
* I've gone a little (??) further than I had announced before.
* Several directories have been moved.
* Several files have been added and removed
* I have tested it with many BSPs/CPUs and a variety of permutiations of
configuration flags, but not with all.
* Most parts of the patch are automatically generated, however there are
many tiny manual modifications.
APPLYING THE PATCH:
./autogen -c
mkdir tools
mv c/src/exec/score/tools tools/cpu
mv c/build-tools tools/build
mv c/update-tools tools/update
patch -p1 -E < rtems-rc-19990709-0.diff
./autogen
If the patch doesn't apply to rtems-cvs, I would suggest that you should
try to apply it brute-force and then to run tools/update/rtems-polish.sh
-ac -am afterwards. A recursive diff between rtems-19990709 + patch and
rtems-cvs + patch then should report only a few dozen significant
changes to configuration files which need to be merged manually (IIRC, I
did not change any source files).
*** Attention: There are files to be removed, moved, copied and added
in/to CVS!
NEWS/CHANGES:
1. Configuration takes place in 3 stages: 1. per host (toplevel
configure script), 2. per target (c/configure), 3. per bsp
c/src/configure automatically triggered from ./configure and
c/Makefile.am.
2. Building of subdirectory c/ takes place in c/$(target_alias) for
cross-targets in c/ for native targets
3. Building of subdirectory c/src takes place in c/${target_alias}/<bsp>
for cross-targets, c/<bsp> for native targets
4. c/build-tools moved to tools/build
5. c/src/exec/score/cpu/tools moved to tools/cpu (=cpu-tools split out)
6. c/update-tools moved to tools/update
7. New subdirectory c/src/make, handles files from make/ on a per BSP
basis
8. Maintainer mode support: Ie. if configuring with
--enable-maintainer-mode disabled (the default), then tracking of many
dependencies will be disabled in Makefiles. Esp. many dependencies for
auto* generated files will be switched off in Makefiles. Ie. if not
using "--enable-maintainer-mode" many auto* generated files will not be
updated automatically, i.e. normal users should not be required to have
auto* tools anymore (untested).
9. Independent configuration scripts for / (toplevel), tools/build,
tools/cpu, tools/update, c/, c/src/, c/src/exec, c/src/lib, c/src/tests,
c/src/make
10. Automake support for all directories above and besides c/src
11. "preinstall" now is implemented as depth-first recursive make target
12. host compiled tools (exception bsp-tools) are accessed in location
in the build tree instead of inside the build-tree when building RTEMS.
13. RTEMS_ROOT and PROJECT_ROOT now point to directories inside the
build-tree - many tiny changes as consequence from this.
14. --with-cross-host support removed (offically announced obsolete by
cygnus)
15. Changing the order of building libraries below c/src/lib/
16. Former toplevel configure script broken into aclocal/*.m4 macros
17. Newlib now detected by configure macros, RTEMS_HAS_NEWLIB removed
from *cfg.
18. sptables.h now generated by autoconf
19. Rules for "mkinstalldirs temporary installation tree" moved from
c/Makefile to subdirectories.
20. Cpu-tools do not get installed.
21. FIX: Use ACLOCAL_AMFLAGS instead of ACLOCAL = -I ... in Makefile.ams
which are in directories with own configure scripts.
22. Hardcoding BSP names into libbsp/.../tools to avoid RTEMS_BSP get
overridden from the environment.
22. FIX: Handling of MP_PIECES in various Makefiles
23. FIX: Removing "::" rules from some Makefile.ins
24. FIX: File permission chaos: (-m 444 and -m 555 vs. -m 644 and -m
755) - Now all include files use -m 644.
25. Removed many gnumake-conditionals in Makefile.ins - Partially
replaced with automake-conditional, partially replaced with
conditionalized Makefile variables (... _yes_V)
26. Massively reworked acpolish: acpolish now parses Makefile.ins and
interprets parts of the Makefile.ins.
27. FIX: Some $(wildcard $(srcdir)/*.h) macros removed / replaced with
explicit lists of files in Makefile.ins.
28. FIX: Replacing MKLIB with RANLIB in Makefile.ins
29. HACK: Add preinstallation for pc386 specific
$(PROJECT_RELEASE)/BootImgs directory
... many more details, I can't recall
KNOWN BUGS:
1. make [debug|profile]_install do not do what they are promissing.
"make [debug|profile] install" does what "make [debug|profile]_install"
has been doing. Proposal: remove [debug|profile]_install
2. Dependencies between temporary installation tree and source tree are
not yet handled correctly.
3. Dependencies between temporary installation tree and source tree are
handled ineffencently (Using INSTALL_CHANGE instead of make
dependencies)
4. RTEMS_ROOT, PROJECT_ROOT, top_builddir, RTEMS_TOPdir now are
redundant.
5. The new configure scripts still are in their infancy. They contain
redundant checks and might still contain bugs, too.
6. RTEMS autoconf Makefile.ins use a mixture of configuration
information gathered in c/$(target_alias)/<bsp>/make and of information
collected from their configure scripts.
7. make dist is not fully functional
8. Subdirectory host-/build-/target- configure options (--target,
--host, --build) do not conform to Cygnus/GNU conventions.
9. Some RTEMS autoconf Makefile.in's makefile targets are not supported
in automake Makefile.ams/ins (e.g. get, clobber).
10. Some automake standard targets are not propagated from toplevel and
c/Makefile.am to autoconf subdirectories (eg. make dist).
11. rpcgen generated files are not part of the source-tree (Automake
conventions favor supplying generated files inside the source-tree,
however there is no support for rpcgen generated files in automake, cf.
yacc/lex support in automake).
12. RTEMS_HAS_RDBG handling is flaky. make/*.cfg use RTEMS_HAS_RDBG per
CPU, while librdb's sources can only be built per BSP. Raises the more
general question whether librdbg located correctly in the source-tree.
13. All make/*cfg files are configured per cpu, currently there is no
location to store per-bsp configuration information --> bsp.cfg, per
aconfig.h?
14. "make install" without having run "make all" beforehand does not
work.
15. handling of --enable-multiprocessing seems to be broken in
make/custom/*
16. Makefile.ins still exploit many gmake features.
17. File permisson chaos on libraries (no explict -m for
libraries/rels/etc).
18. mcp750 Makefiles are broken (Note: I *do* mean buggy - I am not
talking about "not-conforming to conventions", here :-).
19. Dependencies between configure scripts are not handled, eg. aborting
"make RTEMS_BSP=<bsp>" can leave the build-tree in an unusable state.
20. "make clean" does not delete <build-tree>/<bsp>. This is intentional
for now, because rerunning "make" after "make clean" requires an
explicit "make preinstall" afterwards now. This should be done
automatically, but doesn't work in this case for now. To work around
this problem <build-tree>/<bsp> is kept during "make clean" for now
(HACK).
TODO:
1. split out host-compiled bsp-tools
2. Use Cygnus/GNU standards for cross-compiling target-subdir
(CC=CC_FOR_TARGET .. configure --host=${target_alias}
--build=`config.guess'}), to be added to toplevel configure script after
splitting out bsp-tools.
3. Exploit per cpu support directory (c/src/<cpu>)- Splitting out
per-cpu libraries - Are there any?
4. Further automake support
5. Converting subdirectories into standalone / self-contained
subdirectories (Esp. moving their headers to the same common root as
their sources, eg. mv lib/include/rtems++
lib/librtems++/include/rtems++) - This is the main obstacle which
prevents moving further towards automake.
6. Propagating values from *.cfg into Makefiles instead of propagating
them at make time via Makefile-fragments (i.e. try to avoid using
*.cfg).
7. Testing on cygwin host (I *do* expect cygwin specific problems).
8. The ARCH in o-$(ARCH)-$(VARIANT) build-subdirectories is not needed
anymore.
GENERAL ISSUES:
1. Temporary installation tree -- Ian and I seem to disagree basically.
Though I think that I understand his argumentation, I do not share it.
IMO, his way of using the buildtree is mis-using the build-tree, relying
on an inofficial feature of RTEMS's current implementation, which
doesn't even work correctly in the current build-tree, though it
attempts hard to do so. From my very POV, it unnecessarily complicates
the structures of the source- and build-trees. It is not supported by
automake (No automatic generation for the necessary rules) and
complicates the transition to automake significantly (Generating the
rules with an enhanced version of acpolish could be possible).
As Ian correctly pointed out, here a management decision is needed -
though I don't see the need to draw this decision in short terms.
2. preinstallation generally is a sure means to spoil the structure of
the source tree, IMHO (No ranting intended, I am completly serious about
this one). eg. through tree dependencies. The worst problem related to
this I have found in the meantime is bsp_specs. bsp_specs is part of
libbsp, ie. there is *no* way to build *any* part of the source tree
*without* having a BSP *preinstalled*.
Note: This issue is related to issue 1., but is not identical - The
difference is the change of the order make rules have to be triggered.
While preinstallation triggers rules spread all over the source tree
before a "make all" can be run, a temporary installation tree could also
be installed by post "make all" hooks (all-local:, to be run after make
all in a directory is completed) if the directories' dependencies would
be a tree,
3. Stuctural dependencies between subdirectories.
4. Depth of the source tree (Prevents multilibbing and introduces many
unnecessary configure scripts).
5. per cpu vs. per bsp configuration (There are no real per-cpu parts
yets :-).
6. automake does not support $makefiles in AC_OUTPUT. Unlike before, we
now should try to avoid RTEMS_CHECK_MAKEFILE and to hard-code as much
paths to Makefiles as possible.
7. General redesign of the source tree
8. Main installation point - Changing it to ${prefix}/${target_alias}. ?
Besides item 8. (which is a must, IMHO), as far as I see most of them
can not be solved soon and will remain issues in the mid- to long-term
:-.
REMARKS:
* You (as the maintainer) should always use --enable-maintainer-mode
when building RTEMS to ensure that maintainer mode generated files (esp.
those in c/src/make) will be updated when make/* files have changed.
* Use @RTEMS_BSP@ in Makefile.ins and Makefile.ams below c/src/,
$(RTEMS_BSP) or ${RTEMS_BSP} will be overridden from environment
variables when using make RTEMS_BSP="....".
* c/src/make is a temporary cludge until configuration issues are
solved. At the moment it is configured per bsp, but contains
per-target/cpu info only. Its main purpose now is to circumvent
modifying make/*.cfg files, because I consider make/* to be frozen for
backward compatibilty.
* This patch should only affect configuration files. At least I do not
remember having touched any source files.
* To build the bare bsp you now need to mention it in --enable-rtemsbsp.
Example: building gensh1 and sh1/bare simultaneously:
../rtems-rc-19990709-1/configure --target=sh-rtems \
--enable-rtemsbsp="bare gensh1" \
--prefix=/tmp/rtems \
--enable-bare-cpu-cflags='-DMHZ=20 -m1
-DCPU_CONSOLE_DEVNAME=\"/dev/null\"' \
--enable-bare-cpu-model=sh7032 \
--enable-maintainer-mode \
--enable-cxx
make
make install
* The next steps in development would be to split out bsp-tools and then
to change to Cygnus/GNU canonicalization conventions for building the c/
subdirectory afterwards (i.e. many standard AC_*.m4 macros could be used
instead of customized versions)
FINAL REMARK:
The issues mentioned in the lists above sound much worser than the
situation actually is. Most of them are not specific to this patch, but
are also valid for the snapshot. I just wrote down what I came across
when working on the patch over the last few weeks.
I wouldn't be too surprised if you don't like the patch at the current
point in development. I am willing to discuss details and problems, I
also have no problem if you would post-pone applying this patch to times
after 4.1, but rejecting it as a whole for all times would be a false
management decision, IMHO.
Therefore I would suggest that you, if your time constaints allow it,
should at least play a little while with this patch to understand what
is going on and before drawing a decision on how to handle this
proposal. I know this patch is neither perfect nor complete, but I
consider it to be a major breakthrough. Don't be anxious because of the
size of the patch, the core of the patch is rather small, the size is
mainly the side effect of some systematic cleanups inside the Makefiles
(result of acpolish).
Feel free to ask if you encounter problems, if you don't understand
something or if you meet bugs - I am far from being perfect and am
prepared to answer them.
Ralf.
--
Ralf Corsepius
Forschungsinstitut fuer Anwendungsorientierte Wissensverarbeitung (FAW)
Helmholtzstr. 16, 89081 Ulm, Germany Tel: +49/731/501-8690
mailto:corsepiu@faw.uni-ulm.de FAX: +49/731/501-999
http://www.faw.uni-ulm.de
This commit is contained in:
71
Makefile.am
Normal file
71
Makefile.am
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
#
|
||||||
|
# top level directory for RTEMS build tree
|
||||||
|
#
|
||||||
|
# The target's toplevel Makefile now is in c/src
|
||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal
|
||||||
|
|
||||||
|
SUBDIRS = make tools @TARGET_SUBDIRS@
|
||||||
|
|
||||||
|
AUTOMAKE_FILES = \
|
||||||
|
automake/subdirs.am \
|
||||||
|
automake/local.am
|
||||||
|
|
||||||
|
ACLOCAL_FILES += \
|
||||||
|
aclocal/ar-s.m4 \
|
||||||
|
aclocal/bsp-alias.m4 \
|
||||||
|
aclocal/canonical-host.m4 \
|
||||||
|
aclocal/canonical-target-name.m4 \
|
||||||
|
aclocal/canonicalize-tools.m4 \
|
||||||
|
aclocal/check-bsps.m4 \
|
||||||
|
aclocal/check-cpu.m4 \
|
||||||
|
aclocal/check-files-in.m4 \
|
||||||
|
aclocal/check-makefile.m4 \
|
||||||
|
aclocal/check-newlib.m4 \
|
||||||
|
aclocal/check-rdbg.m4 \
|
||||||
|
aclocal/enable-bare.m4 \
|
||||||
|
aclocal/enable-cxx.m4 \
|
||||||
|
aclocal/enable-gcc28.m4 \
|
||||||
|
aclocal/enable-hwapi.m4 \
|
||||||
|
aclocal/enable-inlines.m4 \
|
||||||
|
aclocal/enable-libcdir.m4 \
|
||||||
|
aclocal/enable-multiprocessing.m4 \
|
||||||
|
aclocal/enable-networking.m4 \
|
||||||
|
aclocal/enable-posix.m4 \
|
||||||
|
aclocal/enable-rdbg.m4 \
|
||||||
|
aclocal/enable-rtemsbsp.m4 \
|
||||||
|
aclocal/enable-tests.m4 \
|
||||||
|
aclocal/gcc-pipe.m4 \
|
||||||
|
aclocal/gcc-specs.m4 \
|
||||||
|
aclocal/i386-gas-code16.m4 \
|
||||||
|
aclocal/path-ksh.m4 \
|
||||||
|
aclocal/path-perl.m4 \
|
||||||
|
aclocal/prog-cc.m4 \
|
||||||
|
aclocal/prog-cxx.m4 \
|
||||||
|
aclocal/project-root.m4 \
|
||||||
|
aclocal/rtems-top.m4 \
|
||||||
|
aclocal/sysv-ipc.m4 \
|
||||||
|
aclocal/target.m4 \
|
||||||
|
aclocal/tool-paths.m4 \
|
||||||
|
aclocal/tool-prefix.m4
|
||||||
|
|
||||||
|
noinst_SCRIPTS = \
|
||||||
|
autogen
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
$(AUTOMAKE_FILES) \
|
||||||
|
$(ACLOCAL_FILES) \
|
||||||
|
README.configure \
|
||||||
|
SUPPORT \
|
||||||
|
VERSION \
|
||||||
|
LICENSE \
|
||||||
|
$(noinst_SCRIPTS)
|
||||||
|
|
||||||
|
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(ACLOCAL_FILES)
|
||||||
|
|
||||||
|
include $(top_srcdir)/automake/subdirs.am
|
||||||
|
include $(top_srcdir)/automake/local.am
|
||||||
18
aclocal/bsp-alias.m4
Normal file
18
aclocal/bsp-alias.m4
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
dnl RTEMS_BSP_ALIAS(BSP_ALIAS,BSP_RETURNED)
|
||||||
|
dnl convert a bsp alias $1 into its bsp directory $2
|
||||||
|
AC_DEFUN(RTEMS_BSP_ALIAS,
|
||||||
|
[
|
||||||
|
# account for "aliased" bsps which share source code
|
||||||
|
case $1 in
|
||||||
|
mvme162lx) $2=mvme162 ;; # mvme162 board variant
|
||||||
|
gen68360_040) $2=gen68360 ;; # 68360 in companion mode
|
||||||
|
go32_p5) $2=go32 ;; # go32 on Pentium class CPU
|
||||||
|
p4600) $2=p4000 ;; # p4000 board with IDT 4600
|
||||||
|
p4650) $2=p4000 ;; # p4000 board with IDT 4650
|
||||||
|
*) $2=$1;;
|
||||||
|
esac
|
||||||
|
])
|
||||||
31
aclocal/check-newlib.m4
Normal file
31
aclocal/check-newlib.m4
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CHECK_NEWLIB,
|
||||||
|
[dnl
|
||||||
|
AC_REQUIRE([RTEMS_PROG_CC_FOR_TARGET])dnl
|
||||||
|
AC_REQUIRE([RTEMS_CANONICALIZE_TOOLS])dnl
|
||||||
|
AC_CACHE_CHECK([for newlib],
|
||||||
|
rtems_cv_use_newlib,
|
||||||
|
[
|
||||||
|
rtems_save_CC=$CC
|
||||||
|
CC=$CC_FOR_TARGET
|
||||||
|
|
||||||
|
dnl some versions of newlib provide not_required_by_rtems
|
||||||
|
AC_TRY_LINK(
|
||||||
|
[extern int not_required_by_rtems() ;],
|
||||||
|
[not_required_by_rtems()],
|
||||||
|
rtems_cv_use_newlib="yes")
|
||||||
|
|
||||||
|
dnl older versions of newlib provided rtems_provides_crt0
|
||||||
|
if test -z "$rtems_cv_use_newlib"; then
|
||||||
|
AC_TRY_LINK(
|
||||||
|
[extern int rtems_provides_crt0 ;],
|
||||||
|
[rtems_provides_crt0 = 0],
|
||||||
|
rtems_cv_use_newlib="yes",
|
||||||
|
rtems_cv_use_newlib="no")
|
||||||
|
fi
|
||||||
|
CC=$rtems_save_CC])
|
||||||
|
RTEMS_USE_NEWLIB="$rtems_cv_use_newlib"
|
||||||
|
AC_SUBST(RTEMS_USE_NEWLIB)
|
||||||
|
])
|
||||||
|
|
||||||
14
aclocal/check-rdbg.m4
Normal file
14
aclocal/check-rdbg.m4
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
AC_DEFUN(RTEMS_CHECK_RDBG,
|
||||||
|
[dnl
|
||||||
|
AC_REQUIRE([RTEMS_TOP])dnl
|
||||||
|
AC_REQUIRE([RTEMS_CHECK_CPU])dnl
|
||||||
|
AC_CACHE_CHECK([whether cpu supports librdbg],
|
||||||
|
rtems_cv_has_rdbg,
|
||||||
|
[
|
||||||
|
if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/librdbg/${RTEMS_CPU}"; then
|
||||||
|
rtems_cv_has_rdbg="yes" ;
|
||||||
|
else
|
||||||
|
rtems_cv_has_rdbg="no";
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
])
|
||||||
31
aclocal/enable-rtemsbsp.m4
Normal file
31
aclocal/enable-rtemsbsp.m4
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
dnl Override the set of BSPs to be built.
|
||||||
|
dnl used by the toplevel configure script
|
||||||
|
dnl RTEMS_ENABLE_RTEMSBSP(rtems_bsp_list)
|
||||||
|
AC_DEFUN(RTEMS_ENABLE_RTEMSBSP,
|
||||||
|
[
|
||||||
|
AC_ARG_ENABLE(rtemsbsp,
|
||||||
|
[ --enable-rtemsbsp=bsp1 bsp2 .. BSPs to include in build],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes|no) AC_MSG_ERROR([missing argument to --enable-rtemsbsp=\"bsp1 bsp2\"]);;
|
||||||
|
*) $1=$enableval;;
|
||||||
|
esac],[$1=""])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl Pass a single BSP via an environment variable
|
||||||
|
dnl used by per BSP configure scripts
|
||||||
|
AC_DEFUN(RTEMS_ENV_RTEMSBSP,
|
||||||
|
[dnl
|
||||||
|
AC_MSG_CHECKING([for RTEMS_BSP])
|
||||||
|
AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
|
||||||
|
[dnl
|
||||||
|
test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
|
||||||
|
])dnl
|
||||||
|
if test -z "$rtems_cv_RTEMS_BSP"; then
|
||||||
|
AC_MSG_ERROR([Missing RTEMS_BSP])
|
||||||
|
fi
|
||||||
|
RTEMS_BSP="$rtems_cv_RTEMS_BSP"
|
||||||
|
AC_MSG_RESULT(${RTEMS_BSP})
|
||||||
|
AC_SUBST(RTEMS_BSP)
|
||||||
|
])
|
||||||
24
aclocal/project-root.m4
Normal file
24
aclocal/project-root.m4
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PROJECT_ROOT,
|
||||||
|
[dnl
|
||||||
|
AC_REQUIRE([RTEMS_TOP])
|
||||||
|
if test "$TARGET_SUBDIR" = "." ; then
|
||||||
|
PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)';
|
||||||
|
else
|
||||||
|
PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)'
|
||||||
|
fi
|
||||||
|
AC_SUBST(PROJECT_ROOT)
|
||||||
|
|
||||||
|
RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
|
||||||
|
AC_SUBST(RTEMS_ROOT)
|
||||||
|
|
||||||
|
INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change"
|
||||||
|
AC_SUBST(INSTALL_CHANGE)
|
||||||
|
|
||||||
|
PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex"
|
||||||
|
AC_SUBST(PACKHEX)
|
||||||
|
])
|
||||||
|
|
||||||
130
aclocal/target.m4
Normal file
130
aclocal/target.m4
Normal file
@@ -0,0 +1,130 @@
|
|||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CONFIG_SUBDIRS,
|
||||||
|
[
|
||||||
|
define([RTEMS_TGT_SUBDIRS],
|
||||||
|
ifdef([RTEMS_TGT_SUBDIRS], [RTEMS_TGT_SUBDIRS ],)[$1])dnl
|
||||||
|
target_subdirs="RTEMS_TGT_SUBDIRS"
|
||||||
|
AC_SUBST(target_subdirs)
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl This is a subroutine of AC_OUTPUT.
|
||||||
|
dnl It is called after running config.status.
|
||||||
|
dnl AC_OUTPUT_SUBDIRS(DIRECTORY...)
|
||||||
|
AC_DEFUN(RTEMS_OUTPUT_SUBDIRS,
|
||||||
|
[
|
||||||
|
# bla
|
||||||
|
if test "$no_recursion" != yes; then
|
||||||
|
if test $target_alias != $host_alias; then
|
||||||
|
target_subdir="$target_alias"
|
||||||
|
else
|
||||||
|
target_subdir="."
|
||||||
|
fi
|
||||||
|
# Remove --cache-file and --srcdir arguments so they do not pile up.
|
||||||
|
ac_sub_configure_args=
|
||||||
|
ac_prev=
|
||||||
|
for ac_arg in $ac_configure_args; do
|
||||||
|
if test -n "$ac_prev"; then
|
||||||
|
ac_prev=
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
case "$ac_arg" in
|
||||||
|
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
||||||
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
||||||
|
ac_prev=cache_file ;;
|
||||||
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
||||||
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
||||||
|
;;
|
||||||
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
||||||
|
ac_prev=srcdir ;;
|
||||||
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
||||||
|
;;
|
||||||
|
*) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
test -d $target_subdir || mkdir $target_subdir
|
||||||
|
for ac_config_dir in $1; do
|
||||||
|
|
||||||
|
# Do not complain, so a configure script can configure whichever
|
||||||
|
# parts of a large source tree are present.
|
||||||
|
if test ! -d $srcdir/$ac_config_dir; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo configuring in $target_subdir/$ac_config_dir
|
||||||
|
|
||||||
|
case "$srcdir" in
|
||||||
|
.) ;;
|
||||||
|
*)
|
||||||
|
if test -d $target_subdir/$ac_config_dir || mkdir $target_subdir/$ac_config_dir; then :;
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR(can not create `pwd`/$target_subdir/$ac_config_dir)
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
ac_popdir=`pwd`
|
||||||
|
cd $target_subdir/$ac_config_dir
|
||||||
|
|
||||||
|
changequote(, )dnl
|
||||||
|
# A "../" for each directory in /$ac_config_dir.
|
||||||
|
ac_dots=`echo $target_subdir/$ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
|
||||||
|
changequote([, ])dnl
|
||||||
|
|
||||||
|
case "$srcdir" in
|
||||||
|
.) # No --srcdir option. We are building in place.
|
||||||
|
ac_sub_srcdir=$srcdir ;;
|
||||||
|
/*) # Absolute path.
|
||||||
|
ac_sub_srcdir=$srcdir/$ac_config_dir ;;
|
||||||
|
*) # Relative path.
|
||||||
|
ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Check for guested configure; otherwise get Cygnus style configure.
|
||||||
|
if test -f $ac_sub_srcdir/configure; then
|
||||||
|
ac_sub_configure=$ac_sub_srcdir/configure
|
||||||
|
elif test -f $ac_sub_srcdir/configure.in; then
|
||||||
|
ac_sub_configure=$ac_configure
|
||||||
|
else
|
||||||
|
AC_MSG_WARN(no configuration information is in $ac_config_dir)
|
||||||
|
ac_sub_configure=
|
||||||
|
fi
|
||||||
|
|
||||||
|
# The recursion is here.
|
||||||
|
if test -n "$ac_sub_configure"; then
|
||||||
|
|
||||||
|
# Make the cache file name correct relative to the subdirectory.
|
||||||
|
if test "$target_alias" != "$host_alias"; then
|
||||||
|
ac_sub_cache_file=$cache_file
|
||||||
|
else
|
||||||
|
case "$cache_file" in
|
||||||
|
/*) ac_sub_cache_file=$cache_file ;;
|
||||||
|
*) # Relative path.
|
||||||
|
ac_sub_cache_file="$ac_dots$cache_file" ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
ifdef([AC_PROVIDE_AC_PROG_INSTALL],
|
||||||
|
[ case "$ac_given_INSTALL" in
|
||||||
|
changequote(, )dnl
|
||||||
|
[/$]*) INSTALL="$ac_given_INSTALL" ;;
|
||||||
|
changequote([, ])dnl
|
||||||
|
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
||||||
|
esac
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
echo "[running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file] --srcdir=$ac_sub_srcdir"
|
||||||
|
# The eval makes quoting arguments work.
|
||||||
|
if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure \
|
||||||
|
$ac_sub_configure_args --srcdir=$ac_sub_srcdir \
|
||||||
|
--with-target-subdir=$target_subdir --cache-file=$ac_sub_cache_file
|
||||||
|
then :
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR($ac_sub_configure failed for $ac_config_dir)
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd $ac_popdir
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
])
|
||||||
51
c/Makefile.am
Normal file
51
c/Makefile.am
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal
|
||||||
|
|
||||||
|
RTEMS_BSP = $(RTEMS_BSP_LIST)
|
||||||
|
## The '.' in SUBDIRS ensures that local make-targets (xxx-am) will be
|
||||||
|
## triggered before $(RTEMS_BSP_LIST) subdirectories are made.
|
||||||
|
SUBDIRS= \
|
||||||
|
. \
|
||||||
|
$(RTEMS_BSP)
|
||||||
|
|
||||||
|
## Use @RTEMS_BSP_LIST@ here, using $(RTEMS_BSP_LIST) would trigger
|
||||||
|
## this rule for invalid BSPs
|
||||||
|
@RTEMS_BSP_LIST@: src/configure
|
||||||
|
@set fnord $(MAKEFLAGS); amf=$$2; \
|
||||||
|
# Adjust paths
|
||||||
|
test -n "${RTEMS_BSP}" && for i in ${RTEMS_BSP}; do \
|
||||||
|
echo "Configuring RTEMS_BSP=$$i"; \
|
||||||
|
test -d $$i || mkdir $$i; \
|
||||||
|
( cd $$i && \
|
||||||
|
RTEMS_BSP=$$i $(rtems_bsp_configure) \
|
||||||
|
&& $(MAKE) $(AM_MAKEFLAGS) preinstall ) \
|
||||||
|
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
||||||
|
done
|
||||||
|
|
||||||
|
## Let all RTEMS' make targets depend on ${RTEMS_BSP}
|
||||||
|
all-am: ${RTEMS_BSP}
|
||||||
|
debug-am: ${RTEMS_BSP}
|
||||||
|
debug_install-am: ${RTEMS_BSP}
|
||||||
|
profile-am: ${RTEMS_BSP}
|
||||||
|
profile_install-am: ${RTEMS_BSP}
|
||||||
|
preinstall-am: ${RTEMS_BSP}
|
||||||
|
depend-am: ${RTEMS_BSP}
|
||||||
|
|
||||||
|
## Pull in extra files intro the distribution
|
||||||
|
EXTRA_DIST = \
|
||||||
|
ACKNOWLEDGEMENTS \
|
||||||
|
README.DOS \
|
||||||
|
REQUIRES \
|
||||||
|
PROBLEMS \
|
||||||
|
TESTED \
|
||||||
|
README \
|
||||||
|
UPDATE_HELP
|
||||||
|
|
||||||
|
DIST_SUBDIRS = ${RTEMS_BSP}
|
||||||
|
# -------------------------------------------------------
|
||||||
|
include $(top_srcdir)/../automake/subdirs.am
|
||||||
|
include $(top_srcdir)/../automake/local.am
|
||||||
376
c/aclocal.m4
vendored
Normal file
376
c/aclocal.m4
vendored
Normal file
@@ -0,0 +1,376 @@
|
|||||||
|
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$
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl RTEMS_TOP($1)
|
||||||
|
dnl
|
||||||
|
dnl $1 .. relative path from this configure.in to the toplevel configure.in
|
||||||
|
dnl
|
||||||
|
AC_DEFUN(RTEMS_TOP,
|
||||||
|
[dnl
|
||||||
|
AC_ARG_WITH(target-subdir,
|
||||||
|
[ --with-target-subdir=DIR],
|
||||||
|
TARGET_SUBDIR="$withval",
|
||||||
|
TARGET_SUBDIR=".")
|
||||||
|
|
||||||
|
RTEMS_TOPdir="$1";
|
||||||
|
AC_SUBST(RTEMS_TOPdir)
|
||||||
|
|
||||||
|
dnl Determine RTEMS Version string from the VERSION file
|
||||||
|
dnl Hopefully, Joel never changes its format ;-
|
||||||
|
AC_MSG_CHECKING([for RTEMS Version])
|
||||||
|
if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
|
||||||
|
changequote(,)dnl
|
||||||
|
RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
|
||||||
|
sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'`
|
||||||
|
changequote([,])dnl
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR(Unable to find ${RTEMS_TOPdir}/VERSION)
|
||||||
|
fi
|
||||||
|
if test -z "$RTEMS_VERSION"; then
|
||||||
|
AC_MSG_ERROR(Unable to determine version)
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($RTEMS_VERSION)
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
dnl canonicalize target cpu
|
||||||
|
dnl NOTE: Most rtems targets do not fullfil autoconf's
|
||||||
|
dnl target naming conventions "processor-vendor-os"
|
||||||
|
dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
|
||||||
|
dnl and we have to fix it for rtems ourselves
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
|
||||||
|
[
|
||||||
|
AC_CANONICAL_SYSTEM
|
||||||
|
AC_MSG_CHECKING(rtems target cpu)
|
||||||
|
changequote(,)dnl
|
||||||
|
case "${target}" in
|
||||||
|
# hpux unix port should go here
|
||||||
|
i[3456]86-go32-rtems*)
|
||||||
|
RTEMS_CPU=i386
|
||||||
|
;;
|
||||||
|
i[3456]86-pc-linux*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
i[3456]86-*freebsd2*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
no_cpu-*rtems*)
|
||||||
|
RTEMS_CPU=no_cpu
|
||||||
|
;;
|
||||||
|
sparc-sun-solaris*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
changequote([,])dnl
|
||||||
|
AC_SUBST(RTEMS_CPU)
|
||||||
|
AC_MSG_RESULT($RTEMS_CPU)
|
||||||
|
])
|
||||||
|
|
||||||
|
# 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)])
|
||||||
|
|
||||||
|
# Add --enable-maintainer-mode option to configure.
|
||||||
|
# From Jim Meyering
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
|
AC_DEFUN(AM_MAINTAINER_MODE,
|
||||||
|
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
||||||
|
dnl maintainer-mode is disabled by default
|
||||||
|
AC_ARG_ENABLE(maintainer-mode,
|
||||||
|
[ --enable-maintainer-mode enable make rules and dependencies not useful
|
||||||
|
(and sometimes confusing) to the casual installer],
|
||||||
|
USE_MAINTAINER_MODE=$enableval,
|
||||||
|
USE_MAINTAINER_MODE=no)
|
||||||
|
AC_MSG_RESULT($USE_MAINTAINER_MODE)
|
||||||
|
AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
|
||||||
|
MAINT=$MAINTAINER_MODE_TRUE
|
||||||
|
AC_SUBST(MAINT)dnl
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
# Define a conditional.
|
||||||
|
|
||||||
|
AC_DEFUN(AM_CONDITIONAL,
|
||||||
|
[AC_SUBST($1_TRUE)
|
||||||
|
AC_SUBST($1_FALSE)
|
||||||
|
if $2; then
|
||||||
|
$1_TRUE=
|
||||||
|
$1_FALSE='#'
|
||||||
|
else
|
||||||
|
$1_TRUE='#'
|
||||||
|
$1_FALSE=
|
||||||
|
fi])
|
||||||
|
|
||||||
|
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 Override the set of BSPs to be built.
|
||||||
|
dnl used by the toplevel configure script
|
||||||
|
dnl RTEMS_ENABLE_RTEMSBSP(rtems_bsp_list)
|
||||||
|
AC_DEFUN(RTEMS_ENABLE_RTEMSBSP,
|
||||||
|
[
|
||||||
|
AC_ARG_ENABLE(rtemsbsp,
|
||||||
|
[ --enable-rtemsbsp=bsp1 bsp2 .. BSPs to include in build],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes|no) AC_MSG_ERROR([missing argument to --enable-rtemsbsp=\"bsp1 bsp2\"]);;
|
||||||
|
*) $1=$enableval;;
|
||||||
|
esac],[$1=""])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl Pass a single BSP via an environment variable
|
||||||
|
dnl used by per BSP configure scripts
|
||||||
|
AC_DEFUN(RTEMS_ENV_RTEMSBSP,
|
||||||
|
[dnl
|
||||||
|
AC_MSG_CHECKING([for RTEMS_BSP])
|
||||||
|
AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
|
||||||
|
[dnl
|
||||||
|
test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
|
||||||
|
])dnl
|
||||||
|
if test -z "$rtems_cv_RTEMS_BSP"; then
|
||||||
|
AC_MSG_ERROR([Missing RTEMS_BSP])
|
||||||
|
fi
|
||||||
|
RTEMS_BSP="$rtems_cv_RTEMS_BSP"
|
||||||
|
AC_MSG_RESULT(${RTEMS_BSP})
|
||||||
|
AC_SUBST(RTEMS_BSP)
|
||||||
|
])
|
||||||
|
|
||||||
|
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 $RTEMS_CPU is supported])
|
||||||
|
if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_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 $Id$
|
||||||
|
|
||||||
|
dnl Report all available bsps for a target,
|
||||||
|
dnl check if a bsp-subdirectory is present for all bsps found
|
||||||
|
dnl
|
||||||
|
dnl RTEMS_CHECK_BSPS(bsp_list)
|
||||||
|
AC_DEFUN(RTEMS_CHECK_BSPS,
|
||||||
|
[
|
||||||
|
AC_REQUIRE([RTEMS_CHECK_CPU])dnl sets RTEMS_CPU, target
|
||||||
|
AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
|
||||||
|
AC_MSG_CHECKING([for bsps])
|
||||||
|
case "${target}" in
|
||||||
|
changequote(,)dnl
|
||||||
|
i[3456]86-go32-rtems*)
|
||||||
|
changequote([,])dnl
|
||||||
|
$1="go32 go32_p5"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
files=`ls $srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU`
|
||||||
|
for file in $files; do
|
||||||
|
case $file in
|
||||||
|
shared*);;
|
||||||
|
Makefile*);;
|
||||||
|
READ*);;
|
||||||
|
CVS*);;
|
||||||
|
pxfl*);;
|
||||||
|
go32*);; # so the i386 port can pick up the other Makefiles
|
||||||
|
# Now account for BSPs with build variants
|
||||||
|
gen68360) rtems_bsp="$rtems_bsp gen68360 gen68360_040";;
|
||||||
|
p4000) rtems_bsp="$rtems_bsp p4600 p4650";;
|
||||||
|
mvme162) rtems_bsp="$rtems_bsp mvme162 mvme162lx";;
|
||||||
|
*) $1="[$]$1 $file";;
|
||||||
|
esac;
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
AC_MSG_RESULT([[$]$1 .. done])
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CHECK_CUSTOM_BSP,
|
||||||
|
[dnl
|
||||||
|
AC_MSG_CHECKING([for make/custom/[$]$1.cfg])
|
||||||
|
if test -r "$srcdir/$RTEMS_TOPdir/make/custom/[$]$1.cfg"; then
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([no])
|
||||||
|
fi
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
dnl RTEMS_BSP_ALIAS(BSP_ALIAS,BSP_RETURNED)
|
||||||
|
dnl convert a bsp alias $1 into its bsp directory $2
|
||||||
|
AC_DEFUN(RTEMS_BSP_ALIAS,
|
||||||
|
[
|
||||||
|
# account for "aliased" bsps which share source code
|
||||||
|
case $1 in
|
||||||
|
mvme162lx) $2=mvme162 ;; # mvme162 board variant
|
||||||
|
gen68360_040) $2=gen68360 ;; # 68360 in companion mode
|
||||||
|
go32_p5) $2=go32 ;; # go32 on Pentium class CPU
|
||||||
|
p4600) $2=p4000 ;; # p4000 board with IDT 4600
|
||||||
|
p4650) $2=p4000 ;; # p4000 board with IDT 4650
|
||||||
|
*) $2=$1;;
|
||||||
|
esac
|
||||||
|
])
|
||||||
|
|
||||||
1440
c/configure
vendored
Normal file
1440
c/configure
vendored
Normal file
File diff suppressed because it is too large
Load Diff
110
c/configure.in
Normal file
110
c/configure.in
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_PREREQ(2.13)
|
||||||
|
AC_INIT(README)
|
||||||
|
RTEMS_TOP(..)
|
||||||
|
AC_CONFIG_AUX_DIR(..)
|
||||||
|
|
||||||
|
RTEMS_CANONICAL_TARGET_CPU
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE(rtems-c,$RTEMS_VERSION,no)
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
dnl These options are used within this file.
|
||||||
|
RTEMS_ENABLE_BARE
|
||||||
|
RTEMS_ENABLE_RTEMSBSP(rtems_bsp)
|
||||||
|
|
||||||
|
RTEMS_CHECK_CPU
|
||||||
|
RTEMS_CANONICAL_HOST
|
||||||
|
|
||||||
|
if test -z "$rtems_bsp"; then
|
||||||
|
RTEMS_CHECK_BSPS(rtems_bsp)
|
||||||
|
fi
|
||||||
|
|
||||||
|
for i in $rtems_bsp; do
|
||||||
|
|
||||||
|
# make sure there is a make/custom file for the bsp
|
||||||
|
RTEMS_CHECK_CUSTOM_BSP(i)
|
||||||
|
|
||||||
|
RTEMS_BSP_ALIAS($i,bspdir)
|
||||||
|
|
||||||
|
# Is there code where there should be for this BSP?
|
||||||
|
# The bare bsp is a special case as it is not under the RTEMS_CPU path
|
||||||
|
case $i in
|
||||||
|
bare)
|
||||||
|
bspcpudir=
|
||||||
|
if test "X${BARE_CPU_CFLAGS}" = "X" ; then
|
||||||
|
AC_MSG_ERROR([--enable-bare-cpu-cflags not specified for bare bsp])
|
||||||
|
fi
|
||||||
|
if test "X${BARE_CPU_MODEL}" = "X" ; then
|
||||||
|
AC_MSG_ERROR([--enable-bare-cpu-model not specified for bare bsp])
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
bspcpudir=$RTEMS_CPU/
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test -d "$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$bspcpudir$bspdir"; then
|
||||||
|
RTEMS_BSP_LIST="$RTEMS_BSP_LIST $i"
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([unable to find libbsp directory ($bspdir) for $i])
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
#
|
||||||
|
# Compose the configuration arguments to be passed to c/src/configure
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Partially borrowed from autoconf-2.13
|
||||||
|
##
|
||||||
|
|
||||||
|
## Adjust paths
|
||||||
|
case $srcdir in
|
||||||
|
/*) rtems_bsp_configure="$srcdir/src/configure";;
|
||||||
|
*) rtems_bsp_configure="../$srcdir/src/configure";;
|
||||||
|
esac
|
||||||
|
|
||||||
|
## Remove --cache-file, --srcdir and --enable-rtemsbsp arguments
|
||||||
|
## so they do not pile up
|
||||||
|
rtems_bsp_configure_args=
|
||||||
|
for ac_arg in $ac_configure_args; do
|
||||||
|
if test -n "$ac_prev"; then
|
||||||
|
ac_prev=
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
case "$ac_arg" in
|
||||||
|
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
||||||
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
||||||
|
ac_prev=cache_file ;;
|
||||||
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
||||||
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
||||||
|
;;
|
||||||
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
||||||
|
ac_prev=srcdir ;;
|
||||||
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
||||||
|
;;
|
||||||
|
--enable-rtemsbsp*) ;;
|
||||||
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
||||||
|
;;
|
||||||
|
*) rtems_bsp_configure_args="$rtems_bsp_configure_args $ac_arg" ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
rtems_bsp_configure="$rtems_bsp_configure $rtems_bsp_configure_args"
|
||||||
|
AC_SUBST(rtems_bsp_configure)
|
||||||
|
|
||||||
|
AC_SUBST(RTEMS_BSP_LIST)
|
||||||
|
|
||||||
|
AC_OUTPUT(
|
||||||
|
Makefile
|
||||||
|
)
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo target architecture: $target_cpu.
|
||||||
|
echo available BSPs: $rtems_bsp.
|
||||||
|
echo \'make all\' will build the following BSPs: $RTEMS_BSP_LIST.
|
||||||
|
echo other BSPs can be built with \'make RTEMS_BSP=\"bsp1 bsp2 ...\"\'
|
||||||
|
echo
|
||||||
21
c/src/Makefile.am
Normal file
21
c/src/Makefile.am
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal
|
||||||
|
|
||||||
|
SUBDIRS= make exec lib tests
|
||||||
|
|
||||||
|
rtems_bspdir=$(prefix)/@RTEMS_BSP@
|
||||||
|
|
||||||
|
# NOTE: The wildcard on the install should pick up everything except
|
||||||
|
# the tests directory. This significantly minimizes the install size.
|
||||||
|
install-data-local:
|
||||||
|
rm -rf $(rtems_bspdir)/[bsl]*;
|
||||||
|
$(mkinstalldirs) $(rtems_bspdir)
|
||||||
|
cd $(PROJECT_ROOT); \
|
||||||
|
tar cf - @RTEMS_BSP@/[bilsuM]* | (cd $(prefix); tar xpBf - );
|
||||||
|
|
||||||
|
include $(top_srcdir)/../../automake/subdirs.am
|
||||||
|
include $(top_srcdir)/../../automake/local.am
|
||||||
360
c/src/aclocal.m4
vendored
Normal file
360
c/src/aclocal.m4
vendored
Normal file
@@ -0,0 +1,360 @@
|
|||||||
|
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$
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl RTEMS_TOP($1)
|
||||||
|
dnl
|
||||||
|
dnl $1 .. relative path from this configure.in to the toplevel configure.in
|
||||||
|
dnl
|
||||||
|
AC_DEFUN(RTEMS_TOP,
|
||||||
|
[dnl
|
||||||
|
AC_ARG_WITH(target-subdir,
|
||||||
|
[ --with-target-subdir=DIR],
|
||||||
|
TARGET_SUBDIR="$withval",
|
||||||
|
TARGET_SUBDIR=".")
|
||||||
|
|
||||||
|
RTEMS_TOPdir="$1";
|
||||||
|
AC_SUBST(RTEMS_TOPdir)
|
||||||
|
|
||||||
|
dnl Determine RTEMS Version string from the VERSION file
|
||||||
|
dnl Hopefully, Joel never changes its format ;-
|
||||||
|
AC_MSG_CHECKING([for RTEMS Version])
|
||||||
|
if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
|
||||||
|
changequote(,)dnl
|
||||||
|
RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
|
||||||
|
sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'`
|
||||||
|
changequote([,])dnl
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR(Unable to find ${RTEMS_TOPdir}/VERSION)
|
||||||
|
fi
|
||||||
|
if test -z "$RTEMS_VERSION"; then
|
||||||
|
AC_MSG_ERROR(Unable to determine version)
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($RTEMS_VERSION)
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
dnl canonicalize target cpu
|
||||||
|
dnl NOTE: Most rtems targets do not fullfil autoconf's
|
||||||
|
dnl target naming conventions "processor-vendor-os"
|
||||||
|
dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
|
||||||
|
dnl and we have to fix it for rtems ourselves
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
|
||||||
|
[
|
||||||
|
AC_CANONICAL_SYSTEM
|
||||||
|
AC_MSG_CHECKING(rtems target cpu)
|
||||||
|
changequote(,)dnl
|
||||||
|
case "${target}" in
|
||||||
|
# hpux unix port should go here
|
||||||
|
i[3456]86-go32-rtems*)
|
||||||
|
RTEMS_CPU=i386
|
||||||
|
;;
|
||||||
|
i[3456]86-pc-linux*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
i[3456]86-*freebsd2*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
no_cpu-*rtems*)
|
||||||
|
RTEMS_CPU=no_cpu
|
||||||
|
;;
|
||||||
|
sparc-sun-solaris*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
changequote([,])dnl
|
||||||
|
AC_SUBST(RTEMS_CPU)
|
||||||
|
AC_MSG_RESULT($RTEMS_CPU)
|
||||||
|
])
|
||||||
|
|
||||||
|
# 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)])
|
||||||
|
|
||||||
|
# Add --enable-maintainer-mode option to configure.
|
||||||
|
# From Jim Meyering
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
|
AC_DEFUN(AM_MAINTAINER_MODE,
|
||||||
|
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
||||||
|
dnl maintainer-mode is disabled by default
|
||||||
|
AC_ARG_ENABLE(maintainer-mode,
|
||||||
|
[ --enable-maintainer-mode enable make rules and dependencies not useful
|
||||||
|
(and sometimes confusing) to the casual installer],
|
||||||
|
USE_MAINTAINER_MODE=$enableval,
|
||||||
|
USE_MAINTAINER_MODE=no)
|
||||||
|
AC_MSG_RESULT($USE_MAINTAINER_MODE)
|
||||||
|
AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
|
||||||
|
MAINT=$MAINTAINER_MODE_TRUE
|
||||||
|
AC_SUBST(MAINT)dnl
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
# Define a conditional.
|
||||||
|
|
||||||
|
AC_DEFUN(AM_CONDITIONAL,
|
||||||
|
[AC_SUBST($1_TRUE)
|
||||||
|
AC_SUBST($1_FALSE)
|
||||||
|
if $2; then
|
||||||
|
$1_TRUE=
|
||||||
|
$1_FALSE='#'
|
||||||
|
else
|
||||||
|
$1_TRUE='#'
|
||||||
|
$1_FALSE=
|
||||||
|
fi])
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
dnl Override the set of BSPs to be built.
|
||||||
|
dnl used by the toplevel configure script
|
||||||
|
dnl RTEMS_ENABLE_RTEMSBSP(rtems_bsp_list)
|
||||||
|
AC_DEFUN(RTEMS_ENABLE_RTEMSBSP,
|
||||||
|
[
|
||||||
|
AC_ARG_ENABLE(rtemsbsp,
|
||||||
|
[ --enable-rtemsbsp=bsp1 bsp2 .. BSPs to include in build],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes|no) AC_MSG_ERROR([missing argument to --enable-rtemsbsp=\"bsp1 bsp2\"]);;
|
||||||
|
*) $1=$enableval;;
|
||||||
|
esac],[$1=""])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl Pass a single BSP via an environment variable
|
||||||
|
dnl used by per BSP configure scripts
|
||||||
|
AC_DEFUN(RTEMS_ENV_RTEMSBSP,
|
||||||
|
[dnl
|
||||||
|
AC_MSG_CHECKING([for RTEMS_BSP])
|
||||||
|
AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
|
||||||
|
[dnl
|
||||||
|
test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
|
||||||
|
])dnl
|
||||||
|
if test -z "$rtems_cv_RTEMS_BSP"; then
|
||||||
|
AC_MSG_ERROR([Missing RTEMS_BSP])
|
||||||
|
fi
|
||||||
|
RTEMS_BSP="$rtems_cv_RTEMS_BSP"
|
||||||
|
AC_MSG_RESULT(${RTEMS_BSP})
|
||||||
|
AC_SUBST(RTEMS_BSP)
|
||||||
|
])
|
||||||
|
|
||||||
|
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 $RTEMS_CPU is supported])
|
||||||
|
if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_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 $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PROJECT_ROOT,
|
||||||
|
[dnl
|
||||||
|
AC_REQUIRE([RTEMS_TOP])
|
||||||
|
if test "$TARGET_SUBDIR" = "." ; then
|
||||||
|
PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)';
|
||||||
|
else
|
||||||
|
PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)'
|
||||||
|
fi
|
||||||
|
AC_SUBST(PROJECT_ROOT)
|
||||||
|
|
||||||
|
RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
|
||||||
|
AC_SUBST(RTEMS_ROOT)
|
||||||
|
|
||||||
|
INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change"
|
||||||
|
AC_SUBST(INSTALL_CHANGE)
|
||||||
|
|
||||||
|
PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex"
|
||||||
|
AC_SUBST(PACKHEX)
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
dnl Report all available bsps for a target,
|
||||||
|
dnl check if a bsp-subdirectory is present for all bsps found
|
||||||
|
dnl
|
||||||
|
dnl RTEMS_CHECK_BSPS(bsp_list)
|
||||||
|
AC_DEFUN(RTEMS_CHECK_BSPS,
|
||||||
|
[
|
||||||
|
AC_REQUIRE([RTEMS_CHECK_CPU])dnl sets RTEMS_CPU, target
|
||||||
|
AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
|
||||||
|
AC_MSG_CHECKING([for bsps])
|
||||||
|
case "${target}" in
|
||||||
|
changequote(,)dnl
|
||||||
|
i[3456]86-go32-rtems*)
|
||||||
|
changequote([,])dnl
|
||||||
|
$1="go32 go32_p5"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
files=`ls $srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU`
|
||||||
|
for file in $files; do
|
||||||
|
case $file in
|
||||||
|
shared*);;
|
||||||
|
Makefile*);;
|
||||||
|
READ*);;
|
||||||
|
CVS*);;
|
||||||
|
pxfl*);;
|
||||||
|
go32*);; # so the i386 port can pick up the other Makefiles
|
||||||
|
# Now account for BSPs with build variants
|
||||||
|
gen68360) rtems_bsp="$rtems_bsp gen68360 gen68360_040";;
|
||||||
|
p4000) rtems_bsp="$rtems_bsp p4600 p4650";;
|
||||||
|
mvme162) rtems_bsp="$rtems_bsp mvme162 mvme162lx";;
|
||||||
|
*) $1="[$]$1 $file";;
|
||||||
|
esac;
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
AC_MSG_RESULT([[$]$1 .. done])
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CHECK_CUSTOM_BSP,
|
||||||
|
[dnl
|
||||||
|
AC_MSG_CHECKING([for make/custom/[$]$1.cfg])
|
||||||
|
if test -r "$srcdir/$RTEMS_TOPdir/make/custom/[$]$1.cfg"; then
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([no])
|
||||||
|
fi
|
||||||
|
])dnl
|
||||||
|
|
||||||
1415
c/src/configure
vendored
Normal file
1415
c/src/configure
vendored
Normal file
File diff suppressed because it is too large
Load Diff
30
c/src/configure.in
Normal file
30
c/src/configure.in
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_PREREQ(2.13)
|
||||||
|
AC_INIT(README)
|
||||||
|
RTEMS_TOP(../..)
|
||||||
|
AC_CONFIG_AUX_DIR(../..)
|
||||||
|
|
||||||
|
RTEMS_CANONICAL_TARGET_CPU
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE(rtems-c-src,$RTEMS_VERSION,no)
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
RTEMS_ENV_RTEMSBSP
|
||||||
|
RTEMS_CHECK_CPU
|
||||||
|
RTEMS_CANONICAL_HOST
|
||||||
|
|
||||||
|
RTEMS_PROJECT_ROOT
|
||||||
|
|
||||||
|
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
|
||||||
|
|
||||||
|
AC_CONFIG_SUBDIRS(make)
|
||||||
|
AC_CONFIG_SUBDIRS(exec)
|
||||||
|
AC_CONFIG_SUBDIRS(lib)
|
||||||
|
AC_CONFIG_SUBDIRS(tests)
|
||||||
|
|
||||||
|
AC_OUTPUT(
|
||||||
|
Makefile
|
||||||
|
)
|
||||||
983
c/src/exec/aclocal.m4
vendored
Normal file
983
c/src/exec/aclocal.m4
vendored
Normal file
@@ -0,0 +1,983 @@
|
|||||||
|
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$
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl RTEMS_TOP($1)
|
||||||
|
dnl
|
||||||
|
dnl $1 .. relative path from this configure.in to the toplevel configure.in
|
||||||
|
dnl
|
||||||
|
AC_DEFUN(RTEMS_TOP,
|
||||||
|
[dnl
|
||||||
|
AC_ARG_WITH(target-subdir,
|
||||||
|
[ --with-target-subdir=DIR],
|
||||||
|
TARGET_SUBDIR="$withval",
|
||||||
|
TARGET_SUBDIR=".")
|
||||||
|
|
||||||
|
RTEMS_TOPdir="$1";
|
||||||
|
AC_SUBST(RTEMS_TOPdir)
|
||||||
|
|
||||||
|
dnl Determine RTEMS Version string from the VERSION file
|
||||||
|
dnl Hopefully, Joel never changes its format ;-
|
||||||
|
AC_MSG_CHECKING([for RTEMS Version])
|
||||||
|
if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
|
||||||
|
changequote(,)dnl
|
||||||
|
RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
|
||||||
|
sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'`
|
||||||
|
changequote([,])dnl
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR(Unable to find ${RTEMS_TOPdir}/VERSION)
|
||||||
|
fi
|
||||||
|
if test -z "$RTEMS_VERSION"; then
|
||||||
|
AC_MSG_ERROR(Unable to determine version)
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($RTEMS_VERSION)
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
dnl canonicalize target cpu
|
||||||
|
dnl NOTE: Most rtems targets do not fullfil autoconf's
|
||||||
|
dnl target naming conventions "processor-vendor-os"
|
||||||
|
dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
|
||||||
|
dnl and we have to fix it for rtems ourselves
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
|
||||||
|
[
|
||||||
|
AC_CANONICAL_SYSTEM
|
||||||
|
AC_MSG_CHECKING(rtems target cpu)
|
||||||
|
changequote(,)dnl
|
||||||
|
case "${target}" in
|
||||||
|
# hpux unix port should go here
|
||||||
|
i[3456]86-go32-rtems*)
|
||||||
|
RTEMS_CPU=i386
|
||||||
|
;;
|
||||||
|
i[3456]86-pc-linux*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
i[3456]86-*freebsd2*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
no_cpu-*rtems*)
|
||||||
|
RTEMS_CPU=no_cpu
|
||||||
|
;;
|
||||||
|
sparc-sun-solaris*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
changequote([,])dnl
|
||||||
|
AC_SUBST(RTEMS_CPU)
|
||||||
|
AC_MSG_RESULT($RTEMS_CPU)
|
||||||
|
])
|
||||||
|
|
||||||
|
# Add --enable-maintainer-mode option to configure.
|
||||||
|
# From Jim Meyering
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
|
AC_DEFUN(AM_MAINTAINER_MODE,
|
||||||
|
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
||||||
|
dnl maintainer-mode is disabled by default
|
||||||
|
AC_ARG_ENABLE(maintainer-mode,
|
||||||
|
[ --enable-maintainer-mode enable make rules and dependencies not useful
|
||||||
|
(and sometimes confusing) to the casual installer],
|
||||||
|
USE_MAINTAINER_MODE=$enableval,
|
||||||
|
USE_MAINTAINER_MODE=no)
|
||||||
|
AC_MSG_RESULT($USE_MAINTAINER_MODE)
|
||||||
|
AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
|
||||||
|
MAINT=$MAINTAINER_MODE_TRUE
|
||||||
|
AC_SUBST(MAINT)dnl
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
# Define a conditional.
|
||||||
|
|
||||||
|
AC_DEFUN(AM_CONDITIONAL,
|
||||||
|
[AC_SUBST($1_TRUE)
|
||||||
|
AC_SUBST($1_FALSE)
|
||||||
|
if $2; then
|
||||||
|
$1_TRUE=
|
||||||
|
$1_FALSE='#'
|
||||||
|
else
|
||||||
|
$1_TRUE='#'
|
||||||
|
$1_FALSE=
|
||||||
|
fi])
|
||||||
|
|
||||||
|
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])
|
||||||
|
AC_SUBST(RTEMS_HAS_MULTIPROCESSING)dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
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])
|
||||||
|
AC_SUBST(RTEMS_HAS_POSIX_API)
|
||||||
|
|
||||||
|
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])
|
||||||
|
AC_SUBST(RTEMS_HAS_NETWORKING)dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
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])
|
||||||
|
AC_SUBST(RTEMS_USE_MACROS)dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
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_SUBST(RTEMS_LIBC_DIR)dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
dnl Override the set of BSPs to be built.
|
||||||
|
dnl used by the toplevel configure script
|
||||||
|
dnl RTEMS_ENABLE_RTEMSBSP(rtems_bsp_list)
|
||||||
|
AC_DEFUN(RTEMS_ENABLE_RTEMSBSP,
|
||||||
|
[
|
||||||
|
AC_ARG_ENABLE(rtemsbsp,
|
||||||
|
[ --enable-rtemsbsp=bsp1 bsp2 .. BSPs to include in build],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes|no) AC_MSG_ERROR([missing argument to --enable-rtemsbsp=\"bsp1 bsp2\"]);;
|
||||||
|
*) $1=$enableval;;
|
||||||
|
esac],[$1=""])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl Pass a single BSP via an environment variable
|
||||||
|
dnl used by per BSP configure scripts
|
||||||
|
AC_DEFUN(RTEMS_ENV_RTEMSBSP,
|
||||||
|
[dnl
|
||||||
|
AC_MSG_CHECKING([for RTEMS_BSP])
|
||||||
|
AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
|
||||||
|
[dnl
|
||||||
|
test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
|
||||||
|
])dnl
|
||||||
|
if test -z "$rtems_cv_RTEMS_BSP"; then
|
||||||
|
AC_MSG_ERROR([Missing RTEMS_BSP])
|
||||||
|
fi
|
||||||
|
RTEMS_BSP="$rtems_cv_RTEMS_BSP"
|
||||||
|
AC_MSG_RESULT(${RTEMS_BSP})
|
||||||
|
AC_SUBST(RTEMS_BSP)
|
||||||
|
])
|
||||||
|
|
||||||
|
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
|
||||||
|
])
|
||||||
|
|
||||||
|
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 $RTEMS_CPU is supported])
|
||||||
|
if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_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 $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PROJECT_ROOT,
|
||||||
|
[dnl
|
||||||
|
AC_REQUIRE([RTEMS_TOP])
|
||||||
|
if test "$TARGET_SUBDIR" = "." ; then
|
||||||
|
PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)';
|
||||||
|
else
|
||||||
|
PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)'
|
||||||
|
fi
|
||||||
|
AC_SUBST(PROJECT_ROOT)
|
||||||
|
|
||||||
|
RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
|
||||||
|
AC_SUBST(RTEMS_ROOT)
|
||||||
|
|
||||||
|
INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change"
|
||||||
|
AC_SUBST(INSTALL_CHANGE)
|
||||||
|
|
||||||
|
PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex"
|
||||||
|
AC_SUBST(PACKHEX)
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Check for target gcc
|
||||||
|
dnl
|
||||||
|
dnl 98/05/20 Ralf Corsepius (corsepiu@faw.uni-ulm.de)
|
||||||
|
dnl Completely reworked
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PROG_CC,
|
||||||
|
[
|
||||||
|
AC_BEFORE([$0], [AC_PROG_CPP])dnl
|
||||||
|
AC_BEFORE([$0], [AC_PROG_CC])dnl
|
||||||
|
AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl
|
||||||
|
|
||||||
|
dnl Only accept gcc and cc
|
||||||
|
dnl NOTE: This might be too restrictive for native compilation
|
||||||
|
AC_PATH_PROGS(CC_FOR_TARGET, "$program_prefix"gcc "$program_prefix"cc )
|
||||||
|
test -z "$CC_FOR_TARGET" \
|
||||||
|
&& AC_MSG_ERROR([no acceptable cc found in \$PATH])
|
||||||
|
|
||||||
|
dnl backup
|
||||||
|
rtems_save_CC=$CC
|
||||||
|
rtems_save_CFLAGS=$CFLAGS
|
||||||
|
|
||||||
|
dnl temporarily set CC
|
||||||
|
CC=$CC_FOR_TARGET
|
||||||
|
|
||||||
|
AC_PROG_CC_WORKS
|
||||||
|
AC_PROG_CC_GNU
|
||||||
|
|
||||||
|
if test $ac_cv_prog_gcc = yes; then
|
||||||
|
GCC=yes
|
||||||
|
dnl Check whether -g works, even if CFLAGS is set, in case the package
|
||||||
|
dnl plays around with CFLAGS (such as to build both debugging and
|
||||||
|
dnl normal versions of a library), tasteless as that idea is.
|
||||||
|
ac_test_CFLAGS="${CFLAGS+set}"
|
||||||
|
ac_save_CFLAGS="$CFLAGS"
|
||||||
|
CFLAGS=
|
||||||
|
AC_PROG_CC_G
|
||||||
|
if test "$ac_test_CFLAGS" = set; then
|
||||||
|
CFLAGS="$ac_save_CFLAGS"
|
||||||
|
elif test $ac_cv_prog_cc_g = yes; then
|
||||||
|
CFLAGS="-g -O2"
|
||||||
|
else
|
||||||
|
CFLAGS="-O2"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
GCC=
|
||||||
|
test "${CFLAGS+set}" = set || CFLAGS="-g"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rtems_cv_prog_gcc=$ac_cv_prog_gcc
|
||||||
|
rtems_cv_prog_cc_g=$ac_cv_prog_cc_g
|
||||||
|
rtems_cv_prog_cc_works=$ac_cv_prog_cc_works
|
||||||
|
rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross
|
||||||
|
|
||||||
|
dnl restore initial values
|
||||||
|
CC=$rtems_save_CC
|
||||||
|
CFLAGS=$rtems_save_CFLAGS
|
||||||
|
|
||||||
|
unset ac_cv_prog_gcc
|
||||||
|
unset ac_cv_prog_cc_g
|
||||||
|
unset ac_cv_prog_cc_works
|
||||||
|
unset ac_cv_prog_cc_cross
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PROG_CC_FOR_TARGET,
|
||||||
|
[
|
||||||
|
dnl check target cc
|
||||||
|
RTEMS_PROG_CC
|
||||||
|
dnl check if the compiler supports --specs
|
||||||
|
RTEMS_GCC_SPECS
|
||||||
|
dnl check if the target compiler may use --pipe
|
||||||
|
RTEMS_GCC_PIPE
|
||||||
|
dnl check if the compiler supports --specs if gcc28 is requested
|
||||||
|
if test "$RTEMS_USE_GCC272" != "yes" ; then
|
||||||
|
if test "$rtems_cv_gcc_specs" = "no"; then
|
||||||
|
AC_MSG_WARN([*** disabling --enable-gcc28])
|
||||||
|
RTEMS_USE_GCC272=yes
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe"
|
||||||
|
|
||||||
|
dnl FIXME: HACK for egcs/cygwin mixing '\\' and '/' in gcc -print-*
|
||||||
|
case $host_os in
|
||||||
|
*cygwin*) GCCSED="| sed 's%\\\\%/%g'" ;;
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
|
AC_SUBST(GCCSED)
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Set program_prefix
|
||||||
|
dnl
|
||||||
|
dnl 98/05/20 Ralf Corsepius (corsepiu@faw.uni-ulm.de)
|
||||||
|
dnl Extracted from configure
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_TOOL_PREFIX,
|
||||||
|
[AC_REQUIRE([AC_CANONICAL_TARGET])dnl
|
||||||
|
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
||||||
|
|
||||||
|
changequote(,)dnl
|
||||||
|
if [ "${program_prefix}" = "NONE" ] ; then
|
||||||
|
if [ "${target}" = "${host}" ] ; then
|
||||||
|
program_prefix=
|
||||||
|
else
|
||||||
|
program_prefix=${target}-
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
changequote([,])dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Check whether the target compiler accepts -specs
|
||||||
|
dnl
|
||||||
|
dnl 98/02/11 Ralf Corsepius corsepiu@faw.uni-ulm.de
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_GCC_SPECS,
|
||||||
|
[AC_REQUIRE([RTEMS_PROG_CC])
|
||||||
|
AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts -specs,rtems_cv_gcc_specs,
|
||||||
|
[
|
||||||
|
rtems_cv_gcc_specs=no
|
||||||
|
if test "$rtems_cv_prog_gcc" = "yes"; then
|
||||||
|
touch confspec
|
||||||
|
echo 'void f(){}' >conftest.c
|
||||||
|
if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then
|
||||||
|
rtems_cv_gcc_specs=yes
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
rm -f confspec conftest*
|
||||||
|
])])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Check whether the target compiler accepts -pipe
|
||||||
|
dnl
|
||||||
|
dnl 98/02/11 Ralf Corsepius corsepiu@faw.uni-ulm.de
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_GCC_PIPE,
|
||||||
|
[AC_REQUIRE([RTEMS_PROG_CC])
|
||||||
|
AC_REQUIRE([AC_CANONICAL_HOST])
|
||||||
|
AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts --pipe,rtems_cv_gcc_pipe,
|
||||||
|
[
|
||||||
|
rtems_cv_gcc_pipe=no
|
||||||
|
if test "$rtems_cv_prog_gcc" = "yes"; then
|
||||||
|
case "$host_os" in
|
||||||
|
cygwin*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo 'void f(){}' >conftest.c
|
||||||
|
if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
|
||||||
|
rtems_cv_gcc_pipe=yes
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Check for target g++
|
||||||
|
dnl
|
||||||
|
dnl 98/05/20 Ralf Corsepius (corsepiu@faw.uni-ulm.de)
|
||||||
|
dnl Completely reworked
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PROG_CXX,
|
||||||
|
[
|
||||||
|
AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl
|
||||||
|
AC_BEFORE([$0], [AC_PROG_CXX])dnl
|
||||||
|
AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl
|
||||||
|
|
||||||
|
dnl Only accept g++ and c++
|
||||||
|
dnl NOTE: This might be too restrictive for native compilation
|
||||||
|
AC_PATH_PROGS(CXX_FOR_TARGET, "$program_prefix"g++ "$program_prefix"c++)
|
||||||
|
test -z "$CXX_FOR_TARGET" \
|
||||||
|
&& AC_MSG_ERROR([no acceptable c++ found in \$PATH])
|
||||||
|
|
||||||
|
dnl backup
|
||||||
|
rtems_save_CXX=$CXX
|
||||||
|
rtems_save_CXXFLAGS=$CXXFLAGS
|
||||||
|
|
||||||
|
dnl temporarily set CXX
|
||||||
|
CXX=$CXX_FOR_TARGET
|
||||||
|
|
||||||
|
AC_PROG_CXX_WORKS
|
||||||
|
AC_PROG_CXX_GNU
|
||||||
|
|
||||||
|
if test $ac_cv_prog_gxx = yes; then
|
||||||
|
GXX=yes
|
||||||
|
dnl Check whether -g works, even if CXXFLAGS is set, in case the package
|
||||||
|
dnl plays around with CXXFLAGS (such as to build both debugging and
|
||||||
|
dnl normal versions of a library), tasteless as that idea is.
|
||||||
|
ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
||||||
|
ac_save_CXXFLAGS="$CXXFLAGS"
|
||||||
|
CXXFLAGS=
|
||||||
|
AC_PROG_CXX_G
|
||||||
|
if test "$ac_test_CXXFLAGS" = set; then
|
||||||
|
CXXFLAGS="$ac_save_CXXFLAGS"
|
||||||
|
elif test $ac_cv_prog_cxx_g = yes; then
|
||||||
|
CXXFLAGS="-g -O2"
|
||||||
|
else
|
||||||
|
CXXFLAGS="-O2"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
GXX=
|
||||||
|
test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rtems_cv_prog_gxx=$ac_cv_prog_gxx
|
||||||
|
rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g
|
||||||
|
rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works
|
||||||
|
rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross
|
||||||
|
|
||||||
|
CXX=$rtems_save_CXX
|
||||||
|
CXXFLAGS=$rtems_save_CXXFLAGS
|
||||||
|
|
||||||
|
dnl restore initial values
|
||||||
|
unset ac_cv_prog_gxx
|
||||||
|
unset ac_cv_prog_cc_g
|
||||||
|
unset ac_cv_prog_cxx_works
|
||||||
|
unset ac_cv_prog_cxx_cross
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PROG_CXX_FOR_TARGET,
|
||||||
|
[
|
||||||
|
RTEMS_PROG_CXX
|
||||||
|
if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then
|
||||||
|
AC_MSG_ERROR([***]
|
||||||
|
[Inconsistency in compiler configuration:]
|
||||||
|
[Target C compiler and Target C++ compiler]
|
||||||
|
[must both either be cross compilers or native compilers]
|
||||||
|
[Hint: If building a posix bsp: LD_LIBRARY_PATH?] )
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Set target tools
|
||||||
|
dnl
|
||||||
|
dnl 98/06/23 Ralf Corsepius (corsepiu@faw.uni-ulm.de)
|
||||||
|
dnl fixing cache/environment variable handling
|
||||||
|
dnl adding checks for cygwin/egcs '\\'-bug
|
||||||
|
dnl adding checks for ranlib/ar -s problem
|
||||||
|
dnl
|
||||||
|
dnl 98/02/12 Ralf Corsepius (corsepiu@faw.uni-ulm.de)
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_GCC_PRINT,
|
||||||
|
[ case $host_os in
|
||||||
|
*cygwin*)
|
||||||
|
dnl FIXME: Hack for cygwin/egcs reporting mixed '\\' and '/'
|
||||||
|
dnl Should be removed once cygwin/egcs reports '/' only
|
||||||
|
$1=`$CC_FOR_TARGET --print-prog-name=$2 | sed -e 's%\\\\%/%g' `
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
$1=`$CC_FOR_TARGET --print-prog-name=$2`
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PATH_TOOL,
|
||||||
|
[
|
||||||
|
AC_MSG_CHECKING([target's $2])
|
||||||
|
AC_CACHE_VAL(ac_cv_path_$1,:)
|
||||||
|
AC_MSG_RESULT([$ac_cv_path_$1])
|
||||||
|
|
||||||
|
if test -n "$ac_cv_path_$1"; then
|
||||||
|
dnl retrieve the value from the cache
|
||||||
|
$1=$ac_cv_path_$1
|
||||||
|
else
|
||||||
|
dnl the cache was not set
|
||||||
|
if test -z "[$]$1" ; then
|
||||||
|
if test "$rtems_cv_prog_gcc" = "yes"; then
|
||||||
|
# We are using gcc, ask it about its tool
|
||||||
|
# NOTE: Necessary if gcc was configured to use the target's
|
||||||
|
# native tools or uses prefixes for gnutools (e.g. gas instead of as)
|
||||||
|
RTEMS_GCC_PRINT($1,$2)
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# The user set an environment variable.
|
||||||
|
# Check whether it is an absolute path, otherwise AC_PATH_PROG
|
||||||
|
# will override the environment variable, which isn't what the user
|
||||||
|
# intends
|
||||||
|
AC_MSG_CHECKING([whether environment variable $1 is an absolute path])
|
||||||
|
case "[$]$1" in
|
||||||
|
/*) # valid
|
||||||
|
AC_MSG_RESULT("yes")
|
||||||
|
;;
|
||||||
|
*) # invalid for AC_PATH_PROG
|
||||||
|
AC_MSG_RESULT("no")
|
||||||
|
AC_MSG_ERROR([***]
|
||||||
|
[Environment variable $1 should either]
|
||||||
|
[be unset (preferred) or contain an absolute path])
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_PATH_PROG($1,"$program_prefix"$2,$3)
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CANONICALIZE_TOOLS,
|
||||||
|
[AC_REQUIRE([RTEMS_PROG_CC])dnl
|
||||||
|
|
||||||
|
dnl FIXME: What shall be done if these tools are not available?
|
||||||
|
RTEMS_PATH_TOOL(AR_FOR_TARGET,ar,no)
|
||||||
|
RTEMS_PATH_TOOL(AS_FOR_TARGET,as,no)
|
||||||
|
RTEMS_PATH_TOOL(LD_FOR_TARGET,ld,no)
|
||||||
|
RTEMS_PATH_TOOL(NM_FOR_TARGET,nm,no)
|
||||||
|
|
||||||
|
dnl special treatment of ranlib
|
||||||
|
RTEMS_PATH_TOOL(RANLIB_FOR_TARGET,ranlib,no)
|
||||||
|
if test "$RANLIB_FOR_TARGET" = "no"; then
|
||||||
|
# ranlib wasn't found; check if ar -s is available
|
||||||
|
RTEMS_AR_FOR_TARGET_S
|
||||||
|
if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then
|
||||||
|
dnl override RANLIB_FOR_TARGET's cache
|
||||||
|
ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s"
|
||||||
|
RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([***]
|
||||||
|
[Can't figure out how to build a library index]
|
||||||
|
[Neither ranlib nor ar -s seem to be available] )
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl NOTE: These may not be available if not using gnutools
|
||||||
|
RTEMS_PATH_TOOL(OBJCOPY_FOR_TARGET,objcopy,no)
|
||||||
|
RTEMS_PATH_TOOL(SIZE_FOR_TARGET,size,no)
|
||||||
|
RTEMS_PATH_TOOL(STRIP_FOR_TARGET,strip,no)
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_AR_FOR_TARGET_S,
|
||||||
|
[
|
||||||
|
AC_CACHE_CHECK(whether $AR_FOR_TARGET -s works,
|
||||||
|
rtems_cv_AR_FOR_TARGET_S,
|
||||||
|
[
|
||||||
|
cat > conftest.$ac_ext <<EOF
|
||||||
|
int foo( int b )
|
||||||
|
{ return b; }
|
||||||
|
EOF
|
||||||
|
if AC_TRY_COMMAND($CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext) \
|
||||||
|
&& AC_TRY_COMMAND($AR_FOR_TARGET -sr conftest.a conftest.o) \
|
||||||
|
&& test -s conftest.a ; \
|
||||||
|
then
|
||||||
|
rtems_cv_AR_FOR_TARGET_S="yes"
|
||||||
|
else
|
||||||
|
rtems_cv_AR_FOR_TARGET_S="no"
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
dnl check for i386 gas supporting 16 bit mode
|
||||||
|
dnl - binutils 2.9.1.0.7 and higher
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_I386_GAS_CODE16,
|
||||||
|
[ if test "${target_cpu}" = "i386"; then
|
||||||
|
AC_CACHE_CHECK([for 16 bit mode assembler support],
|
||||||
|
rtems_cv_prog_gas_code16,
|
||||||
|
[cat > conftest.s << EOF
|
||||||
|
.code16
|
||||||
|
data32
|
||||||
|
addr32
|
||||||
|
lgdt 0
|
||||||
|
EOF
|
||||||
|
if AC_TRY_COMMAND($AS_FOR_TARGET -o conftest.o conftest.s); then
|
||||||
|
rtems_cv_prog_gas_code16=yes
|
||||||
|
else
|
||||||
|
rtems_cv_prog_gas_code16=no
|
||||||
|
fi])
|
||||||
|
RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16"
|
||||||
|
fi
|
||||||
|
AC_SUBST(RTEMS_GAS_CODE16)
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Check for System V IPC calls used by Unix simulators
|
||||||
|
dnl
|
||||||
|
dnl 98/07/17 Dario Alcocer alcocer@netcom.com
|
||||||
|
dnl Ralf Corsepius corsepiu@faw.uni-ulm.de
|
||||||
|
dnl
|
||||||
|
dnl Note: $host_os should probably *not* ever be used here to
|
||||||
|
dnl determine if host supports System V IPC calls, since some
|
||||||
|
dnl (e.g. FreeBSD 2.x) are configured by default to include only
|
||||||
|
dnl a subset of the System V IPC calls. Therefore, to make sure
|
||||||
|
dnl all of the required calls are found, test for each call explicitly.
|
||||||
|
dnl
|
||||||
|
dnl All of the calls use IPC_PRIVATE, so tests will not unintentionally
|
||||||
|
dnl modify any existing key sets. See the man pages for semget, shmget,
|
||||||
|
dnl msgget, semctl, shmctl and msgctl for details.
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_SYSV_SEM,
|
||||||
|
[AC_REQUIRE([AC_PROG_CC])
|
||||||
|
AC_REQUIRE([RTEMS_CANONICAL_HOST])
|
||||||
|
AC_CACHE_CHECK(whether $RTEMS_HOST supports System V semaphores,
|
||||||
|
rtems_cv_sysv_sem,
|
||||||
|
[
|
||||||
|
AC_TRY_RUN([
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/ipc.h>
|
||||||
|
#include <sys/sem.h>
|
||||||
|
int main () {
|
||||||
|
#if !defined(sun)
|
||||||
|
union semun arg ;
|
||||||
|
#else
|
||||||
|
union semun {
|
||||||
|
int val;
|
||||||
|
struct semid_ds *buf;
|
||||||
|
ushort *array;
|
||||||
|
} arg;
|
||||||
|
#endif
|
||||||
|
int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
|
||||||
|
if (id == -1)
|
||||||
|
exit(1);
|
||||||
|
arg.val = 0; /* avoid implicit type cast to union */
|
||||||
|
if (semctl(id, 0, IPC_RMID, arg) == -1)
|
||||||
|
exit(1);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
],
|
||||||
|
rtems_cv_sysv_sem="yes", rtems_cv_sysv_sem="no", :)
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_SYSV_SHM,
|
||||||
|
[AC_REQUIRE([AC_PROG_CC])
|
||||||
|
AC_REQUIRE([RTEMS_CANONICAL_HOST])
|
||||||
|
AC_CACHE_CHECK(whether $RTEMS_HOST supports System V shared memory,
|
||||||
|
rtems_cv_sysv_shm,
|
||||||
|
[
|
||||||
|
AC_TRY_RUN([
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/ipc.h>
|
||||||
|
#include <sys/shm.h>
|
||||||
|
int main () {
|
||||||
|
int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
|
||||||
|
if (id == -1)
|
||||||
|
exit(1);
|
||||||
|
if (shmctl(id, IPC_RMID, 0) == -1)
|
||||||
|
exit(1);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
],
|
||||||
|
rtems_cv_sysv_shm="yes", rtems_cv_sysv_shm="no", :)
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_SYSV_MSG,
|
||||||
|
[AC_REQUIRE([AC_PROG_CC])
|
||||||
|
AC_REQUIRE([RTEMS_CANONICAL_HOST])
|
||||||
|
AC_CACHE_CHECK(whether $RTEMS_HOST supports System V messages,
|
||||||
|
rtems_cv_sysv_msg,
|
||||||
|
[
|
||||||
|
AC_TRY_RUN([
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/ipc.h>
|
||||||
|
#include <sys/msg.h>
|
||||||
|
int main () {
|
||||||
|
int id=msgget(IPC_PRIVATE,IPC_CREAT|0400);
|
||||||
|
if (id == -1)
|
||||||
|
exit(1);
|
||||||
|
if (msgctl(id, IPC_RMID, 0) == -1)
|
||||||
|
exit(1);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
],
|
||||||
|
rtems_cv_sysv_msg="yes", rtems_cv_sysv_msg="no", :)
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CHECK_SYSV_UNIX,
|
||||||
|
[AC_REQUIRE([RTEMS_CANONICAL_HOST])
|
||||||
|
if test "$RTEMS_CPU" = "unix" ; then
|
||||||
|
RTEMS_SYSV_SEM
|
||||||
|
if test "$rtems_cv_sysv_sem" != "yes" ; then
|
||||||
|
AC_MSG_ERROR([System V semaphores don't work, required by simulator])
|
||||||
|
fi
|
||||||
|
RTEMS_SYSV_SHM
|
||||||
|
if test "$rtems_cv_sysv_shm" != "yes" ; then
|
||||||
|
AC_MSG_ERROR([System V shared memory doesn't work, required by simulator])
|
||||||
|
fi
|
||||||
|
RTEMS_SYSV_MSG
|
||||||
|
if test "$rtems_cv_sysv_msg" != "yes" ; then
|
||||||
|
AC_MSG_ERROR([System V messages don't work, required by simulator])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CHECK_NEWLIB,
|
||||||
|
[dnl
|
||||||
|
AC_REQUIRE([RTEMS_PROG_CC_FOR_TARGET])dnl
|
||||||
|
AC_REQUIRE([RTEMS_CANONICALIZE_TOOLS])dnl
|
||||||
|
AC_CACHE_CHECK([for newlib],
|
||||||
|
rtems_cv_use_newlib,
|
||||||
|
[
|
||||||
|
rtems_save_CC=$CC
|
||||||
|
CC=$CC_FOR_TARGET
|
||||||
|
|
||||||
|
dnl some versions of newlib provide not_required_by_rtems
|
||||||
|
AC_TRY_LINK(
|
||||||
|
[extern int not_required_by_rtems() ;],
|
||||||
|
[not_required_by_rtems()],
|
||||||
|
rtems_cv_use_newlib="yes")
|
||||||
|
|
||||||
|
dnl older versions of newlib provided rtems_provides_crt0
|
||||||
|
if test -z "$rtems_cv_use_newlib"; then
|
||||||
|
AC_TRY_LINK(
|
||||||
|
[extern int rtems_provides_crt0 ;],
|
||||||
|
[rtems_provides_crt0 = 0],
|
||||||
|
rtems_cv_use_newlib="yes",
|
||||||
|
rtems_cv_use_newlib="no")
|
||||||
|
fi
|
||||||
|
CC=$rtems_save_CC])
|
||||||
|
RTEMS_USE_NEWLIB="$rtems_cv_use_newlib"
|
||||||
|
AC_SUBST(RTEMS_USE_NEWLIB)
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
dnl RTEMS_CHECK_MAKEFILE(path)
|
||||||
|
dnl Search for Makefile.in's within the directory starting
|
||||||
|
dnl at path and append an entry for Makefile to global variable
|
||||||
|
dnl "makefiles" (from configure.in) for each Makefile.in found
|
||||||
|
dnl
|
||||||
|
AC_DEFUN(RTEMS_CHECK_MAKEFILE,
|
||||||
|
[RTEMS_CHECK_FILES_IN($1,Makefile,makefiles)
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
dnl RTEMS_CHECK_FILES_IN(path,file,var)
|
||||||
|
dnl path .. path relative to srcdir, where to start searching for files
|
||||||
|
dnl file .. name of the files to search for
|
||||||
|
dnl var .. shell variable to append files found
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CHECK_FILES_IN,
|
||||||
|
[
|
||||||
|
AC_MSG_CHECKING(for $2.in in $1)
|
||||||
|
if test -d $srcdir/$1; then
|
||||||
|
rtems_av_save_dir=`pwd`;
|
||||||
|
cd $srcdir;
|
||||||
|
rtems_av_tmp=`find $1 -name "$2.in" -print | sed "s/$2\.in/%/" | sort | sed "s/%/$2/"`
|
||||||
|
$3="$$3 $rtems_av_tmp";
|
||||||
|
cd $rtems_av_save_dir;
|
||||||
|
AC_MSG_RESULT(done)
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
dnl Report all available bsps for a target,
|
||||||
|
dnl check if a bsp-subdirectory is present for all bsps found
|
||||||
|
dnl
|
||||||
|
dnl RTEMS_CHECK_BSPS(bsp_list)
|
||||||
|
AC_DEFUN(RTEMS_CHECK_BSPS,
|
||||||
|
[
|
||||||
|
AC_REQUIRE([RTEMS_CHECK_CPU])dnl sets RTEMS_CPU, target
|
||||||
|
AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
|
||||||
|
AC_MSG_CHECKING([for bsps])
|
||||||
|
case "${target}" in
|
||||||
|
changequote(,)dnl
|
||||||
|
i[3456]86-go32-rtems*)
|
||||||
|
changequote([,])dnl
|
||||||
|
$1="go32 go32_p5"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
files=`ls $srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU`
|
||||||
|
for file in $files; do
|
||||||
|
case $file in
|
||||||
|
shared*);;
|
||||||
|
Makefile*);;
|
||||||
|
READ*);;
|
||||||
|
CVS*);;
|
||||||
|
pxfl*);;
|
||||||
|
go32*);; # so the i386 port can pick up the other Makefiles
|
||||||
|
# Now account for BSPs with build variants
|
||||||
|
gen68360) rtems_bsp="$rtems_bsp gen68360 gen68360_040";;
|
||||||
|
p4000) rtems_bsp="$rtems_bsp p4600 p4650";;
|
||||||
|
mvme162) rtems_bsp="$rtems_bsp mvme162 mvme162lx";;
|
||||||
|
*) $1="[$]$1 $file";;
|
||||||
|
esac;
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
AC_MSG_RESULT([[$]$1 .. done])
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CHECK_CUSTOM_BSP,
|
||||||
|
[dnl
|
||||||
|
AC_MSG_CHECKING([for make/custom/[$]$1.cfg])
|
||||||
|
if test -r "$srcdir/$RTEMS_TOPdir/make/custom/[$]$1.cfg"; then
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([no])
|
||||||
|
fi
|
||||||
|
])dnl
|
||||||
|
|
||||||
3120
c/src/exec/configure
vendored
Normal file
3120
c/src/exec/configure
vendored
Normal file
File diff suppressed because it is too large
Load Diff
102
c/src/exec/configure.in
Normal file
102
c/src/exec/configure.in
Normal file
@@ -0,0 +1,102 @@
|
|||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_PREREQ(2.13)
|
||||||
|
AC_INIT(score)
|
||||||
|
RTEMS_TOP(../../..)
|
||||||
|
AC_CONFIG_AUX_DIR(../../..)
|
||||||
|
|
||||||
|
AC_PROG_MAKE_SET
|
||||||
|
RTEMS_CANONICAL_TARGET_CPU
|
||||||
|
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
RTEMS_ENABLE_MULTIPROCESSING
|
||||||
|
RTEMS_ENABLE_POSIX
|
||||||
|
RTEMS_ENABLE_NETWORKING
|
||||||
|
RTEMS_ENABLE_INLINES
|
||||||
|
RTEMS_ENABLE_CXX
|
||||||
|
RTEMS_ENABLE_GCC28
|
||||||
|
RTEMS_ENABLE_LIBCDIR
|
||||||
|
|
||||||
|
RTEMS_ENV_RTEMSBSP
|
||||||
|
|
||||||
|
AC_PROG_LN_S
|
||||||
|
AC_PROG_INSTALL
|
||||||
|
RTEMS_PATH_KSH
|
||||||
|
|
||||||
|
RTEMS_CHECK_CPU
|
||||||
|
RTEMS_CANONICAL_HOST
|
||||||
|
|
||||||
|
RTEMS_PROJECT_ROOT
|
||||||
|
|
||||||
|
dnl check target cc
|
||||||
|
RTEMS_PROG_CC_FOR_TARGET
|
||||||
|
|
||||||
|
dnl check for g++
|
||||||
|
if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
|
||||||
|
RTEMS_PROG_CXX_FOR_TARGET
|
||||||
|
fi
|
||||||
|
|
||||||
|
RTEMS_CANONICALIZE_TOOLS
|
||||||
|
|
||||||
|
dnl if this is an i386, does gas have good code16 support?
|
||||||
|
RTEMS_I386_GAS_CODE16
|
||||||
|
|
||||||
|
RTEMS_CHECK_SYSV_UNIX
|
||||||
|
|
||||||
|
RTEMS_CHECK_NEWLIB
|
||||||
|
|
||||||
|
# find all the Executive Makefiles
|
||||||
|
RTEMS_CHECK_MAKEFILE(rtems)
|
||||||
|
RTEMS_CHECK_MAKEFILE(sapi)
|
||||||
|
RTEMS_CHECK_MAKEFILE(score/cpu/$RTEMS_CPU)
|
||||||
|
|
||||||
|
if test "$RTEMS_HAS_POSIX_API" = "yes"; then
|
||||||
|
RTEMS_CHECK_MAKEFILE(posix)
|
||||||
|
makefiles="$makefiles wrapup/posix/Makefile"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check if there is custom/*.cfg for this BSP
|
||||||
|
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
|
||||||
|
|
||||||
|
# If RTEMS macros are enabled, then use them. Otherwise, use inlines.
|
||||||
|
if test "$RTEMS_USE_MACROS" = "yes"; then
|
||||||
|
inline_dir=macros
|
||||||
|
if test "$RTEMS_HAS_POSIX_API" = "yes"; then
|
||||||
|
# The problem is that there is currently no code in posix/macros :)
|
||||||
|
AC_MSG_ERROR(Macros are not implemented for the POSIX API)
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
inline_dir=inline
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST(RTEMS_VERSION)
|
||||||
|
|
||||||
|
AC_SUBST(rtems_cv_prog_cc_cross)
|
||||||
|
AC_SUBST(RTEMS_HAS_CPLUSPLUS)
|
||||||
|
AC_SUBST(RTEMS_USE_GCC272)
|
||||||
|
AC_SUBST(program_prefix)
|
||||||
|
AC_SUBST(CC_CFLAGS_DEFAULT)
|
||||||
|
AC_SUBST(CC_CFLAGS_DEBUG_V)
|
||||||
|
AC_SUBST(CC_CFLAGS_PROFILE_V)
|
||||||
|
AC_SUBST(CC_LDFLAGS_PROFILE_V)
|
||||||
|
|
||||||
|
# Try to explicitly list a Makefile here
|
||||||
|
AC_OUTPUT(
|
||||||
|
Makefile
|
||||||
|
score/Makefile
|
||||||
|
score/cpu/Makefile
|
||||||
|
score/include/Makefile
|
||||||
|
score/include/rtems/Makefile
|
||||||
|
score/include/rtems/wrap/Makefile
|
||||||
|
score/include/rtems/score/Makefile
|
||||||
|
score/${inline_dir}/Makefile
|
||||||
|
score/${inline_dir}/rtems/Makefile
|
||||||
|
score/${inline_dir}/rtems/score/Makefile
|
||||||
|
score/src/Makefile
|
||||||
|
wrapup/Makefile
|
||||||
|
wrapup/rtems/Makefile
|
||||||
|
$makefiles
|
||||||
|
sapi/include/rtems/sptables.h
|
||||||
|
)
|
||||||
1022
c/src/lib/aclocal.m4
vendored
Normal file
1022
c/src/lib/aclocal.m4
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3556
c/src/lib/configure
vendored
Normal file
3556
c/src/lib/configure
vendored
Normal file
File diff suppressed because it is too large
Load Diff
203
c/src/lib/configure.in
Normal file
203
c/src/lib/configure.in
Normal file
@@ -0,0 +1,203 @@
|
|||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_PREREQ(2.13)
|
||||||
|
AC_INIT(libbsp)
|
||||||
|
RTEMS_TOP(../../..)
|
||||||
|
AC_CONFIG_AUX_DIR(../../..)
|
||||||
|
|
||||||
|
AC_PROG_MAKE_SET
|
||||||
|
RTEMS_CANONICAL_TARGET_CPU
|
||||||
|
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
RTEMS_ENABLE_MULTIPROCESSING
|
||||||
|
RTEMS_ENABLE_POSIX
|
||||||
|
RTEMS_ENABLE_NETWORKING
|
||||||
|
RTEMS_ENABLE_RDBG
|
||||||
|
RTEMS_ENABLE_INLINES
|
||||||
|
RTEMS_ENABLE_CXX
|
||||||
|
RTEMS_ENABLE_GCC28
|
||||||
|
RTEMS_ENABLE_LIBCDIR
|
||||||
|
RTEMS_ENABLE_BARE
|
||||||
|
RTEMS_ENABLE_HWAPI
|
||||||
|
|
||||||
|
RTEMS_ENV_RTEMSBSP
|
||||||
|
|
||||||
|
AC_PROG_INSTALL
|
||||||
|
|
||||||
|
RTEMS_CHECK_CPU
|
||||||
|
RTEMS_CANONICAL_HOST
|
||||||
|
|
||||||
|
RTEMS_PROJECT_ROOT
|
||||||
|
|
||||||
|
dnl check target cc
|
||||||
|
RTEMS_PROG_CC_FOR_TARGET
|
||||||
|
|
||||||
|
dnl check for g++
|
||||||
|
if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
|
||||||
|
RTEMS_PROG_CXX_FOR_TARGET
|
||||||
|
fi
|
||||||
|
|
||||||
|
RTEMS_CANONICALIZE_TOOLS
|
||||||
|
|
||||||
|
dnl if this is an i386, does gas have good code16 support?
|
||||||
|
RTEMS_I386_GAS_CODE16
|
||||||
|
AM_CONDITIONAL(RTEMS_GAS_CODE16,test "$RTEMS_GAS_CODE16" = "yes");
|
||||||
|
|
||||||
|
RTEMS_CHECK_SYSV_UNIX
|
||||||
|
|
||||||
|
# find all the Makefiles for the BSPs
|
||||||
|
makefiles="$makefiles libbsp/$RTEMS_CPU/Makefile"
|
||||||
|
|
||||||
|
if test "${RTEMS_BSP}" = "bare"; then
|
||||||
|
makefiles="$makefiles libbsp/bare/Makefile"
|
||||||
|
fi
|
||||||
|
|
||||||
|
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
|
||||||
|
|
||||||
|
RTEMS_BSP_ALIAS(${RTEMS_BSP},bspdir)
|
||||||
|
|
||||||
|
# Is there code where there should be for this BSP?
|
||||||
|
# The bare bsp is a special case as it is not under the RTEMS_CPU path
|
||||||
|
case ${RTEMS_BSP} in
|
||||||
|
bare)
|
||||||
|
bspcpudir=
|
||||||
|
if test "X${BARE_CPU_CFLAGS}" = "X" ; then
|
||||||
|
AC_MSG_ERROR([--enable-bare-cpu-cflags not specified for bare bsp])
|
||||||
|
fi
|
||||||
|
if test "X${BARE_CPU_MODEL}" = "X" ; then
|
||||||
|
AC_MSG_ERROR([--enable-bare-cpu-model not specified for bare bsp])
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
bspcpudir=$RTEMS_CPU/
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test "$RTEMS_BSP" = "bare" ; then
|
||||||
|
RTEMS_LIBBSP_CPU_SUBDIR="bare"
|
||||||
|
else
|
||||||
|
RTEMS_LIBBSP_CPU_SUBDIR='$(RTEMS_CPU)'
|
||||||
|
fi
|
||||||
|
AC_SUBST(RTEMS_LIBBSP_CPU_SUBDIR)
|
||||||
|
|
||||||
|
if test -d "$srcdir/libbsp/$bspcpudir$bspdir"; then
|
||||||
|
RTEMS_CHECK_MAKEFILE(libbsp/${bspcpudir}$bspdir)
|
||||||
|
RTEMS_CHECK_MAKEFILE(libbsp/${bspcpudir}shared)
|
||||||
|
|
||||||
|
# HACK: sed out bsp-tools from makefiles
|
||||||
|
t="libbsp/$bspcpudir$bspdir/tools"
|
||||||
|
if test -d "$srcdir/$t"; then
|
||||||
|
bsptools_cfgdirs="$bsptools_cfgdirs $t"
|
||||||
|
makefiles=`echo "$makefiles" | sed -e "s%$t/.*Makefile%%g"`
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([unable to find libbsp directory ($bspdir) for ${RTEMS_BSP}])
|
||||||
|
fi
|
||||||
|
|
||||||
|
AM_CONDITIONAL(UNIX,test "$RTEMS_CPU" = "unix")
|
||||||
|
# find all the CPU dependent library Makefiles
|
||||||
|
RTEMS_CHECK_MAKEFILE(libcpu/$RTEMS_CPU)
|
||||||
|
|
||||||
|
dnl Workaround for go32
|
||||||
|
case "${target}" in
|
||||||
|
changequote(,)dnl
|
||||||
|
i[3456]86-go32-rtems*)
|
||||||
|
changequote([,])dnl
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
RTEMS_CHECK_MAKEFILE(start/$RTEMS_CPU)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# If RTEMS macros are enabled, then use them. Otherwise, use inlines.
|
||||||
|
if test "$RTEMS_USE_MACROS" = "yes"; then
|
||||||
|
inline_dir=macros
|
||||||
|
if test "$RTEMS_HAS_POSIX_API" = "yes"; then
|
||||||
|
# The problem is that there is currently no code in posix/macros :)
|
||||||
|
AC_MSG_ERROR(Macros are not implemented for the POSIX API)
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
inline_dir=inline
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If the TCP/IP stack is enabled, then find all TCP/IP Makefiles
|
||||||
|
AC_MSG_CHECKING([if networking is enabled? ])
|
||||||
|
AC_MSG_RESULT($RTEMS_HAS_NETWORKING)
|
||||||
|
if test "$RTEMS_HAS_NETWORKING" = "yes"; then
|
||||||
|
RTEMS_CHECK_MAKEFILE(libnetworking)
|
||||||
|
RTEMS_CHECK_MAKEFILE(librpc)
|
||||||
|
|
||||||
|
if test "$RTEMS_HAS_RDBG" = "yes"; then
|
||||||
|
RTEMS_CHECK_RDBG
|
||||||
|
RTEMS_HAS_RDBG="$rtems_cv_has_rdbg";
|
||||||
|
|
||||||
|
if test "$rtems_cv_has_rdbg" = "yes"; then
|
||||||
|
AC_CHECK_PROG(RPCGEN,rpcgen,rpcgen)
|
||||||
|
AC_PROG_AWK
|
||||||
|
if test -z "$RPCGEN"; then
|
||||||
|
AC_MSG_ERROR([missing rpcgen, required to build librdbg])
|
||||||
|
fi
|
||||||
|
if test -z "$AWK"; then
|
||||||
|
AC_MSG_ERROR([missing awk, required to build librdbg])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if test "$rtems_cv_has_rdbg" = "yes"; then
|
||||||
|
RTEMS_CHECK_MAKEFILE(librdbg)
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If the C++ support is enabled, then include the Makefiles
|
||||||
|
if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
|
||||||
|
RTEMS_CHECK_MAKEFILE(librtems++)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If the HWAPI is enabled, the find the HWAPI Makefiles
|
||||||
|
RTEMS_ENABLE_HWAPI
|
||||||
|
if test "$RTEMS_HAS_HWAPI" = "yes"; then
|
||||||
|
AC_MSG_CHECKING(whether libwapi is present)
|
||||||
|
if test -f ${srcdir}/libhwapi/Makefile.in ; then
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
makefiles="$makefiles libhwapi/Makefile"
|
||||||
|
RTEMS_CHECK_MAKEFILE(libhwapi/analog)
|
||||||
|
RTEMS_CHECK_MAKEFILE(libhwapi/discrete)
|
||||||
|
RTEMS_CHECK_MAKEFILE(libhwapi/drivers)
|
||||||
|
RTEMS_CHECK_MAKEFILE(libhwapi/non_volatile_memory)
|
||||||
|
RTEMS_CHECK_MAKEFILE(libhwapi/serial)
|
||||||
|
RTEMS_CHECK_MAKEFILE(libhwapi/support)
|
||||||
|
RTEMS_CHECK_MAKEFILE(libhwapi/wrapup)
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR(No source code found for the HWAPI)
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST(RTEMS_HAS_CPLUSPLUS)
|
||||||
|
AC_SUBST(RTEMS_USE_GCC272)
|
||||||
|
AC_SUBST(CC_CFLAGS_DEFAULT)
|
||||||
|
AC_SUBST(CC_CFLAGS_DEBUG_V)
|
||||||
|
AC_SUBST(CC_CFLAGS_PROFILE_V)
|
||||||
|
AC_SUBST(CC_LDFLAGS_PROFILE_V)
|
||||||
|
|
||||||
|
# pick up all the Makefiles in required parts of the tree
|
||||||
|
RTEMS_CHECK_MAKEFILE(libchip)
|
||||||
|
RTEMS_CHECK_MAKEFILE(libmisc)
|
||||||
|
|
||||||
|
AC_CONFIG_SUBDIRS($bsptools_cfgdirs)
|
||||||
|
|
||||||
|
# FIXME: libhwapi needs a separate configure.in in future ;-
|
||||||
|
# AC_CONFIG_SUBDIRS(libhwapi)
|
||||||
|
|
||||||
|
# try to explicitly list a Makefile here
|
||||||
|
AC_OUTPUT(
|
||||||
|
Makefile
|
||||||
|
include/Makefile
|
||||||
|
libbsp/Makefile
|
||||||
|
libbsp/shmdr/Makefile
|
||||||
|
libc/Makefile
|
||||||
|
libcpu/Makefile
|
||||||
|
start/Makefile
|
||||||
|
wrapup/Makefile
|
||||||
|
$makefiles)
|
||||||
19
c/src/lib/libbsp/i386/ts_386ex/tools/Makefile.am
Normal file
19
c/src/lib/libbsp/i386/ts_386ex/tools/Makefile.am
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal
|
||||||
|
|
||||||
|
noinst_SCRIPTS = \
|
||||||
|
coff2bin
|
||||||
|
|
||||||
|
SUBDIRS = \
|
||||||
|
ts_1325_ada \
|
||||||
|
dos_sup
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
$(noinst_SCRIPTS)
|
||||||
|
|
||||||
|
include $(top_srcdir)/../../../../../../../automake/subdirs.am
|
||||||
|
include $(top_srcdir)/../../../../../../../automake/local.am
|
||||||
261
c/src/lib/libbsp/i386/ts_386ex/tools/aclocal.m4
vendored
Normal file
261
c/src/lib/libbsp/i386/ts_386ex/tools/aclocal.m4
vendored
Normal file
@@ -0,0 +1,261 @@
|
|||||||
|
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$
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl RTEMS_TOP($1)
|
||||||
|
dnl
|
||||||
|
dnl $1 .. relative path from this configure.in to the toplevel configure.in
|
||||||
|
dnl
|
||||||
|
AC_DEFUN(RTEMS_TOP,
|
||||||
|
[dnl
|
||||||
|
AC_ARG_WITH(target-subdir,
|
||||||
|
[ --with-target-subdir=DIR],
|
||||||
|
TARGET_SUBDIR="$withval",
|
||||||
|
TARGET_SUBDIR=".")
|
||||||
|
|
||||||
|
RTEMS_TOPdir="$1";
|
||||||
|
AC_SUBST(RTEMS_TOPdir)
|
||||||
|
|
||||||
|
dnl Determine RTEMS Version string from the VERSION file
|
||||||
|
dnl Hopefully, Joel never changes its format ;-
|
||||||
|
AC_MSG_CHECKING([for RTEMS Version])
|
||||||
|
if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
|
||||||
|
changequote(,)dnl
|
||||||
|
RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
|
||||||
|
sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'`
|
||||||
|
changequote([,])dnl
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR(Unable to find ${RTEMS_TOPdir}/VERSION)
|
||||||
|
fi
|
||||||
|
if test -z "$RTEMS_VERSION"; then
|
||||||
|
AC_MSG_ERROR(Unable to determine version)
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($RTEMS_VERSION)
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
dnl canonicalize target cpu
|
||||||
|
dnl NOTE: Most rtems targets do not fullfil autoconf's
|
||||||
|
dnl target naming conventions "processor-vendor-os"
|
||||||
|
dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
|
||||||
|
dnl and we have to fix it for rtems ourselves
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
|
||||||
|
[
|
||||||
|
AC_CANONICAL_SYSTEM
|
||||||
|
AC_MSG_CHECKING(rtems target cpu)
|
||||||
|
changequote(,)dnl
|
||||||
|
case "${target}" in
|
||||||
|
# hpux unix port should go here
|
||||||
|
i[3456]86-go32-rtems*)
|
||||||
|
RTEMS_CPU=i386
|
||||||
|
;;
|
||||||
|
i[3456]86-pc-linux*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
i[3456]86-*freebsd2*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
no_cpu-*rtems*)
|
||||||
|
RTEMS_CPU=no_cpu
|
||||||
|
;;
|
||||||
|
sparc-sun-solaris*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
changequote([,])dnl
|
||||||
|
AC_SUBST(RTEMS_CPU)
|
||||||
|
AC_MSG_RESULT($RTEMS_CPU)
|
||||||
|
])
|
||||||
|
|
||||||
|
# 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)])
|
||||||
|
|
||||||
|
# Add --enable-maintainer-mode option to configure.
|
||||||
|
# From Jim Meyering
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
|
AC_DEFUN(AM_MAINTAINER_MODE,
|
||||||
|
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
||||||
|
dnl maintainer-mode is disabled by default
|
||||||
|
AC_ARG_ENABLE(maintainer-mode,
|
||||||
|
[ --enable-maintainer-mode enable make rules and dependencies not useful
|
||||||
|
(and sometimes confusing) to the casual installer],
|
||||||
|
USE_MAINTAINER_MODE=$enableval,
|
||||||
|
USE_MAINTAINER_MODE=no)
|
||||||
|
AC_MSG_RESULT($USE_MAINTAINER_MODE)
|
||||||
|
AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
|
||||||
|
MAINT=$MAINTAINER_MODE_TRUE
|
||||||
|
AC_SUBST(MAINT)dnl
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
# Define a conditional.
|
||||||
|
|
||||||
|
AC_DEFUN(AM_CONDITIONAL,
|
||||||
|
[AC_SUBST($1_TRUE)
|
||||||
|
AC_SUBST($1_FALSE)
|
||||||
|
if $2; then
|
||||||
|
$1_TRUE=
|
||||||
|
$1_FALSE='#'
|
||||||
|
else
|
||||||
|
$1_TRUE='#'
|
||||||
|
$1_FALSE=
|
||||||
|
fi])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PROJECT_ROOT,
|
||||||
|
[dnl
|
||||||
|
AC_REQUIRE([RTEMS_TOP])
|
||||||
|
if test "$TARGET_SUBDIR" = "." ; then
|
||||||
|
PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)';
|
||||||
|
else
|
||||||
|
PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)'
|
||||||
|
fi
|
||||||
|
AC_SUBST(PROJECT_ROOT)
|
||||||
|
|
||||||
|
RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
|
||||||
|
AC_SUBST(RTEMS_ROOT)
|
||||||
|
|
||||||
|
INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change"
|
||||||
|
AC_SUBST(INSTALL_CHANGE)
|
||||||
|
|
||||||
|
PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex"
|
||||||
|
AC_SUBST(PACKHEX)
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_TOOLPATHS,
|
||||||
|
[
|
||||||
|
# tooldir='$(exec_prefix)/'$target_alias
|
||||||
|
# Temporary work-around until building in source tree is supported
|
||||||
|
AC_REQUIRE([RTEMS_PROJECT_ROOT])
|
||||||
|
|
||||||
|
tooldir='$(PROJECT_ROOT)'
|
||||||
|
AC_SUBST(tooldir)
|
||||||
|
|
||||||
|
project_includedir='$(tooldir)'/include
|
||||||
|
AC_SUBST(project_includedir)
|
||||||
|
|
||||||
|
project_libdir='$(tooldir)/lib$(MULTISUBDIR)'
|
||||||
|
AC_SUBST(project_libdir)
|
||||||
|
|
||||||
|
project_bindir='$(tooldir)/bin'
|
||||||
|
AC_SUBST(project_bindir)
|
||||||
|
|
||||||
|
rtems_bspdir='$(prefix)/${RTEMS_BSP}'
|
||||||
|
AC_SUBST(rtems_bspdir)
|
||||||
|
rtems_makedir='$(prefix)/make'
|
||||||
|
AC_SUBST(rtems_makedir)
|
||||||
|
])
|
||||||
|
|
||||||
1284
c/src/lib/libbsp/i386/ts_386ex/tools/configure
vendored
Normal file
1284
c/src/lib/libbsp/i386/ts_386ex/tools/configure
vendored
Normal file
File diff suppressed because it is too large
Load Diff
21
c/src/lib/libbsp/i386/ts_386ex/tools/configure.in
Normal file
21
c/src/lib/libbsp/i386/ts_386ex/tools/configure.in
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_INIT(coff2bin)
|
||||||
|
AC_CONFIG_AUX_DIR(../../../../../../..)
|
||||||
|
|
||||||
|
RTEMS_TOP(../../../../../../..)
|
||||||
|
RTEMS_CANONICAL_TARGET_CPU
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE(rtems-lib-libbsp-i386-ts_386ex-tools,$RTEMS_VERSION,no)
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
RTEMS_PROJECT_ROOT
|
||||||
|
RTEMS_TOOLPATHS
|
||||||
|
|
||||||
|
AC_OUTPUT(
|
||||||
|
Makefile
|
||||||
|
dos_sup/Makefile
|
||||||
|
ts_1325_ada/Makefile
|
||||||
|
)
|
||||||
12
c/src/lib/libbsp/i386/ts_386ex/tools/dos_sup/Makefile.am
Normal file
12
c/src/lib/libbsp/i386/ts_386ex/tools/dos_sup/Makefile.am
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
loader.com \
|
||||||
|
loader_hybrid_com.asm \
|
||||||
|
ts1325.inc
|
||||||
|
|
||||||
|
include $(top_srcdir)/../../../../../../../automake/local.am
|
||||||
225
c/src/lib/libbsp/i386/ts_386ex/tools/dos_sup/Makefile.in
Normal file
225
c/src/lib/libbsp/i386/ts_386ex/tools/dos_sup/Makefile.in
Normal file
@@ -0,0 +1,225 @@
|
|||||||
|
# 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$
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
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_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_triplet = @build@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
target_triplet = @target@
|
||||||
|
INSTALL_CHANGE = @INSTALL_CHANGE@
|
||||||
|
MAINT = @MAINT@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
PACKHEX = @PACKHEX@
|
||||||
|
PROJECT_ROOT = @PROJECT_ROOT@
|
||||||
|
RTEMS_CPU = @RTEMS_CPU@
|
||||||
|
RTEMS_ROOT = @RTEMS_ROOT@
|
||||||
|
RTEMS_TOPdir = @RTEMS_TOPdir@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
project_bindir = @project_bindir@
|
||||||
|
project_includedir = @project_includedir@
|
||||||
|
project_libdir = @project_libdir@
|
||||||
|
rtems_bspdir = @rtems_bspdir@
|
||||||
|
rtems_makedir = @rtems_makedir@
|
||||||
|
tooldir = @tooldir@
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
EXTRA_DIST = loader.com loader_hybrid_com.asm ts1325.inc
|
||||||
|
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../../../../mkinstalldirs
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
DIST_COMMON = Makefile.am Makefile.in
|
||||||
|
|
||||||
|
|
||||||
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = tar
|
||||||
|
GZIP_ENV = --best
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../../../../../../automake/local.am
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --foreign dos_sup/Makefile
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
tags: TAGS
|
||||||
|
TAGS:
|
||||||
|
|
||||||
|
|
||||||
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||||
|
|
||||||
|
subdir = dos_sup
|
||||||
|
|
||||||
|
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 dos_sup/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-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: uninstall-am
|
||||||
|
all-am: Makefile
|
||||||
|
all-redirect: all-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs:
|
||||||
|
|
||||||
|
|
||||||
|
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: 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 mostlyclean-generic \
|
||||||
|
distclean-generic clean-generic maintainer-clean-generic clean \
|
||||||
|
mostlyclean distclean maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
debug-am:
|
||||||
|
debug: debug-am
|
||||||
|
.PHONY: debug debug-am
|
||||||
|
|
||||||
|
debug_install-am:
|
||||||
|
debug_install: debug_install-am
|
||||||
|
.PHONY: debug_install debug_install-am
|
||||||
|
|
||||||
|
profile-am:
|
||||||
|
profile: profile-am
|
||||||
|
.PHONY: profile profile-am
|
||||||
|
|
||||||
|
profile_install-am:
|
||||||
|
profile_install: profile_install-am
|
||||||
|
.PHONY: profile_install profile_install-am
|
||||||
|
|
||||||
|
preinstall-am:
|
||||||
|
preinstall: preinstall-am
|
||||||
|
.PHONY: preinstall preinstall-am
|
||||||
|
|
||||||
|
clobber-am:
|
||||||
|
clobber: clobber-am
|
||||||
|
.PHONY: clobber clobber-am
|
||||||
|
|
||||||
|
depend-am:
|
||||||
|
depend: depend-am
|
||||||
|
.PHONY: depend depend-am
|
||||||
|
|
||||||
|
# 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:
|
||||||
21
c/src/lib/libbsp/i386/ts_386ex/tools/ts_1325_ada/Makefile.am
Normal file
21
c/src/lib/libbsp/i386/ts_386ex/tools/ts_1325_ada/Makefile.am
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
Makefile.ts_386ex \
|
||||||
|
ts1325-button.adb \
|
||||||
|
ts1325-parallel.adb \
|
||||||
|
i386_ports.adb \
|
||||||
|
ts1325-button.ads \
|
||||||
|
ts1325-parallel.ads \
|
||||||
|
i386_ports.ads \
|
||||||
|
ts1325-led.adb \
|
||||||
|
ts1325.ads \
|
||||||
|
init.c \
|
||||||
|
ts1325-led.ads \
|
||||||
|
ts1325_test.adb
|
||||||
|
|
||||||
|
include $(top_srcdir)/../../../../../../../automake/local.am
|
||||||
225
c/src/lib/libbsp/i386/ts_386ex/tools/ts_1325_ada/Makefile.in
Normal file
225
c/src/lib/libbsp/i386/ts_386ex/tools/ts_1325_ada/Makefile.in
Normal file
@@ -0,0 +1,225 @@
|
|||||||
|
# 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$
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
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_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_triplet = @build@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
target_triplet = @target@
|
||||||
|
INSTALL_CHANGE = @INSTALL_CHANGE@
|
||||||
|
MAINT = @MAINT@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
PACKHEX = @PACKHEX@
|
||||||
|
PROJECT_ROOT = @PROJECT_ROOT@
|
||||||
|
RTEMS_CPU = @RTEMS_CPU@
|
||||||
|
RTEMS_ROOT = @RTEMS_ROOT@
|
||||||
|
RTEMS_TOPdir = @RTEMS_TOPdir@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
project_bindir = @project_bindir@
|
||||||
|
project_includedir = @project_includedir@
|
||||||
|
project_libdir = @project_libdir@
|
||||||
|
rtems_bspdir = @rtems_bspdir@
|
||||||
|
rtems_makedir = @rtems_makedir@
|
||||||
|
tooldir = @tooldir@
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
EXTRA_DIST = Makefile.ts_386ex ts1325-button.adb ts1325-parallel.adb i386_ports.adb ts1325-button.ads ts1325-parallel.ads i386_ports.ads ts1325-led.adb ts1325.ads init.c ts1325-led.ads ts1325_test.adb
|
||||||
|
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../../../../mkinstalldirs
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
DIST_COMMON = Makefile.am Makefile.in
|
||||||
|
|
||||||
|
|
||||||
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = tar
|
||||||
|
GZIP_ENV = --best
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../../../../../../automake/local.am
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --foreign ts_1325_ada/Makefile
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
tags: TAGS
|
||||||
|
TAGS:
|
||||||
|
|
||||||
|
|
||||||
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||||
|
|
||||||
|
subdir = ts_1325_ada
|
||||||
|
|
||||||
|
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 ts_1325_ada/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-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: uninstall-am
|
||||||
|
all-am: Makefile
|
||||||
|
all-redirect: all-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs:
|
||||||
|
|
||||||
|
|
||||||
|
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: 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 mostlyclean-generic \
|
||||||
|
distclean-generic clean-generic maintainer-clean-generic clean \
|
||||||
|
mostlyclean distclean maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
debug-am:
|
||||||
|
debug: debug-am
|
||||||
|
.PHONY: debug debug-am
|
||||||
|
|
||||||
|
debug_install-am:
|
||||||
|
debug_install: debug_install-am
|
||||||
|
.PHONY: debug_install debug_install-am
|
||||||
|
|
||||||
|
profile-am:
|
||||||
|
profile: profile-am
|
||||||
|
.PHONY: profile profile-am
|
||||||
|
|
||||||
|
profile_install-am:
|
||||||
|
profile_install: profile_install-am
|
||||||
|
.PHONY: profile_install profile_install-am
|
||||||
|
|
||||||
|
preinstall-am:
|
||||||
|
preinstall: preinstall-am
|
||||||
|
.PHONY: preinstall preinstall-am
|
||||||
|
|
||||||
|
clobber-am:
|
||||||
|
clobber: clobber-am
|
||||||
|
.PHONY: clobber clobber-am
|
||||||
|
|
||||||
|
depend-am:
|
||||||
|
depend: depend-am
|
||||||
|
.PHONY: depend depend-am
|
||||||
|
|
||||||
|
# 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:
|
||||||
48
c/src/make/Makefile.am
Normal file
48
c/src/make/Makefile.am
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal
|
||||||
|
|
||||||
|
rtems_makedir=$(prefix)/make
|
||||||
|
|
||||||
|
GENERIC_FILES = \
|
||||||
|
host.cfg target.cfg
|
||||||
|
|
||||||
|
MAKE_FILES = README \
|
||||||
|
directory.cfg leaf.cfg \
|
||||||
|
lib.cfg
|
||||||
|
|
||||||
|
rtems_make_DATA = \
|
||||||
|
$(MAKE_FILES) \
|
||||||
|
$(GENERIC_FILES)
|
||||||
|
|
||||||
|
noinst_DATA = \
|
||||||
|
main.cfg
|
||||||
|
|
||||||
|
rtemsdir = $(prefix)
|
||||||
|
rtems_bspdir = $(rtemsdir)/@RTEMS_BSP@
|
||||||
|
rtems_bsp_DATA = \
|
||||||
|
Makefile.inc
|
||||||
|
|
||||||
|
if MAINTAINER_MODE
|
||||||
|
$(srcdir)/main.cfg.in: $(top_srcdir)/@RTEMS_TOPdir@/make/main.cfg
|
||||||
|
sed -e 's%\$$(RTEMS_BSP)%\@RTEMS_BSP\@%g' < $< >$@
|
||||||
|
|
||||||
|
$(srcdir)/Makefile.inc.in: $(top_srcdir)/@RTEMS_TOPdir@/make/Templates/Makefile.inc.in
|
||||||
|
echo "RTEMS_BSP = @""RTEMS_BSP@" > $@
|
||||||
|
echo "" >> $@
|
||||||
|
cat $< >> $@
|
||||||
|
|
||||||
|
$(srcdir)/host.cfg.in: $(top_srcdir)/@RTEMS_TOPdir@/make/host.cfg.in
|
||||||
|
cp $< $@
|
||||||
|
|
||||||
|
$(srcdir)/target.cfg.in: $(top_srcdir)/@RTEMS_TOPdir@/make/target.cfg.in
|
||||||
|
cp $< $@
|
||||||
|
endif
|
||||||
|
|
||||||
|
SUBDIRS = compilers custom Templates
|
||||||
|
|
||||||
|
include $(top_srcdir)/../../../automake/subdirs.am
|
||||||
|
include $(top_srcdir)/../../../automake/local.am
|
||||||
538
c/src/make/Makefile.in
Normal file
538
c/src/make/Makefile.in
Normal file
@@ -0,0 +1,538 @@
|
|||||||
|
# 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$
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
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_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_triplet = @build@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
target_triplet = @target@
|
||||||
|
BARE_CPU_CFLAGS = @BARE_CPU_CFLAGS@
|
||||||
|
BARE_CPU_MODEL = @BARE_CPU_MODEL@
|
||||||
|
CAT = @CAT@
|
||||||
|
CC = @CC@
|
||||||
|
CC_CFLAGS_DEBUG_V = @CC_CFLAGS_DEBUG_V@
|
||||||
|
CC_CFLAGS_DEFAULT = @CC_CFLAGS_DEFAULT@
|
||||||
|
CC_CFLAGS_PROFILE_V = @CC_CFLAGS_PROFILE_V@
|
||||||
|
CC_FOR_TARGET = @CC_FOR_TARGET@
|
||||||
|
CC_LDFLAGS_PROFILE_V = @CC_LDFLAGS_PROFILE_V@
|
||||||
|
CHMOD = @CHMOD@
|
||||||
|
CMP = @CMP@
|
||||||
|
CP = @CP@
|
||||||
|
CPP = @CPP@
|
||||||
|
CUSTOM_CFG_FILES = @CUSTOM_CFG_FILES@
|
||||||
|
CXX = @CXX@
|
||||||
|
CXXCPP = @CXXCPP@
|
||||||
|
CXX_FOR_TARGET = @CXX_FOR_TARGET@
|
||||||
|
GCCSED = @GCCSED@
|
||||||
|
INSTALL_CHANGE = @INSTALL_CHANGE@
|
||||||
|
KSH = @KSH@
|
||||||
|
LN = @LN@
|
||||||
|
LN_S = @LN_S@
|
||||||
|
M4 = @M4@
|
||||||
|
MAINT = @MAINT@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
MV = @MV@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
PACKHEX = @PACKHEX@
|
||||||
|
PERL = @PERL@
|
||||||
|
PROJECT_ROOT = @PROJECT_ROOT@
|
||||||
|
RM = @RM@
|
||||||
|
RTEMS_BSP = @RTEMS_BSP@
|
||||||
|
RTEMS_CPU = @RTEMS_CPU@
|
||||||
|
RTEMS_GAS_CODE16 = @RTEMS_GAS_CODE16@
|
||||||
|
RTEMS_HAS_CPLUSPLUS = @RTEMS_HAS_CPLUSPLUS@
|
||||||
|
RTEMS_HAS_MULTIPROCESSING = @RTEMS_HAS_MULTIPROCESSING@
|
||||||
|
RTEMS_HAS_NETWORKING = @RTEMS_HAS_NETWORKING@
|
||||||
|
RTEMS_HAS_POSIX_API = @RTEMS_HAS_POSIX_API@
|
||||||
|
RTEMS_HAS_RDBG = @RTEMS_HAS_RDBG@
|
||||||
|
RTEMS_HOST = @RTEMS_HOST@
|
||||||
|
RTEMS_LIBC_DIR = @RTEMS_LIBC_DIR@
|
||||||
|
RTEMS_ROOT = @RTEMS_ROOT@
|
||||||
|
RTEMS_TOPdir = @RTEMS_TOPdir@
|
||||||
|
RTEMS_USE_GCC272 = @RTEMS_USE_GCC272@
|
||||||
|
RTEMS_USE_MACROS = @RTEMS_USE_MACROS@
|
||||||
|
SED = @SED@
|
||||||
|
SORT = @SORT@
|
||||||
|
TOUCH = @TOUCH@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
program_prefix = @program_prefix@
|
||||||
|
rtems_cv_prog_cc_cross = @rtems_cv_prog_cc_cross@
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal
|
||||||
|
|
||||||
|
rtems_makedir = $(prefix)/make
|
||||||
|
|
||||||
|
GENERIC_FILES = host.cfg target.cfg
|
||||||
|
|
||||||
|
|
||||||
|
MAKE_FILES = README directory.cfg leaf.cfg lib.cfg
|
||||||
|
|
||||||
|
|
||||||
|
rtems_make_DATA = $(MAKE_FILES) $(GENERIC_FILES)
|
||||||
|
|
||||||
|
|
||||||
|
noinst_DATA = main.cfg
|
||||||
|
|
||||||
|
|
||||||
|
rtemsdir = $(prefix)
|
||||||
|
rtems_bspdir = $(rtemsdir)/@RTEMS_BSP@
|
||||||
|
rtems_bsp_DATA = Makefile.inc
|
||||||
|
|
||||||
|
|
||||||
|
SUBDIRS = compilers custom Templates
|
||||||
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/../../../mkinstalldirs
|
||||||
|
CONFIG_CLEAN_FILES = Makefile.inc main.cfg host.cfg target.cfg
|
||||||
|
DATA = $(noinst_DATA) $(rtems_bsp_DATA) $(rtems_make_DATA)
|
||||||
|
|
||||||
|
DIST_COMMON = Makefile.am Makefile.in Makefile.inc.in aclocal.m4 \
|
||||||
|
configure configure.in host.cfg.in main.cfg.in target.cfg.in
|
||||||
|
|
||||||
|
|
||||||
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = tar
|
||||||
|
GZIP_ENV = --best
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../../automake/subdirs.am $(top_srcdir)/../../../automake/local.am
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in
|
||||||
|
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||||
|
|
||||||
|
config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||||
|
$(SHELL) ./config.status --recheck
|
||||||
|
$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
|
||||||
|
cd $(srcdir) && $(AUTOCONF)
|
||||||
|
Makefile.inc: $(top_builddir)/config.status Makefile.inc.in
|
||||||
|
cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
main.cfg: $(top_builddir)/config.status main.cfg.in
|
||||||
|
cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
host.cfg: $(top_builddir)/config.status host.cfg.in
|
||||||
|
cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
target.cfg: $(top_builddir)/config.status target.cfg.in
|
||||||
|
cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
install-rtems_bspDATA: $(rtems_bsp_DATA)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(rtems_bspdir)
|
||||||
|
@list='$(rtems_bsp_DATA)'; for p in $$list; do \
|
||||||
|
if test -f $(srcdir)/$$p; then \
|
||||||
|
echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(rtems_bspdir)/$$p"; \
|
||||||
|
$(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(rtems_bspdir)/$$p; \
|
||||||
|
else if test -f $$p; then \
|
||||||
|
echo " $(INSTALL_DATA) $$p $(DESTDIR)$(rtems_bspdir)/$$p"; \
|
||||||
|
$(INSTALL_DATA) $$p $(DESTDIR)$(rtems_bspdir)/$$p; \
|
||||||
|
fi; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-rtems_bspDATA:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
list='$(rtems_bsp_DATA)'; for p in $$list; do \
|
||||||
|
rm -f $(DESTDIR)$(rtems_bspdir)/$$p; \
|
||||||
|
done
|
||||||
|
|
||||||
|
install-rtems_makeDATA: $(rtems_make_DATA)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(rtems_makedir)
|
||||||
|
@list='$(rtems_make_DATA)'; for p in $$list; do \
|
||||||
|
if test -f $(srcdir)/$$p; then \
|
||||||
|
echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(rtems_makedir)/$$p"; \
|
||||||
|
$(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(rtems_makedir)/$$p; \
|
||||||
|
else if test -f $$p; then \
|
||||||
|
echo " $(INSTALL_DATA) $$p $(DESTDIR)$(rtems_makedir)/$$p"; \
|
||||||
|
$(INSTALL_DATA) $$p $(DESTDIR)$(rtems_makedir)/$$p; \
|
||||||
|
fi; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-rtems_makeDATA:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
list='$(rtems_make_DATA)'; for p in $$list; do \
|
||||||
|
rm -f $(DESTDIR)$(rtems_makedir)/$$p; \
|
||||||
|
done
|
||||||
|
|
||||||
|
# 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-rtems_bspDATA install-rtems_makeDATA
|
||||||
|
install-data: install-data-recursive
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
install: install-recursive
|
||||||
|
uninstall-am: uninstall-rtems_bspDATA uninstall-rtems_makeDATA
|
||||||
|
uninstall: uninstall-recursive
|
||||||
|
all-am: Makefile $(DATA)
|
||||||
|
all-redirect: all-recursive
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs: installdirs-recursive
|
||||||
|
installdirs-am:
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(rtems_bspdir) $(DESTDIR)$(rtems_makedir)
|
||||||
|
|
||||||
|
|
||||||
|
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: uninstall-rtems_bspDATA install-rtems_bspDATA \
|
||||||
|
uninstall-rtems_makeDATA install-rtems_makeDATA 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
|
||||||
|
|
||||||
|
|
||||||
|
@MAINTAINER_MODE_TRUE@$(srcdir)/main.cfg.in: $(top_srcdir)/@RTEMS_TOPdir@/make/main.cfg
|
||||||
|
@MAINTAINER_MODE_TRUE@ sed -e 's%\$$(RTEMS_BSP)%\@RTEMS_BSP\@%g' < $< >$@
|
||||||
|
|
||||||
|
@MAINTAINER_MODE_TRUE@$(srcdir)/Makefile.inc.in: $(top_srcdir)/@RTEMS_TOPdir@/make/Templates/Makefile.inc.in
|
||||||
|
@MAINTAINER_MODE_TRUE@ echo "RTEMS_BSP = @""RTEMS_BSP@" > $@
|
||||||
|
@MAINTAINER_MODE_TRUE@ echo "" >> $@
|
||||||
|
@MAINTAINER_MODE_TRUE@ cat $< >> $@
|
||||||
|
|
||||||
|
@MAINTAINER_MODE_TRUE@$(srcdir)/host.cfg.in: $(top_srcdir)/@RTEMS_TOPdir@/make/host.cfg.in
|
||||||
|
@MAINTAINER_MODE_TRUE@ cp $< $@
|
||||||
|
|
||||||
|
@MAINTAINER_MODE_TRUE@$(srcdir)/target.cfg.in: $(top_srcdir)/@RTEMS_TOPdir@/make/target.cfg.in
|
||||||
|
@MAINTAINER_MODE_TRUE@ cp $< $@
|
||||||
|
|
||||||
|
depend-recursive \
|
||||||
|
clobber-recursive \
|
||||||
|
preinstall-recursive \
|
||||||
|
debug-recursive \
|
||||||
|
debug_install-recursive \
|
||||||
|
profile-recursive \
|
||||||
|
profile_install-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"
|
||||||
|
|
||||||
|
debug: debug-recursive
|
||||||
|
.PHONY: debug-recursive
|
||||||
|
|
||||||
|
debug_install: debug_install-recursive
|
||||||
|
.PHONY: debug_install-recursive
|
||||||
|
|
||||||
|
profile: profile-recursive
|
||||||
|
.PHONY: profile-recursive
|
||||||
|
|
||||||
|
profile_install: profile_install-recursive
|
||||||
|
.PHONY: profile-recursive
|
||||||
|
|
||||||
|
preinstall: preinstall-recursive
|
||||||
|
.PHONY: preinstall-recursive
|
||||||
|
|
||||||
|
clobber: clobber-recursive
|
||||||
|
.PHONY: clobber-recursive
|
||||||
|
|
||||||
|
depend: depend-recursive
|
||||||
|
.PHONY: depend-recursive
|
||||||
|
|
||||||
|
debug-am:
|
||||||
|
debug: debug-am
|
||||||
|
.PHONY: debug debug-am
|
||||||
|
|
||||||
|
debug_install-am:
|
||||||
|
debug_install: debug_install-am
|
||||||
|
.PHONY: debug_install debug_install-am
|
||||||
|
|
||||||
|
profile-am:
|
||||||
|
profile: profile-am
|
||||||
|
.PHONY: profile profile-am
|
||||||
|
|
||||||
|
profile_install-am:
|
||||||
|
profile_install: profile_install-am
|
||||||
|
.PHONY: profile_install profile_install-am
|
||||||
|
|
||||||
|
preinstall-am:
|
||||||
|
preinstall: preinstall-am
|
||||||
|
.PHONY: preinstall preinstall-am
|
||||||
|
|
||||||
|
clobber-am:
|
||||||
|
clobber: clobber-am
|
||||||
|
.PHONY: clobber clobber-am
|
||||||
|
|
||||||
|
depend-am:
|
||||||
|
depend: depend-am
|
||||||
|
.PHONY: depend depend-am
|
||||||
|
|
||||||
|
# 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:
|
||||||
50
c/src/make/Makefile.inc.in
Normal file
50
c/src/make/Makefile.inc.in
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
RTEMS_BSP = @RTEMS_BSP@
|
||||||
|
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Target specific settings. To be included in application Makefiles.
|
||||||
|
#
|
||||||
|
|
||||||
|
prefix = @prefix@
|
||||||
|
|
||||||
|
CC_FOR_TARGET = @program_prefix@gcc
|
||||||
|
AS_FOR_TARGET = @program_prefix@as
|
||||||
|
AR_FOR_TARGET = @program_prefix@ar
|
||||||
|
NM_FOR_TARGET = @program_prefix@nm
|
||||||
|
LD_FOR_TARGET = @program_prefix@ld
|
||||||
|
SIZE_FOR_TARGET = @program_prefix@size
|
||||||
|
OBJCOPY_FOR_TARGET = @program_prefix@objcopy
|
||||||
|
|
||||||
|
CC= $(CC_FOR_TARGET)
|
||||||
|
AS= $(AS_FOR_TARGET)
|
||||||
|
LD= $(LD_FOR_TARGET)
|
||||||
|
NM= $(NM_FOR_TARGET)
|
||||||
|
AR= $(AR_FOR_TARGET)
|
||||||
|
SIZE= $(SIZE_FOR_TARGET)
|
||||||
|
OBJCOPY= $(OBJCOPY_FOR_TARGET)
|
||||||
|
|
||||||
|
export CC
|
||||||
|
export AS
|
||||||
|
export LD
|
||||||
|
export NM
|
||||||
|
export AR
|
||||||
|
export SIZE
|
||||||
|
export OBJCOPY
|
||||||
|
|
||||||
|
RTEMS_HOST = @RTEMS_HOST@
|
||||||
|
RTEMS_CUSTOM = $(prefix)/make/custom/$(RTEMS_BSP).cfg
|
||||||
|
PROJECT_ROOT = $(prefix)/
|
||||||
|
RTEMS_USE_OWN_PDIR = no
|
||||||
|
RTEMS_HAS_POSIX_API = @RTEMS_HAS_POSIX_API@
|
||||||
|
RTEMS_USE_MACROS = @RTEMS_USE_MACROS@
|
||||||
|
RTEMS_HAS_CPLUSPLUS = @RTEMS_HAS_CPLUSPLUS@
|
||||||
|
RTEMS_USE_GCC272 = @RTEMS_USE_GCC272@
|
||||||
|
RTEMS_LIBC_DIR = @RTEMS_LIBC_DIR@
|
||||||
|
|
||||||
|
export RTEMS_BSP
|
||||||
|
export RTEMS_CUSTOM
|
||||||
|
export PROJECT_ROOT
|
||||||
|
|
||||||
|
# FIXME: The following shouldn't be here
|
||||||
|
RTEMS_ROOT = $(PROJECT_ROOT)
|
||||||
|
export RTEMS_ROOT
|
||||||
15
c/src/make/Templates/Makefile.am
Normal file
15
c/src/make/Templates/Makefile.am
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
rtems_makedir=$(prefix)/make
|
||||||
|
rtems_make_Templatesdir=$(rtems_makedir)/Templates
|
||||||
|
|
||||||
|
rtems_make_Templates_DATA = \
|
||||||
|
Makefile.dir \
|
||||||
|
Makefile.leaf \
|
||||||
|
Makefile.lib
|
||||||
|
|
||||||
|
include $(top_srcdir)/../../../automake/local.am
|
||||||
9
c/src/make/Templates/Makefile.dir
Normal file
9
c/src/make/Templates/Makefile.dir
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
|
||||||
|
include $(RTEMS_ROOT)/make/directory.cfg
|
||||||
|
|
||||||
|
SUB_DIRS=a b c your-directories-go-here
|
||||||
|
|
||||||
286
c/src/make/Templates/Makefile.in
Normal file
286
c/src/make/Templates/Makefile.in
Normal file
@@ -0,0 +1,286 @@
|
|||||||
|
# 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$
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
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_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_triplet = @build@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
target_triplet = @target@
|
||||||
|
BARE_CPU_CFLAGS = @BARE_CPU_CFLAGS@
|
||||||
|
BARE_CPU_MODEL = @BARE_CPU_MODEL@
|
||||||
|
CAT = @CAT@
|
||||||
|
CC = @CC@
|
||||||
|
CC_CFLAGS_DEBUG_V = @CC_CFLAGS_DEBUG_V@
|
||||||
|
CC_CFLAGS_DEFAULT = @CC_CFLAGS_DEFAULT@
|
||||||
|
CC_CFLAGS_PROFILE_V = @CC_CFLAGS_PROFILE_V@
|
||||||
|
CC_FOR_TARGET = @CC_FOR_TARGET@
|
||||||
|
CC_LDFLAGS_PROFILE_V = @CC_LDFLAGS_PROFILE_V@
|
||||||
|
CHMOD = @CHMOD@
|
||||||
|
CMP = @CMP@
|
||||||
|
CP = @CP@
|
||||||
|
CPP = @CPP@
|
||||||
|
CUSTOM_CFG_FILES = @CUSTOM_CFG_FILES@
|
||||||
|
CXX = @CXX@
|
||||||
|
CXXCPP = @CXXCPP@
|
||||||
|
CXX_FOR_TARGET = @CXX_FOR_TARGET@
|
||||||
|
GCCSED = @GCCSED@
|
||||||
|
INSTALL_CHANGE = @INSTALL_CHANGE@
|
||||||
|
KSH = @KSH@
|
||||||
|
LN = @LN@
|
||||||
|
LN_S = @LN_S@
|
||||||
|
M4 = @M4@
|
||||||
|
MAINT = @MAINT@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
MV = @MV@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
PACKHEX = @PACKHEX@
|
||||||
|
PERL = @PERL@
|
||||||
|
PROJECT_ROOT = @PROJECT_ROOT@
|
||||||
|
RM = @RM@
|
||||||
|
RTEMS_BSP = @RTEMS_BSP@
|
||||||
|
RTEMS_CPU = @RTEMS_CPU@
|
||||||
|
RTEMS_GAS_CODE16 = @RTEMS_GAS_CODE16@
|
||||||
|
RTEMS_HAS_CPLUSPLUS = @RTEMS_HAS_CPLUSPLUS@
|
||||||
|
RTEMS_HAS_MULTIPROCESSING = @RTEMS_HAS_MULTIPROCESSING@
|
||||||
|
RTEMS_HAS_NETWORKING = @RTEMS_HAS_NETWORKING@
|
||||||
|
RTEMS_HAS_POSIX_API = @RTEMS_HAS_POSIX_API@
|
||||||
|
RTEMS_HAS_RDBG = @RTEMS_HAS_RDBG@
|
||||||
|
RTEMS_HOST = @RTEMS_HOST@
|
||||||
|
RTEMS_LIBC_DIR = @RTEMS_LIBC_DIR@
|
||||||
|
RTEMS_ROOT = @RTEMS_ROOT@
|
||||||
|
RTEMS_TOPdir = @RTEMS_TOPdir@
|
||||||
|
RTEMS_USE_GCC272 = @RTEMS_USE_GCC272@
|
||||||
|
RTEMS_USE_MACROS = @RTEMS_USE_MACROS@
|
||||||
|
SED = @SED@
|
||||||
|
SORT = @SORT@
|
||||||
|
TOUCH = @TOUCH@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
program_prefix = @program_prefix@
|
||||||
|
rtems_cv_prog_cc_cross = @rtems_cv_prog_cc_cross@
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
rtems_makedir = $(prefix)/make
|
||||||
|
rtems_make_Templatesdir = $(rtems_makedir)/Templates
|
||||||
|
|
||||||
|
rtems_make_Templates_DATA = Makefile.dir Makefile.leaf Makefile.lib
|
||||||
|
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/../../../mkinstalldirs
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
DATA = $(rtems_make_Templates_DATA)
|
||||||
|
|
||||||
|
DIST_COMMON = Makefile.am Makefile.in
|
||||||
|
|
||||||
|
|
||||||
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = tar
|
||||||
|
GZIP_ENV = --best
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../../automake/local.am
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --foreign Templates/Makefile
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
|
||||||
|
install-rtems_make_TemplatesDATA: $(rtems_make_Templates_DATA)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(rtems_make_Templatesdir)
|
||||||
|
@list='$(rtems_make_Templates_DATA)'; for p in $$list; do \
|
||||||
|
if test -f $(srcdir)/$$p; then \
|
||||||
|
echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(rtems_make_Templatesdir)/$$p"; \
|
||||||
|
$(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(rtems_make_Templatesdir)/$$p; \
|
||||||
|
else if test -f $$p; then \
|
||||||
|
echo " $(INSTALL_DATA) $$p $(DESTDIR)$(rtems_make_Templatesdir)/$$p"; \
|
||||||
|
$(INSTALL_DATA) $$p $(DESTDIR)$(rtems_make_Templatesdir)/$$p; \
|
||||||
|
fi; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-rtems_make_TemplatesDATA:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
list='$(rtems_make_Templates_DATA)'; for p in $$list; do \
|
||||||
|
rm -f $(DESTDIR)$(rtems_make_Templatesdir)/$$p; \
|
||||||
|
done
|
||||||
|
tags: TAGS
|
||||||
|
TAGS:
|
||||||
|
|
||||||
|
|
||||||
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||||
|
|
||||||
|
subdir = Templates
|
||||||
|
|
||||||
|
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 Templates/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-exec: install-exec-am
|
||||||
|
|
||||||
|
install-data-am: install-rtems_make_TemplatesDATA
|
||||||
|
install-data: install-data-am
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
install: install-am
|
||||||
|
uninstall-am: uninstall-rtems_make_TemplatesDATA
|
||||||
|
uninstall: uninstall-am
|
||||||
|
all-am: Makefile $(DATA)
|
||||||
|
all-redirect: all-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs:
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(rtems_make_Templatesdir)
|
||||||
|
|
||||||
|
|
||||||
|
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-rtems_make_TemplatesDATA \
|
||||||
|
install-rtems_make_TemplatesDATA 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 \
|
||||||
|
mostlyclean-generic distclean-generic clean-generic \
|
||||||
|
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
debug-am:
|
||||||
|
debug: debug-am
|
||||||
|
.PHONY: debug debug-am
|
||||||
|
|
||||||
|
debug_install-am:
|
||||||
|
debug_install: debug_install-am
|
||||||
|
.PHONY: debug_install debug_install-am
|
||||||
|
|
||||||
|
profile-am:
|
||||||
|
profile: profile-am
|
||||||
|
.PHONY: profile profile-am
|
||||||
|
|
||||||
|
profile_install-am:
|
||||||
|
profile_install: profile_install-am
|
||||||
|
.PHONY: profile_install profile_install-am
|
||||||
|
|
||||||
|
preinstall-am:
|
||||||
|
preinstall: preinstall-am
|
||||||
|
.PHONY: preinstall preinstall-am
|
||||||
|
|
||||||
|
clobber-am:
|
||||||
|
clobber: clobber-am
|
||||||
|
.PHONY: clobber clobber-am
|
||||||
|
|
||||||
|
depend-am:
|
||||||
|
depend: depend-am
|
||||||
|
.PHONY: depend depend-am
|
||||||
|
|
||||||
|
# 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:
|
||||||
77
c/src/make/Templates/Makefile.leaf
Normal file
77
c/src/make/Templates/Makefile.leaf
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Templates/Makefile.leaf
|
||||||
|
# Template leaf node Makefile
|
||||||
|
#
|
||||||
|
|
||||||
|
# C source names, if any, go here -- minus the .c
|
||||||
|
C_PIECES=xxxd xxxe xxxf
|
||||||
|
C_FILES=$(C_PIECES:%=%.c)
|
||||||
|
C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
|
||||||
|
|
||||||
|
# C++ source names, if any, go here -- minus the .cc
|
||||||
|
CC_PIECES=xxxa xxxb xxxc
|
||||||
|
CC_FILES=$(CC_PIECES:%=%.cc)
|
||||||
|
CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o)
|
||||||
|
|
||||||
|
H_FILES=
|
||||||
|
|
||||||
|
# Assembly source names, if any, go here -- minus the .S
|
||||||
|
S_PIECES=
|
||||||
|
S_FILES=$(S_PIECES:%=%.S)
|
||||||
|
S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o)
|
||||||
|
|
||||||
|
SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)
|
||||||
|
OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
|
||||||
|
|
||||||
|
PGMS=${ARCH}/xxx-your-program-here ${ARCH}/xxx-another-one
|
||||||
|
|
||||||
|
# List of RTEMS managers to be included in the application goes here.
|
||||||
|
# Use:
|
||||||
|
# MANAGERS=all
|
||||||
|
# to include all RTEMS managers in the application.
|
||||||
|
MANAGERS=io event message rate_monotonic semaphore timer, etc.
|
||||||
|
|
||||||
|
|
||||||
|
include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
|
||||||
|
include $(RTEMS_ROOT)/make/leaf.cfg
|
||||||
|
|
||||||
|
#
|
||||||
|
# (OPTIONAL) Add local stuff here using +=
|
||||||
|
#
|
||||||
|
|
||||||
|
DEFINES +=
|
||||||
|
CPPFLAGS +=
|
||||||
|
CFLAGS +=
|
||||||
|
|
||||||
|
#
|
||||||
|
# CFLAGS_DEBUG_V are used when the `make debug' target is built.
|
||||||
|
# To link your application with the non-optimized RTEMS routines,
|
||||||
|
# uncomment the following line:
|
||||||
|
# CFLAGS_DEBUG_V += -qrtems_debug
|
||||||
|
#
|
||||||
|
|
||||||
|
LD_PATHS += xxx-your-EXTRA-library-paths-go-here, if any
|
||||||
|
LD_LIBS += xxx-your-libraries-go-here eg: -lvx
|
||||||
|
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 += xxx-your-debris-goes-here
|
||||||
|
CLOBBER_ADDITIONS +=
|
||||||
|
|
||||||
|
all: ${ARCH} $(SRCS) $(PGMS)
|
||||||
|
|
||||||
|
${ARCH}/xxx-your-program-here: ${OBJS} ${LINK_FILES}
|
||||||
|
$(make-exe)
|
||||||
|
|
||||||
|
# Install the program(s), appending _g or _p as appropriate.
|
||||||
|
# for include files, just use $(INSTALL_CHANGE)
|
||||||
|
install: all
|
||||||
|
$(INSTALL_VARIANT) -m 555 ${PGMS} ${PROJECT_RELEASE}/bin
|
||||||
59
c/src/make/Templates/Makefile.lib
Normal file
59
c/src/make/Templates/Makefile.lib
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Templates/Makefile.lib
|
||||||
|
# Template library Makefile
|
||||||
|
#
|
||||||
|
|
||||||
|
LIBNAME=libfoo.a # xxx- your library names goes here
|
||||||
|
LIB=${ARCH}/${LIBNAME}
|
||||||
|
|
||||||
|
# C and C++ source names, if any, go here -- minus the .c or .cc
|
||||||
|
C_PIECES=xxxd xxxe xxxf
|
||||||
|
C_FILES=$(C_PIECES:%=%.c)
|
||||||
|
C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
|
||||||
|
|
||||||
|
CC_PIECES=xxxa xxxb xxxc
|
||||||
|
CC_FILES=$(CC_PIECES:%=%.cc)
|
||||||
|
CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o)
|
||||||
|
|
||||||
|
H_FILES=
|
||||||
|
|
||||||
|
# Assembly source names, if any, go here -- minus the .S
|
||||||
|
S_PIECES=
|
||||||
|
S_FILES=$(S_PIECES:%=%.S)
|
||||||
|
S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o)
|
||||||
|
|
||||||
|
SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)
|
||||||
|
OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
|
||||||
|
|
||||||
|
include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
|
||||||
|
include $(RTEMS_ROOT)/make/lib.cfg
|
||||||
|
|
||||||
|
#
|
||||||
|
# Add local stuff here using +=
|
||||||
|
#
|
||||||
|
|
||||||
|
DEFINES +=
|
||||||
|
CPPFLAGS +=
|
||||||
|
CFLAGS +=
|
||||||
|
|
||||||
|
#
|
||||||
|
# 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 += xxx-your-debris-goes-here
|
||||||
|
CLOBBER_ADDITIONS +=
|
||||||
|
|
||||||
|
all: ${ARCH} $(SRCS) $(LIB)
|
||||||
|
|
||||||
|
$(LIB): ${OBJS}
|
||||||
|
$(make-library)
|
||||||
|
|
||||||
|
# Install the library, appending _g or _p as appropriate.
|
||||||
|
# for include files, just use $(INSTALL_CHANGE)
|
||||||
|
install: all
|
||||||
|
$(INSTALL_VARIANT) -m 644 ${LIB} ${PROJECT_RELEASE}/lib
|
||||||
954
c/src/make/aclocal.m4
vendored
Normal file
954
c/src/make/aclocal.m4
vendored
Normal file
@@ -0,0 +1,954 @@
|
|||||||
|
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$
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl RTEMS_TOP($1)
|
||||||
|
dnl
|
||||||
|
dnl $1 .. relative path from this configure.in to the toplevel configure.in
|
||||||
|
dnl
|
||||||
|
AC_DEFUN(RTEMS_TOP,
|
||||||
|
[dnl
|
||||||
|
AC_ARG_WITH(target-subdir,
|
||||||
|
[ --with-target-subdir=DIR],
|
||||||
|
TARGET_SUBDIR="$withval",
|
||||||
|
TARGET_SUBDIR=".")
|
||||||
|
|
||||||
|
RTEMS_TOPdir="$1";
|
||||||
|
AC_SUBST(RTEMS_TOPdir)
|
||||||
|
|
||||||
|
dnl Determine RTEMS Version string from the VERSION file
|
||||||
|
dnl Hopefully, Joel never changes its format ;-
|
||||||
|
AC_MSG_CHECKING([for RTEMS Version])
|
||||||
|
if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
|
||||||
|
changequote(,)dnl
|
||||||
|
RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
|
||||||
|
sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'`
|
||||||
|
changequote([,])dnl
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR(Unable to find ${RTEMS_TOPdir}/VERSION)
|
||||||
|
fi
|
||||||
|
if test -z "$RTEMS_VERSION"; then
|
||||||
|
AC_MSG_ERROR(Unable to determine version)
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($RTEMS_VERSION)
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
dnl canonicalize target cpu
|
||||||
|
dnl NOTE: Most rtems targets do not fullfil autoconf's
|
||||||
|
dnl target naming conventions "processor-vendor-os"
|
||||||
|
dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
|
||||||
|
dnl and we have to fix it for rtems ourselves
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
|
||||||
|
[
|
||||||
|
AC_CANONICAL_SYSTEM
|
||||||
|
AC_MSG_CHECKING(rtems target cpu)
|
||||||
|
changequote(,)dnl
|
||||||
|
case "${target}" in
|
||||||
|
# hpux unix port should go here
|
||||||
|
i[3456]86-go32-rtems*)
|
||||||
|
RTEMS_CPU=i386
|
||||||
|
;;
|
||||||
|
i[3456]86-pc-linux*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
i[3456]86-*freebsd2*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
no_cpu-*rtems*)
|
||||||
|
RTEMS_CPU=no_cpu
|
||||||
|
;;
|
||||||
|
sparc-sun-solaris*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
changequote([,])dnl
|
||||||
|
AC_SUBST(RTEMS_CPU)
|
||||||
|
AC_MSG_RESULT($RTEMS_CPU)
|
||||||
|
])
|
||||||
|
|
||||||
|
# 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)])
|
||||||
|
|
||||||
|
# Add --enable-maintainer-mode option to configure.
|
||||||
|
# From Jim Meyering
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
|
AC_DEFUN(AM_MAINTAINER_MODE,
|
||||||
|
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
||||||
|
dnl maintainer-mode is disabled by default
|
||||||
|
AC_ARG_ENABLE(maintainer-mode,
|
||||||
|
[ --enable-maintainer-mode enable make rules and dependencies not useful
|
||||||
|
(and sometimes confusing) to the casual installer],
|
||||||
|
USE_MAINTAINER_MODE=$enableval,
|
||||||
|
USE_MAINTAINER_MODE=no)
|
||||||
|
AC_MSG_RESULT($USE_MAINTAINER_MODE)
|
||||||
|
AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
|
||||||
|
MAINT=$MAINTAINER_MODE_TRUE
|
||||||
|
AC_SUBST(MAINT)dnl
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
# Define a conditional.
|
||||||
|
|
||||||
|
AC_DEFUN(AM_CONDITIONAL,
|
||||||
|
[AC_SUBST($1_TRUE)
|
||||||
|
AC_SUBST($1_FALSE)
|
||||||
|
if $2; then
|
||||||
|
$1_TRUE=
|
||||||
|
$1_FALSE='#'
|
||||||
|
else
|
||||||
|
$1_TRUE='#'
|
||||||
|
$1_FALSE=
|
||||||
|
fi])
|
||||||
|
|
||||||
|
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])
|
||||||
|
AC_SUBST(RTEMS_HAS_MULTIPROCESSING)dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
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])
|
||||||
|
AC_SUBST(RTEMS_HAS_POSIX_API)
|
||||||
|
|
||||||
|
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])
|
||||||
|
AC_SUBST(RTEMS_HAS_NETWORKING)dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
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])
|
||||||
|
AC_SUBST(RTEMS_HAS_RDBG)dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
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])
|
||||||
|
AC_SUBST(RTEMS_USE_MACROS)dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
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_SUBST(RTEMS_LIBC_DIR)dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
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 Override the set of BSPs to be built.
|
||||||
|
dnl used by the toplevel configure script
|
||||||
|
dnl RTEMS_ENABLE_RTEMSBSP(rtems_bsp_list)
|
||||||
|
AC_DEFUN(RTEMS_ENABLE_RTEMSBSP,
|
||||||
|
[
|
||||||
|
AC_ARG_ENABLE(rtemsbsp,
|
||||||
|
[ --enable-rtemsbsp=bsp1 bsp2 .. BSPs to include in build],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes|no) AC_MSG_ERROR([missing argument to --enable-rtemsbsp=\"bsp1 bsp2\"]);;
|
||||||
|
*) $1=$enableval;;
|
||||||
|
esac],[$1=""])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl Pass a single BSP via an environment variable
|
||||||
|
dnl used by per BSP configure scripts
|
||||||
|
AC_DEFUN(RTEMS_ENV_RTEMSBSP,
|
||||||
|
[dnl
|
||||||
|
AC_MSG_CHECKING([for RTEMS_BSP])
|
||||||
|
AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
|
||||||
|
[dnl
|
||||||
|
test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
|
||||||
|
])dnl
|
||||||
|
if test -z "$rtems_cv_RTEMS_BSP"; then
|
||||||
|
AC_MSG_ERROR([Missing RTEMS_BSP])
|
||||||
|
fi
|
||||||
|
RTEMS_BSP="$rtems_cv_RTEMS_BSP"
|
||||||
|
AC_MSG_RESULT(${RTEMS_BSP})
|
||||||
|
AC_SUBST(RTEMS_BSP)
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PATH_PERL,
|
||||||
|
[
|
||||||
|
AC_PATH_PROG(PERL,perl)
|
||||||
|
if test -z "$PERL" ; then
|
||||||
|
AC_MSG_WARN(
|
||||||
|
[***]
|
||||||
|
[ perl was not found]
|
||||||
|
[ Note: Some tools will not be built.])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
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
|
||||||
|
])
|
||||||
|
|
||||||
|
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 $RTEMS_CPU is supported])
|
||||||
|
if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_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 $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PROJECT_ROOT,
|
||||||
|
[dnl
|
||||||
|
AC_REQUIRE([RTEMS_TOP])
|
||||||
|
if test "$TARGET_SUBDIR" = "." ; then
|
||||||
|
PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)';
|
||||||
|
else
|
||||||
|
PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)'
|
||||||
|
fi
|
||||||
|
AC_SUBST(PROJECT_ROOT)
|
||||||
|
|
||||||
|
RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
|
||||||
|
AC_SUBST(RTEMS_ROOT)
|
||||||
|
|
||||||
|
INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change"
|
||||||
|
AC_SUBST(INSTALL_CHANGE)
|
||||||
|
|
||||||
|
PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex"
|
||||||
|
AC_SUBST(PACKHEX)
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Check for target gcc
|
||||||
|
dnl
|
||||||
|
dnl 98/05/20 Ralf Corsepius (corsepiu@faw.uni-ulm.de)
|
||||||
|
dnl Completely reworked
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PROG_CC,
|
||||||
|
[
|
||||||
|
AC_BEFORE([$0], [AC_PROG_CPP])dnl
|
||||||
|
AC_BEFORE([$0], [AC_PROG_CC])dnl
|
||||||
|
AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl
|
||||||
|
|
||||||
|
dnl Only accept gcc and cc
|
||||||
|
dnl NOTE: This might be too restrictive for native compilation
|
||||||
|
AC_PATH_PROGS(CC_FOR_TARGET, "$program_prefix"gcc "$program_prefix"cc )
|
||||||
|
test -z "$CC_FOR_TARGET" \
|
||||||
|
&& AC_MSG_ERROR([no acceptable cc found in \$PATH])
|
||||||
|
|
||||||
|
dnl backup
|
||||||
|
rtems_save_CC=$CC
|
||||||
|
rtems_save_CFLAGS=$CFLAGS
|
||||||
|
|
||||||
|
dnl temporarily set CC
|
||||||
|
CC=$CC_FOR_TARGET
|
||||||
|
|
||||||
|
AC_PROG_CC_WORKS
|
||||||
|
AC_PROG_CC_GNU
|
||||||
|
|
||||||
|
if test $ac_cv_prog_gcc = yes; then
|
||||||
|
GCC=yes
|
||||||
|
dnl Check whether -g works, even if CFLAGS is set, in case the package
|
||||||
|
dnl plays around with CFLAGS (such as to build both debugging and
|
||||||
|
dnl normal versions of a library), tasteless as that idea is.
|
||||||
|
ac_test_CFLAGS="${CFLAGS+set}"
|
||||||
|
ac_save_CFLAGS="$CFLAGS"
|
||||||
|
CFLAGS=
|
||||||
|
AC_PROG_CC_G
|
||||||
|
if test "$ac_test_CFLAGS" = set; then
|
||||||
|
CFLAGS="$ac_save_CFLAGS"
|
||||||
|
elif test $ac_cv_prog_cc_g = yes; then
|
||||||
|
CFLAGS="-g -O2"
|
||||||
|
else
|
||||||
|
CFLAGS="-O2"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
GCC=
|
||||||
|
test "${CFLAGS+set}" = set || CFLAGS="-g"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rtems_cv_prog_gcc=$ac_cv_prog_gcc
|
||||||
|
rtems_cv_prog_cc_g=$ac_cv_prog_cc_g
|
||||||
|
rtems_cv_prog_cc_works=$ac_cv_prog_cc_works
|
||||||
|
rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross
|
||||||
|
|
||||||
|
dnl restore initial values
|
||||||
|
CC=$rtems_save_CC
|
||||||
|
CFLAGS=$rtems_save_CFLAGS
|
||||||
|
|
||||||
|
unset ac_cv_prog_gcc
|
||||||
|
unset ac_cv_prog_cc_g
|
||||||
|
unset ac_cv_prog_cc_works
|
||||||
|
unset ac_cv_prog_cc_cross
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PROG_CC_FOR_TARGET,
|
||||||
|
[
|
||||||
|
dnl check target cc
|
||||||
|
RTEMS_PROG_CC
|
||||||
|
dnl check if the compiler supports --specs
|
||||||
|
RTEMS_GCC_SPECS
|
||||||
|
dnl check if the target compiler may use --pipe
|
||||||
|
RTEMS_GCC_PIPE
|
||||||
|
dnl check if the compiler supports --specs if gcc28 is requested
|
||||||
|
if test "$RTEMS_USE_GCC272" != "yes" ; then
|
||||||
|
if test "$rtems_cv_gcc_specs" = "no"; then
|
||||||
|
AC_MSG_WARN([*** disabling --enable-gcc28])
|
||||||
|
RTEMS_USE_GCC272=yes
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe"
|
||||||
|
|
||||||
|
dnl FIXME: HACK for egcs/cygwin mixing '\\' and '/' in gcc -print-*
|
||||||
|
case $host_os in
|
||||||
|
*cygwin*) GCCSED="| sed 's%\\\\%/%g'" ;;
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
|
AC_SUBST(GCCSED)
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Set program_prefix
|
||||||
|
dnl
|
||||||
|
dnl 98/05/20 Ralf Corsepius (corsepiu@faw.uni-ulm.de)
|
||||||
|
dnl Extracted from configure
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_TOOL_PREFIX,
|
||||||
|
[AC_REQUIRE([AC_CANONICAL_TARGET])dnl
|
||||||
|
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
||||||
|
|
||||||
|
changequote(,)dnl
|
||||||
|
if [ "${program_prefix}" = "NONE" ] ; then
|
||||||
|
if [ "${target}" = "${host}" ] ; then
|
||||||
|
program_prefix=
|
||||||
|
else
|
||||||
|
program_prefix=${target}-
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
changequote([,])dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Check whether the target compiler accepts -specs
|
||||||
|
dnl
|
||||||
|
dnl 98/02/11 Ralf Corsepius corsepiu@faw.uni-ulm.de
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_GCC_SPECS,
|
||||||
|
[AC_REQUIRE([RTEMS_PROG_CC])
|
||||||
|
AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts -specs,rtems_cv_gcc_specs,
|
||||||
|
[
|
||||||
|
rtems_cv_gcc_specs=no
|
||||||
|
if test "$rtems_cv_prog_gcc" = "yes"; then
|
||||||
|
touch confspec
|
||||||
|
echo 'void f(){}' >conftest.c
|
||||||
|
if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then
|
||||||
|
rtems_cv_gcc_specs=yes
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
rm -f confspec conftest*
|
||||||
|
])])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Check whether the target compiler accepts -pipe
|
||||||
|
dnl
|
||||||
|
dnl 98/02/11 Ralf Corsepius corsepiu@faw.uni-ulm.de
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_GCC_PIPE,
|
||||||
|
[AC_REQUIRE([RTEMS_PROG_CC])
|
||||||
|
AC_REQUIRE([AC_CANONICAL_HOST])
|
||||||
|
AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts --pipe,rtems_cv_gcc_pipe,
|
||||||
|
[
|
||||||
|
rtems_cv_gcc_pipe=no
|
||||||
|
if test "$rtems_cv_prog_gcc" = "yes"; then
|
||||||
|
case "$host_os" in
|
||||||
|
cygwin*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo 'void f(){}' >conftest.c
|
||||||
|
if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
|
||||||
|
rtems_cv_gcc_pipe=yes
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Check for target g++
|
||||||
|
dnl
|
||||||
|
dnl 98/05/20 Ralf Corsepius (corsepiu@faw.uni-ulm.de)
|
||||||
|
dnl Completely reworked
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PROG_CXX,
|
||||||
|
[
|
||||||
|
AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl
|
||||||
|
AC_BEFORE([$0], [AC_PROG_CXX])dnl
|
||||||
|
AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl
|
||||||
|
|
||||||
|
dnl Only accept g++ and c++
|
||||||
|
dnl NOTE: This might be too restrictive for native compilation
|
||||||
|
AC_PATH_PROGS(CXX_FOR_TARGET, "$program_prefix"g++ "$program_prefix"c++)
|
||||||
|
test -z "$CXX_FOR_TARGET" \
|
||||||
|
&& AC_MSG_ERROR([no acceptable c++ found in \$PATH])
|
||||||
|
|
||||||
|
dnl backup
|
||||||
|
rtems_save_CXX=$CXX
|
||||||
|
rtems_save_CXXFLAGS=$CXXFLAGS
|
||||||
|
|
||||||
|
dnl temporarily set CXX
|
||||||
|
CXX=$CXX_FOR_TARGET
|
||||||
|
|
||||||
|
AC_PROG_CXX_WORKS
|
||||||
|
AC_PROG_CXX_GNU
|
||||||
|
|
||||||
|
if test $ac_cv_prog_gxx = yes; then
|
||||||
|
GXX=yes
|
||||||
|
dnl Check whether -g works, even if CXXFLAGS is set, in case the package
|
||||||
|
dnl plays around with CXXFLAGS (such as to build both debugging and
|
||||||
|
dnl normal versions of a library), tasteless as that idea is.
|
||||||
|
ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
||||||
|
ac_save_CXXFLAGS="$CXXFLAGS"
|
||||||
|
CXXFLAGS=
|
||||||
|
AC_PROG_CXX_G
|
||||||
|
if test "$ac_test_CXXFLAGS" = set; then
|
||||||
|
CXXFLAGS="$ac_save_CXXFLAGS"
|
||||||
|
elif test $ac_cv_prog_cxx_g = yes; then
|
||||||
|
CXXFLAGS="-g -O2"
|
||||||
|
else
|
||||||
|
CXXFLAGS="-O2"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
GXX=
|
||||||
|
test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rtems_cv_prog_gxx=$ac_cv_prog_gxx
|
||||||
|
rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g
|
||||||
|
rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works
|
||||||
|
rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross
|
||||||
|
|
||||||
|
CXX=$rtems_save_CXX
|
||||||
|
CXXFLAGS=$rtems_save_CXXFLAGS
|
||||||
|
|
||||||
|
dnl restore initial values
|
||||||
|
unset ac_cv_prog_gxx
|
||||||
|
unset ac_cv_prog_cc_g
|
||||||
|
unset ac_cv_prog_cxx_works
|
||||||
|
unset ac_cv_prog_cxx_cross
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PROG_CXX_FOR_TARGET,
|
||||||
|
[
|
||||||
|
RTEMS_PROG_CXX
|
||||||
|
if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then
|
||||||
|
AC_MSG_ERROR([***]
|
||||||
|
[Inconsistency in compiler configuration:]
|
||||||
|
[Target C compiler and Target C++ compiler]
|
||||||
|
[must both either be cross compilers or native compilers]
|
||||||
|
[Hint: If building a posix bsp: LD_LIBRARY_PATH?] )
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Set target tools
|
||||||
|
dnl
|
||||||
|
dnl 98/06/23 Ralf Corsepius (corsepiu@faw.uni-ulm.de)
|
||||||
|
dnl fixing cache/environment variable handling
|
||||||
|
dnl adding checks for cygwin/egcs '\\'-bug
|
||||||
|
dnl adding checks for ranlib/ar -s problem
|
||||||
|
dnl
|
||||||
|
dnl 98/02/12 Ralf Corsepius (corsepiu@faw.uni-ulm.de)
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_GCC_PRINT,
|
||||||
|
[ case $host_os in
|
||||||
|
*cygwin*)
|
||||||
|
dnl FIXME: Hack for cygwin/egcs reporting mixed '\\' and '/'
|
||||||
|
dnl Should be removed once cygwin/egcs reports '/' only
|
||||||
|
$1=`$CC_FOR_TARGET --print-prog-name=$2 | sed -e 's%\\\\%/%g' `
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
$1=`$CC_FOR_TARGET --print-prog-name=$2`
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PATH_TOOL,
|
||||||
|
[
|
||||||
|
AC_MSG_CHECKING([target's $2])
|
||||||
|
AC_CACHE_VAL(ac_cv_path_$1,:)
|
||||||
|
AC_MSG_RESULT([$ac_cv_path_$1])
|
||||||
|
|
||||||
|
if test -n "$ac_cv_path_$1"; then
|
||||||
|
dnl retrieve the value from the cache
|
||||||
|
$1=$ac_cv_path_$1
|
||||||
|
else
|
||||||
|
dnl the cache was not set
|
||||||
|
if test -z "[$]$1" ; then
|
||||||
|
if test "$rtems_cv_prog_gcc" = "yes"; then
|
||||||
|
# We are using gcc, ask it about its tool
|
||||||
|
# NOTE: Necessary if gcc was configured to use the target's
|
||||||
|
# native tools or uses prefixes for gnutools (e.g. gas instead of as)
|
||||||
|
RTEMS_GCC_PRINT($1,$2)
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# The user set an environment variable.
|
||||||
|
# Check whether it is an absolute path, otherwise AC_PATH_PROG
|
||||||
|
# will override the environment variable, which isn't what the user
|
||||||
|
# intends
|
||||||
|
AC_MSG_CHECKING([whether environment variable $1 is an absolute path])
|
||||||
|
case "[$]$1" in
|
||||||
|
/*) # valid
|
||||||
|
AC_MSG_RESULT("yes")
|
||||||
|
;;
|
||||||
|
*) # invalid for AC_PATH_PROG
|
||||||
|
AC_MSG_RESULT("no")
|
||||||
|
AC_MSG_ERROR([***]
|
||||||
|
[Environment variable $1 should either]
|
||||||
|
[be unset (preferred) or contain an absolute path])
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_PATH_PROG($1,"$program_prefix"$2,$3)
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CANONICALIZE_TOOLS,
|
||||||
|
[AC_REQUIRE([RTEMS_PROG_CC])dnl
|
||||||
|
|
||||||
|
dnl FIXME: What shall be done if these tools are not available?
|
||||||
|
RTEMS_PATH_TOOL(AR_FOR_TARGET,ar,no)
|
||||||
|
RTEMS_PATH_TOOL(AS_FOR_TARGET,as,no)
|
||||||
|
RTEMS_PATH_TOOL(LD_FOR_TARGET,ld,no)
|
||||||
|
RTEMS_PATH_TOOL(NM_FOR_TARGET,nm,no)
|
||||||
|
|
||||||
|
dnl special treatment of ranlib
|
||||||
|
RTEMS_PATH_TOOL(RANLIB_FOR_TARGET,ranlib,no)
|
||||||
|
if test "$RANLIB_FOR_TARGET" = "no"; then
|
||||||
|
# ranlib wasn't found; check if ar -s is available
|
||||||
|
RTEMS_AR_FOR_TARGET_S
|
||||||
|
if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then
|
||||||
|
dnl override RANLIB_FOR_TARGET's cache
|
||||||
|
ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s"
|
||||||
|
RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([***]
|
||||||
|
[Can't figure out how to build a library index]
|
||||||
|
[Neither ranlib nor ar -s seem to be available] )
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl NOTE: These may not be available if not using gnutools
|
||||||
|
RTEMS_PATH_TOOL(OBJCOPY_FOR_TARGET,objcopy,no)
|
||||||
|
RTEMS_PATH_TOOL(SIZE_FOR_TARGET,size,no)
|
||||||
|
RTEMS_PATH_TOOL(STRIP_FOR_TARGET,strip,no)
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_AR_FOR_TARGET_S,
|
||||||
|
[
|
||||||
|
AC_CACHE_CHECK(whether $AR_FOR_TARGET -s works,
|
||||||
|
rtems_cv_AR_FOR_TARGET_S,
|
||||||
|
[
|
||||||
|
cat > conftest.$ac_ext <<EOF
|
||||||
|
int foo( int b )
|
||||||
|
{ return b; }
|
||||||
|
EOF
|
||||||
|
if AC_TRY_COMMAND($CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext) \
|
||||||
|
&& AC_TRY_COMMAND($AR_FOR_TARGET -sr conftest.a conftest.o) \
|
||||||
|
&& test -s conftest.a ; \
|
||||||
|
then
|
||||||
|
rtems_cv_AR_FOR_TARGET_S="yes"
|
||||||
|
else
|
||||||
|
rtems_cv_AR_FOR_TARGET_S="no"
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
dnl check for i386 gas supporting 16 bit mode
|
||||||
|
dnl - binutils 2.9.1.0.7 and higher
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_I386_GAS_CODE16,
|
||||||
|
[ if test "${target_cpu}" = "i386"; then
|
||||||
|
AC_CACHE_CHECK([for 16 bit mode assembler support],
|
||||||
|
rtems_cv_prog_gas_code16,
|
||||||
|
[cat > conftest.s << EOF
|
||||||
|
.code16
|
||||||
|
data32
|
||||||
|
addr32
|
||||||
|
lgdt 0
|
||||||
|
EOF
|
||||||
|
if AC_TRY_COMMAND($AS_FOR_TARGET -o conftest.o conftest.s); then
|
||||||
|
rtems_cv_prog_gas_code16=yes
|
||||||
|
else
|
||||||
|
rtems_cv_prog_gas_code16=no
|
||||||
|
fi])
|
||||||
|
RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16"
|
||||||
|
fi
|
||||||
|
AC_SUBST(RTEMS_GAS_CODE16)
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
dnl Report all available bsps for a target,
|
||||||
|
dnl check if a bsp-subdirectory is present for all bsps found
|
||||||
|
dnl
|
||||||
|
dnl RTEMS_CHECK_BSPS(bsp_list)
|
||||||
|
AC_DEFUN(RTEMS_CHECK_BSPS,
|
||||||
|
[
|
||||||
|
AC_REQUIRE([RTEMS_CHECK_CPU])dnl sets RTEMS_CPU, target
|
||||||
|
AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
|
||||||
|
AC_MSG_CHECKING([for bsps])
|
||||||
|
case "${target}" in
|
||||||
|
changequote(,)dnl
|
||||||
|
i[3456]86-go32-rtems*)
|
||||||
|
changequote([,])dnl
|
||||||
|
$1="go32 go32_p5"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
files=`ls $srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU`
|
||||||
|
for file in $files; do
|
||||||
|
case $file in
|
||||||
|
shared*);;
|
||||||
|
Makefile*);;
|
||||||
|
READ*);;
|
||||||
|
CVS*);;
|
||||||
|
pxfl*);;
|
||||||
|
go32*);; # so the i386 port can pick up the other Makefiles
|
||||||
|
# Now account for BSPs with build variants
|
||||||
|
gen68360) rtems_bsp="$rtems_bsp gen68360 gen68360_040";;
|
||||||
|
p4000) rtems_bsp="$rtems_bsp p4600 p4650";;
|
||||||
|
mvme162) rtems_bsp="$rtems_bsp mvme162 mvme162lx";;
|
||||||
|
*) $1="[$]$1 $file";;
|
||||||
|
esac;
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
AC_MSG_RESULT([[$]$1 .. done])
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CHECK_CUSTOM_BSP,
|
||||||
|
[dnl
|
||||||
|
AC_MSG_CHECKING([for make/custom/[$]$1.cfg])
|
||||||
|
if test -r "$srcdir/$RTEMS_TOPdir/make/custom/[$]$1.cfg"; then
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([no])
|
||||||
|
fi
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CHECK_RDBG,
|
||||||
|
[dnl
|
||||||
|
AC_REQUIRE([RTEMS_TOP])dnl
|
||||||
|
AC_REQUIRE([RTEMS_CHECK_CPU])dnl
|
||||||
|
AC_CACHE_CHECK([whether cpu supports librdbg],
|
||||||
|
rtems_cv_has_rdbg,
|
||||||
|
[
|
||||||
|
if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/librdbg/${RTEMS_CPU}"; then
|
||||||
|
rtems_cv_has_rdbg="yes" ;
|
||||||
|
else
|
||||||
|
rtems_cv_has_rdbg="no";
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
21
c/src/make/compilers/Makefile.am
Normal file
21
c/src/make/compilers/Makefile.am
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
rtems_makedir=$(prefix)/make
|
||||||
|
rtems_make_compilersdir=$(rtems_makedir)/compilers
|
||||||
|
|
||||||
|
# At the moment all actively supported configurations
|
||||||
|
# use gcc-target-default.cfg only.
|
||||||
|
rtems_make_compilers_DATA= \
|
||||||
|
gcc.cfg \
|
||||||
|
gcc-target-default.cfg
|
||||||
|
|
||||||
|
if MAINTAINER_MODE
|
||||||
|
$(srcdir)/gcc.cfg.in: $(top_srcdir)/@RTEMS_TOPdir@/make/compilers/gcc.cfg.in
|
||||||
|
cp $< $@
|
||||||
|
endif
|
||||||
|
|
||||||
|
include $(top_srcdir)/../../../automake/local.am
|
||||||
293
c/src/make/compilers/Makefile.in
Normal file
293
c/src/make/compilers/Makefile.in
Normal file
@@ -0,0 +1,293 @@
|
|||||||
|
# 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$
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
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_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_triplet = @build@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
target_triplet = @target@
|
||||||
|
BARE_CPU_CFLAGS = @BARE_CPU_CFLAGS@
|
||||||
|
BARE_CPU_MODEL = @BARE_CPU_MODEL@
|
||||||
|
CAT = @CAT@
|
||||||
|
CC = @CC@
|
||||||
|
CC_CFLAGS_DEBUG_V = @CC_CFLAGS_DEBUG_V@
|
||||||
|
CC_CFLAGS_DEFAULT = @CC_CFLAGS_DEFAULT@
|
||||||
|
CC_CFLAGS_PROFILE_V = @CC_CFLAGS_PROFILE_V@
|
||||||
|
CC_FOR_TARGET = @CC_FOR_TARGET@
|
||||||
|
CC_LDFLAGS_PROFILE_V = @CC_LDFLAGS_PROFILE_V@
|
||||||
|
CHMOD = @CHMOD@
|
||||||
|
CMP = @CMP@
|
||||||
|
CP = @CP@
|
||||||
|
CPP = @CPP@
|
||||||
|
CUSTOM_CFG_FILES = @CUSTOM_CFG_FILES@
|
||||||
|
CXX = @CXX@
|
||||||
|
CXXCPP = @CXXCPP@
|
||||||
|
CXX_FOR_TARGET = @CXX_FOR_TARGET@
|
||||||
|
GCCSED = @GCCSED@
|
||||||
|
INSTALL_CHANGE = @INSTALL_CHANGE@
|
||||||
|
KSH = @KSH@
|
||||||
|
LN = @LN@
|
||||||
|
LN_S = @LN_S@
|
||||||
|
M4 = @M4@
|
||||||
|
MAINT = @MAINT@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
MV = @MV@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
PACKHEX = @PACKHEX@
|
||||||
|
PERL = @PERL@
|
||||||
|
PROJECT_ROOT = @PROJECT_ROOT@
|
||||||
|
RM = @RM@
|
||||||
|
RTEMS_BSP = @RTEMS_BSP@
|
||||||
|
RTEMS_CPU = @RTEMS_CPU@
|
||||||
|
RTEMS_GAS_CODE16 = @RTEMS_GAS_CODE16@
|
||||||
|
RTEMS_HAS_CPLUSPLUS = @RTEMS_HAS_CPLUSPLUS@
|
||||||
|
RTEMS_HAS_MULTIPROCESSING = @RTEMS_HAS_MULTIPROCESSING@
|
||||||
|
RTEMS_HAS_NETWORKING = @RTEMS_HAS_NETWORKING@
|
||||||
|
RTEMS_HAS_POSIX_API = @RTEMS_HAS_POSIX_API@
|
||||||
|
RTEMS_HAS_RDBG = @RTEMS_HAS_RDBG@
|
||||||
|
RTEMS_HOST = @RTEMS_HOST@
|
||||||
|
RTEMS_LIBC_DIR = @RTEMS_LIBC_DIR@
|
||||||
|
RTEMS_ROOT = @RTEMS_ROOT@
|
||||||
|
RTEMS_TOPdir = @RTEMS_TOPdir@
|
||||||
|
RTEMS_USE_GCC272 = @RTEMS_USE_GCC272@
|
||||||
|
RTEMS_USE_MACROS = @RTEMS_USE_MACROS@
|
||||||
|
SED = @SED@
|
||||||
|
SORT = @SORT@
|
||||||
|
TOUCH = @TOUCH@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
program_prefix = @program_prefix@
|
||||||
|
rtems_cv_prog_cc_cross = @rtems_cv_prog_cc_cross@
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
rtems_makedir = $(prefix)/make
|
||||||
|
rtems_make_compilersdir = $(rtems_makedir)/compilers
|
||||||
|
|
||||||
|
# At the moment all actively supported configurations
|
||||||
|
# use gcc-target-default.cfg only.
|
||||||
|
rtems_make_compilers_DATA = gcc.cfg gcc-target-default.cfg
|
||||||
|
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/../../../mkinstalldirs
|
||||||
|
CONFIG_CLEAN_FILES = gcc.cfg
|
||||||
|
DATA = $(rtems_make_compilers_DATA)
|
||||||
|
|
||||||
|
DIST_COMMON = Makefile.am Makefile.in gcc.cfg.in
|
||||||
|
|
||||||
|
|
||||||
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = tar
|
||||||
|
GZIP_ENV = --best
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../../automake/local.am
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --foreign compilers/Makefile
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
gcc.cfg: $(top_builddir)/config.status gcc.cfg.in
|
||||||
|
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
install-rtems_make_compilersDATA: $(rtems_make_compilers_DATA)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(rtems_make_compilersdir)
|
||||||
|
@list='$(rtems_make_compilers_DATA)'; for p in $$list; do \
|
||||||
|
if test -f $(srcdir)/$$p; then \
|
||||||
|
echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(rtems_make_compilersdir)/$$p"; \
|
||||||
|
$(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(rtems_make_compilersdir)/$$p; \
|
||||||
|
else if test -f $$p; then \
|
||||||
|
echo " $(INSTALL_DATA) $$p $(DESTDIR)$(rtems_make_compilersdir)/$$p"; \
|
||||||
|
$(INSTALL_DATA) $$p $(DESTDIR)$(rtems_make_compilersdir)/$$p; \
|
||||||
|
fi; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-rtems_make_compilersDATA:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
list='$(rtems_make_compilers_DATA)'; for p in $$list; do \
|
||||||
|
rm -f $(DESTDIR)$(rtems_make_compilersdir)/$$p; \
|
||||||
|
done
|
||||||
|
tags: TAGS
|
||||||
|
TAGS:
|
||||||
|
|
||||||
|
|
||||||
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||||
|
|
||||||
|
subdir = compilers
|
||||||
|
|
||||||
|
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 compilers/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-exec: install-exec-am
|
||||||
|
|
||||||
|
install-data-am: install-rtems_make_compilersDATA
|
||||||
|
install-data: install-data-am
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
install: install-am
|
||||||
|
uninstall-am: uninstall-rtems_make_compilersDATA
|
||||||
|
uninstall: uninstall-am
|
||||||
|
all-am: Makefile $(DATA)
|
||||||
|
all-redirect: all-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs:
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(rtems_make_compilersdir)
|
||||||
|
|
||||||
|
|
||||||
|
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-rtems_make_compilersDATA \
|
||||||
|
install-rtems_make_compilersDATA 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 \
|
||||||
|
mostlyclean-generic distclean-generic clean-generic \
|
||||||
|
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
@MAINTAINER_MODE_TRUE@$(srcdir)/gcc.cfg.in: $(top_srcdir)/@RTEMS_TOPdir@/make/compilers/gcc.cfg.in
|
||||||
|
@MAINTAINER_MODE_TRUE@ cp $< $@
|
||||||
|
|
||||||
|
debug-am:
|
||||||
|
debug: debug-am
|
||||||
|
.PHONY: debug debug-am
|
||||||
|
|
||||||
|
debug_install-am:
|
||||||
|
debug_install: debug_install-am
|
||||||
|
.PHONY: debug_install debug_install-am
|
||||||
|
|
||||||
|
profile-am:
|
||||||
|
profile: profile-am
|
||||||
|
.PHONY: profile profile-am
|
||||||
|
|
||||||
|
profile_install-am:
|
||||||
|
profile_install: profile_install-am
|
||||||
|
.PHONY: profile_install profile_install-am
|
||||||
|
|
||||||
|
preinstall-am:
|
||||||
|
preinstall: preinstall-am
|
||||||
|
.PHONY: preinstall preinstall-am
|
||||||
|
|
||||||
|
clobber-am:
|
||||||
|
clobber: clobber-am
|
||||||
|
.PHONY: clobber clobber-am
|
||||||
|
|
||||||
|
depend-am:
|
||||||
|
depend: depend-am
|
||||||
|
.PHONY: depend depend-am
|
||||||
|
|
||||||
|
# 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:
|
||||||
203
c/src/make/compilers/gcc.cfg.in
Normal file
203
c/src/make/compilers/gcc.cfg.in
Normal file
@@ -0,0 +1,203 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# gcc 2.6.x native compiler
|
||||||
|
# Compiler (and tools) configuration
|
||||||
|
#
|
||||||
|
|
||||||
|
# Additional target names (other than debug, profile)
|
||||||
|
TARGET_VARIANTS +=
|
||||||
|
|
||||||
|
#
|
||||||
|
# Pre-processor defines.
|
||||||
|
# Local tailoring (on the command line) can be done by setting XCPPFLAGS
|
||||||
|
# which is never set in the Makefile's
|
||||||
|
#
|
||||||
|
|
||||||
|
CPPFLAGS=$(XCPPFLAGS) $(DEFINES)
|
||||||
|
|
||||||
|
#
|
||||||
|
# Local tailoring (on the command line) can be done by setting CFLAGS
|
||||||
|
# which is never set in the Makefile's
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V, CFLAGS_PROFILE_V are the values we
|
||||||
|
# would want the corresponding macros to be set to.
|
||||||
|
#
|
||||||
|
# CFLAGS_OPTIMIZE, CFLAGS_DEBUG, CFLAGS_PROFILE are set in the leaf
|
||||||
|
# Makefiles by the 'debug:' and 'profile:' targets to their _V values.
|
||||||
|
#
|
||||||
|
|
||||||
|
# default flags
|
||||||
|
|
||||||
|
CFLAGS_DEFAULT = @CC_CFLAGS_DEFAULT@
|
||||||
|
|
||||||
|
# Under MS-DOS do not use pipes
|
||||||
|
# It turns out the pipes don't work with some non-gas assemblers either. :(
|
||||||
|
# ifneq ($(RTEMS_HOST),msdos)
|
||||||
|
# # CFLAGS_DEFAULT += -pipe
|
||||||
|
# CFLAGS_DEFAULT +=
|
||||||
|
# endif
|
||||||
|
|
||||||
|
# Additional target names (other than debug, profile)
|
||||||
|
|
||||||
|
# optimize flag: typically -0, could use -O4 or -fast
|
||||||
|
# -O4 is ok for RTEMS
|
||||||
|
CFLAGS_OPTIMIZE_V=-O
|
||||||
|
|
||||||
|
# debug flag; typically -g
|
||||||
|
CFLAGS_DEBUG_V=@CC_CFLAGS_DEBUG_V@
|
||||||
|
|
||||||
|
# when debugging, optimize flag: typically empty
|
||||||
|
# some compilers do allow optimization with their "-g"
|
||||||
|
CFLAGS_DEBUG_OPTIMIZE_V=
|
||||||
|
|
||||||
|
# profile flag; use gprof(1)
|
||||||
|
CFLAGS_PROFILE_V=@CC_CFLAGS_PROFILE_V@
|
||||||
|
|
||||||
|
# default is to optimize
|
||||||
|
CFLAGS_OPTIMIZE=$(CFLAGS_OPTIMIZE_V)
|
||||||
|
|
||||||
|
# dynamic libraries
|
||||||
|
CFLAGS_DYNAMIC_V=-fpic
|
||||||
|
ASFLAGS_DYNAMIC_V=
|
||||||
|
|
||||||
|
# XCFLAGS are now local flags to avoid conflict with cygnus configure
|
||||||
|
XCFLAGS=$(CFLAGS_OPTIMIZE) $(CFLAGS_DEBUG) $(CFLAGS_PROFILE) \
|
||||||
|
$(CFLAGS_DEFAULT)
|
||||||
|
|
||||||
|
# List of library paths without -L
|
||||||
|
LD_PATHS=
|
||||||
|
|
||||||
|
# libraries you want EVERYONE to link with
|
||||||
|
LD_LIBS=
|
||||||
|
|
||||||
|
# ld flag to ensure pure-text
|
||||||
|
LDFLAGS_MUST_BE_PURE_V =
|
||||||
|
|
||||||
|
# ld flag for [un]shared objects
|
||||||
|
LDFLAGS_STATIC_LIBRARIES_V =
|
||||||
|
LDFLAGS_SHARED_LIBRARIES_V =
|
||||||
|
|
||||||
|
# ld flag for incomplete link
|
||||||
|
LDFLAGS_INCOMPLETE = -r
|
||||||
|
|
||||||
|
# Special linker options when building lib.so
|
||||||
|
LDFLAGS_DYNAMIC_V = ??
|
||||||
|
|
||||||
|
# Some dynamic linking systems want the preferred name recorded in the binary
|
||||||
|
# ref: src/libxil/Makefile
|
||||||
|
LDFLAGS_DYNAMIC_LIBNAME_V = -h $(DYNAMIC_VERSION_LIBNAME)
|
||||||
|
|
||||||
|
# ld flags for profiling, debugging
|
||||||
|
LDFLAGS_PROFILE_V = @CC_LDFLAGS_PROFILE_V@
|
||||||
|
LDFLAGS_DEBUG_V =
|
||||||
|
|
||||||
|
LDFLAGS=$(LDFLAGS_PROFILE) $(LDFLAGS_DEBUG) $(LD_PATHS:%=-L %)
|
||||||
|
|
||||||
|
#
|
||||||
|
# Stuff to clean and clobber for the compiler and its tools
|
||||||
|
#
|
||||||
|
|
||||||
|
CLEAN_CC = a.out *.o *.BAK
|
||||||
|
CLOBBER_CC =
|
||||||
|
|
||||||
|
#
|
||||||
|
# Client compiler and support tools
|
||||||
|
#
|
||||||
|
|
||||||
|
# CC_FOR_BUILD=gcc -O
|
||||||
|
# override CC=$(CC_FOR_BUILD)
|
||||||
|
|
||||||
|
CC=@CC@
|
||||||
|
|
||||||
|
# CPP command to write file to standard output
|
||||||
|
CPP=$(CC) -E
|
||||||
|
|
||||||
|
# flags set by cc when running cpp
|
||||||
|
CPP_CC_FLAGS=-D__STDC__
|
||||||
|
|
||||||
|
# egrep regexp to ignore symbol table entries in ar archives.
|
||||||
|
# Only used to make sure we skip them when coalescing libraries.
|
||||||
|
# skip __.SYMDEF and empty names (maybe bug in ranlib??).
|
||||||
|
AR_SYMBOL_TABLE="HIGHLY-UNLIKELY-TO-CONFLICT"
|
||||||
|
ARFLAGS=ruv
|
||||||
|
|
||||||
|
#
|
||||||
|
# Command to convert a normal archive to one searchable by $(LD)
|
||||||
|
# Not needed on SVR4
|
||||||
|
# FIXME: Should be handled by autoconf. Doesn't matter, because
|
||||||
|
# rtems doesn't have any host-libraries until now.
|
||||||
|
#
|
||||||
|
|
||||||
|
MKLIB=echo library is complete:
|
||||||
|
|
||||||
|
#
|
||||||
|
# How to compile stuff into ${ARCH} subdirectory
|
||||||
|
#
|
||||||
|
# NOTE: we override COMPILE.c
|
||||||
|
#
|
||||||
|
|
||||||
|
COMPILE.c=$(CC) $(CFLAGS) $(CPPFLAGS) $(XCFLAGS) -c
|
||||||
|
|
||||||
|
${ARCH}/%.o: %.c
|
||||||
|
${COMPILE.c} -o $@ $<
|
||||||
|
|
||||||
|
${ARCH}/%.o: %.cc
|
||||||
|
${COMPILE.c} -o $@ $<
|
||||||
|
|
||||||
|
# assembly runs gasp
|
||||||
|
${ARCH}/%.o: %.s
|
||||||
|
$(CPP) ${CPPFLAGS} $< | $(SED) 's/% /%/g' | $(SED) 's/^#.*//' >$(ARCH)/$*.i
|
||||||
|
$(AS) -o $@ $(ARCH)/$*.i
|
||||||
|
$(RM) $(ARCH)/$*.i
|
||||||
|
|
||||||
|
# Link host applications.
|
||||||
|
define make-exe
|
||||||
|
${CC} ${LDFLAGS} -o $@ $^ ${LD_LIBS}
|
||||||
|
endef
|
||||||
|
|
||||||
|
# Specify our own default rule for this to prevent having CFLAGS and
|
||||||
|
# CPPFLAGS being passed to linker
|
||||||
|
#
|
||||||
|
# NOTE: This rule is only used as fallback for host-tool makefiles
|
||||||
|
# which don't provide their own rule
|
||||||
|
${ARCH}/%$(EXEEXT): ${ARCH}/%.o
|
||||||
|
$(make-exe)
|
||||||
|
|
||||||
|
# create $(ARCH)/pgm from pgm.sh
|
||||||
|
${ARCH}/%: %.sh
|
||||||
|
$(RM) $@
|
||||||
|
$(CP) $< $@
|
||||||
|
$(CHMOD) +x $@
|
||||||
|
|
||||||
|
# Dependency files for use by gmake
|
||||||
|
# NOTE: we don't put in $(TARGET_ARCH)
|
||||||
|
# so that 'make clean' doesn't blow it away
|
||||||
|
|
||||||
|
DEPEND=Depends-$(TARGET_ARCH:o-%=%)
|
||||||
|
|
||||||
|
CLEAN_DEPEND=$(DEPEND).tmp
|
||||||
|
CLOBBER_DEPEND=$(DEPEND)
|
||||||
|
|
||||||
|
# We deliberately don't have anything depend on the
|
||||||
|
# $(DEPEND) file; otherwise it will get rebuilt even
|
||||||
|
# on 'make clean'
|
||||||
|
#
|
||||||
|
|
||||||
|
depend: $(C_FILES) $(CC_FILES) $(S_FILES)
|
||||||
|
ifneq ($(words $(C_FILES) $(CC_FILES) $(S_FILES)), 0)
|
||||||
|
# Use gcc -M to generate dependencies
|
||||||
|
# Replace foo.o with $(ARCH)/foo.o
|
||||||
|
# Replace $(ARCH) value with string $(ARCH)
|
||||||
|
# so that it will for debug and profile cases
|
||||||
|
$(COMPILE.c) -M $^ | \
|
||||||
|
$(SED) -e 's?^\(.*\)\.o[ ]*:?$$(ARCH)/\1.o:?' \
|
||||||
|
-e 's?$(ARCH)/?$$(ARCH)/?' >$(DEPEND).tmp
|
||||||
|
$(MV) $(DEPEND).tmp $(DEPEND)
|
||||||
|
endif
|
||||||
|
|
||||||
|
define make-rel
|
||||||
|
$(LD) $(LDFLAGS_INCOMPLETE) $(XLDFLAGS) -o $@ $(OBJS)
|
||||||
|
endef
|
||||||
3399
c/src/make/configure
vendored
Normal file
3399
c/src/make/configure
vendored
Normal file
File diff suppressed because it is too large
Load Diff
139
c/src/make/configure.in
Normal file
139
c/src/make/configure.in
Normal file
@@ -0,0 +1,139 @@
|
|||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl This script configures the configuration files below make/
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_PREREQ(2.13)
|
||||||
|
AC_INIT(main.cfg.in)
|
||||||
|
RTEMS_TOP(../../..)
|
||||||
|
AC_CONFIG_AUX_DIR(../../..)
|
||||||
|
|
||||||
|
AC_PROG_MAKE_SET
|
||||||
|
RTEMS_CANONICAL_TARGET_CPU
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE(rtems-c-src-make,$RTEMS_VERSION,no)
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
RTEMS_ENABLE_MULTIPROCESSING
|
||||||
|
RTEMS_ENABLE_POSIX
|
||||||
|
RTEMS_ENABLE_NETWORKING
|
||||||
|
RTEMS_ENABLE_RDBG
|
||||||
|
RTEMS_ENABLE_INLINES
|
||||||
|
RTEMS_ENABLE_CXX
|
||||||
|
RTEMS_ENABLE_GCC28
|
||||||
|
RTEMS_ENABLE_LIBCDIR
|
||||||
|
RTEMS_ENABLE_BARE
|
||||||
|
dnl RTEMS_ENABLE_RTEMSBSP
|
||||||
|
|
||||||
|
RTEMS_ENV_RTEMSBSP
|
||||||
|
|
||||||
|
dnl BEGIN configure.host.in
|
||||||
|
|
||||||
|
AC_PATH_PROG(CAT,cat)
|
||||||
|
AC_PATH_PROG(RM,rm)
|
||||||
|
AC_PATH_PROG(CP,cp)
|
||||||
|
AC_PATH_PROG(MV,mv)
|
||||||
|
AC_PATH_PROG(LN,ln)
|
||||||
|
AC_PROG_LN_S
|
||||||
|
AC_PATH_PROG(CHMOD,chmod)
|
||||||
|
AC_PATH_PROG(SORT,sort)
|
||||||
|
AC_PROG_INSTALL
|
||||||
|
RTEMS_PATH_PERL
|
||||||
|
|
||||||
|
AC_PATH_PROG(TOUCH,touch)
|
||||||
|
AC_PATH_PROG(CMP,cmp)
|
||||||
|
|
||||||
|
AC_PATH_PROG(SED,sed)
|
||||||
|
AC_PATH_PROGS(M4,gm4 m4)
|
||||||
|
|
||||||
|
RTEMS_PATH_KSH
|
||||||
|
|
||||||
|
dnl BEGIN configure.target.in
|
||||||
|
|
||||||
|
RTEMS_CHECK_CPU
|
||||||
|
RTEMS_CANONICAL_HOST
|
||||||
|
|
||||||
|
RTEMS_PROJECT_ROOT
|
||||||
|
|
||||||
|
dnl check target cc
|
||||||
|
RTEMS_PROG_CC_FOR_TARGET
|
||||||
|
|
||||||
|
dnl check for g++
|
||||||
|
if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
|
||||||
|
RTEMS_PROG_CXX_FOR_TARGET
|
||||||
|
fi
|
||||||
|
|
||||||
|
RTEMS_CANONICALIZE_TOOLS
|
||||||
|
|
||||||
|
dnl if this is an i386, does gas have good code16 support?
|
||||||
|
RTEMS_I386_GAS_CODE16
|
||||||
|
|
||||||
|
dnl RTEMS_CHECK_BSPS(rtems_bsp)
|
||||||
|
|
||||||
|
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
|
||||||
|
|
||||||
|
if test "$RTEMS_HAS_RDBG" = "yes"; then
|
||||||
|
RTEMS_CHECK_RDBG
|
||||||
|
RTEMS_HAS_RDBG="$rtems_cv_has_rdbg";
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl END configure.target.in
|
||||||
|
|
||||||
|
AC_SUBST(rtems_cv_prog_cc_cross)
|
||||||
|
AC_SUBST(RTEMS_HAS_CPLUSPLUS)
|
||||||
|
AC_SUBST(RTEMS_USE_GCC272)
|
||||||
|
AC_SUBST(BARE_CPU_CFLAGS)
|
||||||
|
AC_SUBST(BARE_CPU_MODEL)
|
||||||
|
AC_SUBST(program_prefix)
|
||||||
|
AC_SUBST(CC_CFLAGS_DEFAULT)
|
||||||
|
AC_SUBST(CC_CFLAGS_DEBUG_V)
|
||||||
|
AC_SUBST(CC_CFLAGS_PROFILE_V)
|
||||||
|
AC_SUBST(CC_LDFLAGS_PROFILE_V)
|
||||||
|
|
||||||
|
# Collect the files needed to build a BSP
|
||||||
|
cfg_dir="${RTEMS_TOPdir}/make"
|
||||||
|
cfg_srcs=""
|
||||||
|
cfg_dsts=""
|
||||||
|
CUSTOM_CFG_FILES=""
|
||||||
|
f="${RTEMS_BSP}.cfg"
|
||||||
|
while test -n "$f"; do
|
||||||
|
if test -r "${srcdir}/${cfg_dir}/custom/$f"; then
|
||||||
|
cfg_srcs="$cfg_srcs ${cfg_dir}/custom/$f"
|
||||||
|
cfg_dsts="$cfg_dsts custom/$f"
|
||||||
|
CUSTOM_CFG_FILES="$CUSTOM_CFG_FILES $f"
|
||||||
|
f=`grep "^include.*make/custom" ${srcdir}/${cfg_dir}/custom/$f \
|
||||||
|
| sed \
|
||||||
|
-e 's%^.*custom\/%%' \
|
||||||
|
-e s%\$\(RTEMS_HOST\)%${RTEMS_HOST}% \
|
||||||
|
-e 's%default\.cfg%%'`;
|
||||||
|
else break; fi;
|
||||||
|
done
|
||||||
|
AC_SUBST(CUSTOM_CFG_FILES)
|
||||||
|
|
||||||
|
# Symlink the *.cfg files from the toplevel make directory into the build
|
||||||
|
# trees c/<bsp>/make subdirectories
|
||||||
|
AC_LINK_FILES($cfg_srcs,$cfg_dsts)
|
||||||
|
AC_LINK_FILES($cfg_dir/Templates/Makefile.lib,Templates/Makefile.lib)
|
||||||
|
AC_LINK_FILES($cfg_dir/Templates/Makefile.leaf,Templates/Makefile.leaf)
|
||||||
|
AC_LINK_FILES($cfg_dir/Templates/Makefile.dir,Templates/Makefile.dir)
|
||||||
|
AC_LINK_FILES($cfg_dir/compilers/gcc-target-default.cfg,compilers/gcc-target-default.cfg)
|
||||||
|
AC_LINK_FILES($cfg_dir/directory.cfg,directory.cfg)
|
||||||
|
AC_LINK_FILES($cfg_dir/leaf.cfg,leaf.cfg)
|
||||||
|
AC_LINK_FILES($cfg_dir/lib.cfg,lib.cfg)
|
||||||
|
AC_LINK_FILES($cfg_dir/README,README)
|
||||||
|
|
||||||
|
AC_OUTPUT(
|
||||||
|
Makefile
|
||||||
|
Makefile.inc
|
||||||
|
main.cfg
|
||||||
|
host.cfg
|
||||||
|
target.cfg
|
||||||
|
Templates/Makefile
|
||||||
|
custom/Makefile
|
||||||
|
custom/default.cfg
|
||||||
|
compilers/Makefile
|
||||||
|
compilers/gcc.cfg
|
||||||
|
)
|
||||||
19
c/src/make/custom/Makefile.am
Normal file
19
c/src/make/custom/Makefile.am
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
rtems_makedir=$(prefix)/make
|
||||||
|
rtems_make_customdir=$(rtems_makedir)/custom
|
||||||
|
rtems_make_custom_DATA = @CUSTOM_CFG_FILES@
|
||||||
|
|
||||||
|
noinst_DATA = \
|
||||||
|
default.cfg
|
||||||
|
|
||||||
|
if MAINTAINER_MODE
|
||||||
|
$(srcdir)/default.cfg.in: $(top_srcdir)/@RTEMS_TOPdir@/make/custom/default.cfg
|
||||||
|
sed -e 's%\$$(RTEMS_BSP)%\@RTEMS_BSP\@%g' < $< >$@
|
||||||
|
endif
|
||||||
|
|
||||||
|
include $(top_srcdir)/../../../automake/local.am
|
||||||
291
c/src/make/custom/Makefile.in
Normal file
291
c/src/make/custom/Makefile.in
Normal file
@@ -0,0 +1,291 @@
|
|||||||
|
# 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$
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
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_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_triplet = @build@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
target_triplet = @target@
|
||||||
|
BARE_CPU_CFLAGS = @BARE_CPU_CFLAGS@
|
||||||
|
BARE_CPU_MODEL = @BARE_CPU_MODEL@
|
||||||
|
CAT = @CAT@
|
||||||
|
CC = @CC@
|
||||||
|
CC_CFLAGS_DEBUG_V = @CC_CFLAGS_DEBUG_V@
|
||||||
|
CC_CFLAGS_DEFAULT = @CC_CFLAGS_DEFAULT@
|
||||||
|
CC_CFLAGS_PROFILE_V = @CC_CFLAGS_PROFILE_V@
|
||||||
|
CC_FOR_TARGET = @CC_FOR_TARGET@
|
||||||
|
CC_LDFLAGS_PROFILE_V = @CC_LDFLAGS_PROFILE_V@
|
||||||
|
CHMOD = @CHMOD@
|
||||||
|
CMP = @CMP@
|
||||||
|
CP = @CP@
|
||||||
|
CPP = @CPP@
|
||||||
|
CUSTOM_CFG_FILES = @CUSTOM_CFG_FILES@
|
||||||
|
CXX = @CXX@
|
||||||
|
CXXCPP = @CXXCPP@
|
||||||
|
CXX_FOR_TARGET = @CXX_FOR_TARGET@
|
||||||
|
GCCSED = @GCCSED@
|
||||||
|
INSTALL_CHANGE = @INSTALL_CHANGE@
|
||||||
|
KSH = @KSH@
|
||||||
|
LN = @LN@
|
||||||
|
LN_S = @LN_S@
|
||||||
|
M4 = @M4@
|
||||||
|
MAINT = @MAINT@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
MV = @MV@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
PACKHEX = @PACKHEX@
|
||||||
|
PERL = @PERL@
|
||||||
|
PROJECT_ROOT = @PROJECT_ROOT@
|
||||||
|
RM = @RM@
|
||||||
|
RTEMS_BSP = @RTEMS_BSP@
|
||||||
|
RTEMS_CPU = @RTEMS_CPU@
|
||||||
|
RTEMS_GAS_CODE16 = @RTEMS_GAS_CODE16@
|
||||||
|
RTEMS_HAS_CPLUSPLUS = @RTEMS_HAS_CPLUSPLUS@
|
||||||
|
RTEMS_HAS_MULTIPROCESSING = @RTEMS_HAS_MULTIPROCESSING@
|
||||||
|
RTEMS_HAS_NETWORKING = @RTEMS_HAS_NETWORKING@
|
||||||
|
RTEMS_HAS_POSIX_API = @RTEMS_HAS_POSIX_API@
|
||||||
|
RTEMS_HAS_RDBG = @RTEMS_HAS_RDBG@
|
||||||
|
RTEMS_HOST = @RTEMS_HOST@
|
||||||
|
RTEMS_LIBC_DIR = @RTEMS_LIBC_DIR@
|
||||||
|
RTEMS_ROOT = @RTEMS_ROOT@
|
||||||
|
RTEMS_TOPdir = @RTEMS_TOPdir@
|
||||||
|
RTEMS_USE_GCC272 = @RTEMS_USE_GCC272@
|
||||||
|
RTEMS_USE_MACROS = @RTEMS_USE_MACROS@
|
||||||
|
SED = @SED@
|
||||||
|
SORT = @SORT@
|
||||||
|
TOUCH = @TOUCH@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
program_prefix = @program_prefix@
|
||||||
|
rtems_cv_prog_cc_cross = @rtems_cv_prog_cc_cross@
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
rtems_makedir = $(prefix)/make
|
||||||
|
rtems_make_customdir = $(rtems_makedir)/custom
|
||||||
|
rtems_make_custom_DATA = @CUSTOM_CFG_FILES@
|
||||||
|
|
||||||
|
noinst_DATA = default.cfg
|
||||||
|
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/../../../mkinstalldirs
|
||||||
|
CONFIG_CLEAN_FILES = default.cfg
|
||||||
|
DATA = $(noinst_DATA) $(rtems_make_custom_DATA)
|
||||||
|
|
||||||
|
DIST_COMMON = Makefile.am Makefile.in default.cfg.in
|
||||||
|
|
||||||
|
|
||||||
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = tar
|
||||||
|
GZIP_ENV = --best
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../../automake/local.am
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --foreign custom/Makefile
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
default.cfg: $(top_builddir)/config.status default.cfg.in
|
||||||
|
cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
install-rtems_make_customDATA: $(rtems_make_custom_DATA)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(rtems_make_customdir)
|
||||||
|
@list='$(rtems_make_custom_DATA)'; for p in $$list; do \
|
||||||
|
if test -f $(srcdir)/$$p; then \
|
||||||
|
echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(rtems_make_customdir)/$$p"; \
|
||||||
|
$(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(rtems_make_customdir)/$$p; \
|
||||||
|
else if test -f $$p; then \
|
||||||
|
echo " $(INSTALL_DATA) $$p $(DESTDIR)$(rtems_make_customdir)/$$p"; \
|
||||||
|
$(INSTALL_DATA) $$p $(DESTDIR)$(rtems_make_customdir)/$$p; \
|
||||||
|
fi; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-rtems_make_customDATA:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
list='$(rtems_make_custom_DATA)'; for p in $$list; do \
|
||||||
|
rm -f $(DESTDIR)$(rtems_make_customdir)/$$p; \
|
||||||
|
done
|
||||||
|
tags: TAGS
|
||||||
|
TAGS:
|
||||||
|
|
||||||
|
|
||||||
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||||
|
|
||||||
|
subdir = custom
|
||||||
|
|
||||||
|
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 custom/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-exec: install-exec-am
|
||||||
|
|
||||||
|
install-data-am: install-rtems_make_customDATA
|
||||||
|
install-data: install-data-am
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
install: install-am
|
||||||
|
uninstall-am: uninstall-rtems_make_customDATA
|
||||||
|
uninstall: uninstall-am
|
||||||
|
all-am: Makefile $(DATA)
|
||||||
|
all-redirect: all-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs:
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(rtems_make_customdir)
|
||||||
|
|
||||||
|
|
||||||
|
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-rtems_make_customDATA install-rtems_make_customDATA \
|
||||||
|
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 mostlyclean-generic distclean-generic clean-generic \
|
||||||
|
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
@MAINTAINER_MODE_TRUE@$(srcdir)/default.cfg.in: $(top_srcdir)/@RTEMS_TOPdir@/make/custom/default.cfg
|
||||||
|
@MAINTAINER_MODE_TRUE@ sed -e 's%\$$(RTEMS_BSP)%\@RTEMS_BSP\@%g' < $< >$@
|
||||||
|
|
||||||
|
debug-am:
|
||||||
|
debug: debug-am
|
||||||
|
.PHONY: debug debug-am
|
||||||
|
|
||||||
|
debug_install-am:
|
||||||
|
debug_install: debug_install-am
|
||||||
|
.PHONY: debug_install debug_install-am
|
||||||
|
|
||||||
|
profile-am:
|
||||||
|
profile: profile-am
|
||||||
|
.PHONY: profile profile-am
|
||||||
|
|
||||||
|
profile_install-am:
|
||||||
|
profile_install: profile_install-am
|
||||||
|
.PHONY: profile_install profile_install-am
|
||||||
|
|
||||||
|
preinstall-am:
|
||||||
|
preinstall: preinstall-am
|
||||||
|
.PHONY: preinstall preinstall-am
|
||||||
|
|
||||||
|
clobber-am:
|
||||||
|
clobber: clobber-am
|
||||||
|
.PHONY: clobber clobber-am
|
||||||
|
|
||||||
|
depend-am:
|
||||||
|
depend: depend-am
|
||||||
|
.PHONY: depend depend-am
|
||||||
|
|
||||||
|
# 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:
|
||||||
86
c/src/make/custom/default.cfg.in
Normal file
86
c/src/make/custom/default.cfg.in
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
# Default target settings
|
||||||
|
#
|
||||||
|
# Some of these values are redefined in the target specific .cfg files.
|
||||||
|
#
|
||||||
|
# Created by Jiri Gaisler, 16-03-97 (who is owed a debt of gratitude
|
||||||
|
# for converting RTEMS to autoconf. Thanks. --joel)
|
||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
include $(RTEMS_ROOT)/make/target.cfg
|
||||||
|
include $(RTEMS_ROOT)/make/host.cfg
|
||||||
|
|
||||||
|
# Specify here the host and target "architectures"
|
||||||
|
HOST_ARCH=o-$(RTEMS_HOST)
|
||||||
|
ifndef TARGET_ARCH
|
||||||
|
TARGET_ARCH=o-@RTEMS_BSP@
|
||||||
|
endif
|
||||||
|
|
||||||
|
include $(RTEMS_ROOT)/make/main.cfg
|
||||||
|
|
||||||
|
# use the inline functions instead of the macros
|
||||||
|
# ref: src/exec/generic/Makefile
|
||||||
|
ifeq ($(RTEMS_USE_MACROS),yes)
|
||||||
|
INLINE=macros
|
||||||
|
INLINE_UPCASE=
|
||||||
|
else
|
||||||
|
INLINE=inline
|
||||||
|
INLINE_UPCASE=INLINE
|
||||||
|
endif
|
||||||
|
|
||||||
|
# HOST Compiler config file
|
||||||
|
# You may also want to specify where the compiler resides here.
|
||||||
|
CONFIG.$(HOST_ARCH).CC = $(PROJECT_ROOT)/make/compilers/gcc.cfg
|
||||||
|
|
||||||
|
## Target compiler config file, if any
|
||||||
|
CONFIG.$(TARGET_ARCH).CC = $(RTEMS_ROOT)/make/compilers/gcc-target-default.cfg
|
||||||
|
|
||||||
|
## GCC specs extension file location
|
||||||
|
RTEMS_BSP_SPECS = $(PROJECT_ROOT)/@RTEMS_BSP@/lib/bsp_specs
|
||||||
|
|
||||||
|
## LIBC support
|
||||||
|
## Specify the one you want here and fill in the blanks.
|
||||||
|
## Currently CYGNUS newlib is supported.
|
||||||
|
## NOTE: RTEMS libcsupport.a includes RTEMS versions of stuff like
|
||||||
|
## malloc, gettimeofday, etc.
|
||||||
|
|
||||||
|
# Define this to yes if C++ is included in the development environment.
|
||||||
|
# This requires that at least the GNU C++ compiler and libg++ be installed.
|
||||||
|
ifeq ($(RTEMS_HAS_CPLUSPLUS),yes)
|
||||||
|
HAS_CPLUSPLUS=yes
|
||||||
|
else
|
||||||
|
HAS_CPLUSPLUS=no
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Define this to yes if this target supports multiprocessor environments.
|
||||||
|
ifeq ($(RTEMS_HAS_MULTIPROCESSING),yes)
|
||||||
|
HAS_MP=yes
|
||||||
|
else
|
||||||
|
HAS_MP=no
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Define this to yes if this target wants the TCP/IP stack
|
||||||
|
ifeq ($(RTEMS_HAS_NETWORKING),yes)
|
||||||
|
HAS_NETWORKING=yes
|
||||||
|
else
|
||||||
|
HAS_NETWORKING=no
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Define this to yes if this target wants the remote debugger
|
||||||
|
ifeq ($(RTEMS_HAS_RDBG),yes)
|
||||||
|
HAS_RDBG=yes
|
||||||
|
else
|
||||||
|
HAS_RDBG=no
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Define this to yes if this target wants the posix api
|
||||||
|
ifeq ($(RTEMS_HAS_POSIX_API),yes)
|
||||||
|
HAS_POSIX_API=yes
|
||||||
|
else
|
||||||
|
HAS_POSIX_API=no
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Base name of start file
|
||||||
|
START_BASE=start
|
||||||
|
|
||||||
73
c/src/make/main.cfg.in
Normal file
73
c/src/make/main.cfg.in
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# make/main.cfg
|
||||||
|
#
|
||||||
|
# Make(1) configuration file include'd by all Makefile's
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# where things are relative to PROJECT_ROOT; shouldn't need to change,
|
||||||
|
# but could be overridden in custom files.
|
||||||
|
#
|
||||||
|
|
||||||
|
PROJECT_RELEASE=$(PROJECT_ROOT)/@RTEMS_BSP@
|
||||||
|
PROJECT_BIN=$(PROJECT_RELEASE)/bin
|
||||||
|
PROJECT_INCLUDE=$(PROJECT_RELEASE)/lib/include
|
||||||
|
PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools
|
||||||
|
|
||||||
|
#
|
||||||
|
# Target architecture; may be changed as per 'make "ARCH=${TARGET_ARCH}-debug"'
|
||||||
|
# This is where the object files get put.
|
||||||
|
#
|
||||||
|
|
||||||
|
ARCH=${TARGET_ARCH}
|
||||||
|
|
||||||
|
VARIANT=
|
||||||
|
|
||||||
|
#
|
||||||
|
# Initial target for make(1)
|
||||||
|
# Once this is established we can safely include other targets
|
||||||
|
# within this make-include file.
|
||||||
|
#
|
||||||
|
|
||||||
|
default_target: all
|
||||||
|
|
||||||
|
#
|
||||||
|
# Default makefile name
|
||||||
|
# May be overridden by command line macro assignment
|
||||||
|
#
|
||||||
|
|
||||||
|
MAKEFILE=Makefile
|
||||||
|
|
||||||
|
#
|
||||||
|
# Target variant names
|
||||||
|
# and rule to expand them into (for example): sun4 sun4-debug sun4-profile
|
||||||
|
# Note compiler config may add to TARGET_VARIANTS
|
||||||
|
#
|
||||||
|
|
||||||
|
TARGET_VARIANTS = debug profile
|
||||||
|
|
||||||
|
#
|
||||||
|
# Generate list of object directories: sun4, sun4-debug, sun4-profile
|
||||||
|
#
|
||||||
|
VARIANTS=${TARGET_ARCH} ${TARGET_VARIANTS:%=${TARGET_ARCH}-%}
|
||||||
|
|
||||||
|
#
|
||||||
|
# List of "recursion-able" targets for directory Makefiles
|
||||||
|
#
|
||||||
|
|
||||||
|
RECURSE_TARGETS=all clean protos get clobber depend install \
|
||||||
|
preinstall-recursive \
|
||||||
|
$(TARGET_VARIANTS) $(TARGET_VARIANTS:%=%_install)
|
||||||
|
|
||||||
|
${ARCH}:
|
||||||
|
test -d ${ARCH} || mkdir ${ARCH}
|
||||||
|
|
||||||
|
|
||||||
|
# general purpose forcing dependency; try to use .PHONY instead
|
||||||
|
FORCEIT:
|
||||||
|
|
||||||
|
FORCE:
|
||||||
|
|
||||||
|
.PHONY: $(RECURSE_TARGETS)
|
||||||
72
c/src/make/target.cfg.in
Normal file
72
c/src/make/target.cfg.in
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Target specific settings.
|
||||||
|
#
|
||||||
|
|
||||||
|
prefix = @prefix@
|
||||||
|
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
|
CPPFLAGS = @CPPFLAGS@
|
||||||
|
DEFS = @DEFS@
|
||||||
|
LDFLAGS =
|
||||||
|
LIBS = @LIBS@
|
||||||
|
|
||||||
|
CC = @CC_FOR_TARGET@
|
||||||
|
AS = @AS_FOR_TARGET@
|
||||||
|
AR = @AR_FOR_TARGET@
|
||||||
|
NM = @NM_FOR_TARGET@
|
||||||
|
LD = @LD_FOR_TARGET@
|
||||||
|
SIZE = @SIZE_FOR_TARGET@
|
||||||
|
STRIP = @STRIP_FOR_TARGET@
|
||||||
|
OBJCOPY = @OBJCOPY_FOR_TARGET@
|
||||||
|
RANLIB = @RANLIB_FOR_TARGET@
|
||||||
|
|
||||||
|
CXX = @CXX_FOR_TARGET@
|
||||||
|
|
||||||
|
export CC
|
||||||
|
export AS
|
||||||
|
export LD
|
||||||
|
export NM
|
||||||
|
export AR
|
||||||
|
export SIZE
|
||||||
|
export OBJCOPY
|
||||||
|
|
||||||
|
export CXX
|
||||||
|
|
||||||
|
RTEMS_CROSS_TARGET=@rtems_cv_prog_cc_cross@
|
||||||
|
|
||||||
|
RTEMS_HOST = @RTEMS_HOST@
|
||||||
|
RTEMS_HAS_MULTIPROCESSING = @RTEMS_HAS_MULTIPROCESSING@
|
||||||
|
RTEMS_HAS_POSIX_API = @RTEMS_HAS_POSIX_API@
|
||||||
|
RTEMS_HAS_NETWORKING = @RTEMS_HAS_NETWORKING@
|
||||||
|
RTEMS_HAS_RDBG = @RTEMS_HAS_RDBG@
|
||||||
|
RTEMS_HAS_CPLUSPLUS = @RTEMS_HAS_CPLUSPLUS@
|
||||||
|
RTEMS_USE_MACROS = @RTEMS_USE_MACROS@
|
||||||
|
RTEMS_USE_GCC272 = @RTEMS_USE_GCC272@
|
||||||
|
RTEMS_LIBC_DIR = @RTEMS_LIBC_DIR@
|
||||||
|
RTEMS_CPU = @RTEMS_CPU@
|
||||||
|
|
||||||
|
# the following are only used for the bare bsp
|
||||||
|
BARE_CPU_MODEL = @BARE_CPU_MODEL@
|
||||||
|
BARE_CPU_CFLAGS = @BARE_CPU_CFLAGS@
|
||||||
|
|
||||||
|
XCFLAGS=$(CFLAGS_FOR_TARGET)
|
||||||
|
|
||||||
|
export RTEMS_BSP
|
||||||
|
export RTEMS_CUSTOM
|
||||||
|
export PROJECT_ROOT
|
||||||
|
|
||||||
|
# List (possibly empty) of required managers
|
||||||
|
# We require:
|
||||||
|
# region -- used by lib/libcsupport for malloc()
|
||||||
|
# ext -- used by libc for libc reentrancy hooks
|
||||||
|
|
||||||
|
MANAGERS_REQUIRED=region ext sem
|
||||||
|
|
||||||
|
# Create a RTEMS executable based on MANAGERS which was set in
|
||||||
|
# app's Makefile
|
||||||
|
|
||||||
|
MANAGERS_NOT_WANTED=$(filter-out $(MANAGERS) \
|
||||||
|
$(MANAGERS_REQUIRED), $(MANAGER_LIST))
|
||||||
|
|
||||||
988
c/src/tests/aclocal.m4
vendored
Normal file
988
c/src/tests/aclocal.m4
vendored
Normal file
@@ -0,0 +1,988 @@
|
|||||||
|
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$
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl RTEMS_TOP($1)
|
||||||
|
dnl
|
||||||
|
dnl $1 .. relative path from this configure.in to the toplevel configure.in
|
||||||
|
dnl
|
||||||
|
AC_DEFUN(RTEMS_TOP,
|
||||||
|
[dnl
|
||||||
|
AC_ARG_WITH(target-subdir,
|
||||||
|
[ --with-target-subdir=DIR],
|
||||||
|
TARGET_SUBDIR="$withval",
|
||||||
|
TARGET_SUBDIR=".")
|
||||||
|
|
||||||
|
RTEMS_TOPdir="$1";
|
||||||
|
AC_SUBST(RTEMS_TOPdir)
|
||||||
|
|
||||||
|
dnl Determine RTEMS Version string from the VERSION file
|
||||||
|
dnl Hopefully, Joel never changes its format ;-
|
||||||
|
AC_MSG_CHECKING([for RTEMS Version])
|
||||||
|
if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
|
||||||
|
changequote(,)dnl
|
||||||
|
RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
|
||||||
|
sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'`
|
||||||
|
changequote([,])dnl
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR(Unable to find ${RTEMS_TOPdir}/VERSION)
|
||||||
|
fi
|
||||||
|
if test -z "$RTEMS_VERSION"; then
|
||||||
|
AC_MSG_ERROR(Unable to determine version)
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($RTEMS_VERSION)
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
dnl canonicalize target cpu
|
||||||
|
dnl NOTE: Most rtems targets do not fullfil autoconf's
|
||||||
|
dnl target naming conventions "processor-vendor-os"
|
||||||
|
dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
|
||||||
|
dnl and we have to fix it for rtems ourselves
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
|
||||||
|
[
|
||||||
|
AC_CANONICAL_SYSTEM
|
||||||
|
AC_MSG_CHECKING(rtems target cpu)
|
||||||
|
changequote(,)dnl
|
||||||
|
case "${target}" in
|
||||||
|
# hpux unix port should go here
|
||||||
|
i[3456]86-go32-rtems*)
|
||||||
|
RTEMS_CPU=i386
|
||||||
|
;;
|
||||||
|
i[3456]86-pc-linux*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
i[3456]86-*freebsd2*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
no_cpu-*rtems*)
|
||||||
|
RTEMS_CPU=no_cpu
|
||||||
|
;;
|
||||||
|
sparc-sun-solaris*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
changequote([,])dnl
|
||||||
|
AC_SUBST(RTEMS_CPU)
|
||||||
|
AC_MSG_RESULT($RTEMS_CPU)
|
||||||
|
])
|
||||||
|
|
||||||
|
# Add --enable-maintainer-mode option to configure.
|
||||||
|
# From Jim Meyering
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
|
AC_DEFUN(AM_MAINTAINER_MODE,
|
||||||
|
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
||||||
|
dnl maintainer-mode is disabled by default
|
||||||
|
AC_ARG_ENABLE(maintainer-mode,
|
||||||
|
[ --enable-maintainer-mode enable make rules and dependencies not useful
|
||||||
|
(and sometimes confusing) to the casual installer],
|
||||||
|
USE_MAINTAINER_MODE=$enableval,
|
||||||
|
USE_MAINTAINER_MODE=no)
|
||||||
|
AC_MSG_RESULT($USE_MAINTAINER_MODE)
|
||||||
|
AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
|
||||||
|
MAINT=$MAINTAINER_MODE_TRUE
|
||||||
|
AC_SUBST(MAINT)dnl
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
# Define a conditional.
|
||||||
|
|
||||||
|
AC_DEFUN(AM_CONDITIONAL,
|
||||||
|
[AC_SUBST($1_TRUE)
|
||||||
|
AC_SUBST($1_FALSE)
|
||||||
|
if $2; then
|
||||||
|
$1_TRUE=
|
||||||
|
$1_FALSE='#'
|
||||||
|
else
|
||||||
|
$1_TRUE='#'
|
||||||
|
$1_FALSE=
|
||||||
|
fi])
|
||||||
|
|
||||||
|
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])
|
||||||
|
AC_SUBST(RTEMS_HAS_MULTIPROCESSING)dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
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])
|
||||||
|
AC_SUBST(RTEMS_HAS_POSIX_API)
|
||||||
|
|
||||||
|
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])
|
||||||
|
AC_SUBST(RTEMS_HAS_NETWORKING)dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
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])
|
||||||
|
AC_SUBST(RTEMS_HAS_RDBG)dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
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])
|
||||||
|
AC_SUBST(RTEMS_USE_MACROS)dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
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_SUBST(RTEMS_LIBC_DIR)dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
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$
|
||||||
|
|
||||||
|
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? ])
|
||||||
|
AC_ARG_ENABLE(tests,
|
||||||
|
[ --enable-tests enable tests (default:disabled)],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes) tests_enabled=yes ;;
|
||||||
|
no) tests_enabled=no ;;
|
||||||
|
*) AC_MSG_ERROR(bad value ${enableval} for tests option) ;;
|
||||||
|
esac], [tests_enabled=no])
|
||||||
|
AC_MSG_RESULT([$tests_enabled])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
dnl Override the set of BSPs to be built.
|
||||||
|
dnl used by the toplevel configure script
|
||||||
|
dnl RTEMS_ENABLE_RTEMSBSP(rtems_bsp_list)
|
||||||
|
AC_DEFUN(RTEMS_ENABLE_RTEMSBSP,
|
||||||
|
[
|
||||||
|
AC_ARG_ENABLE(rtemsbsp,
|
||||||
|
[ --enable-rtemsbsp=bsp1 bsp2 .. BSPs to include in build],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes|no) AC_MSG_ERROR([missing argument to --enable-rtemsbsp=\"bsp1 bsp2\"]);;
|
||||||
|
*) $1=$enableval;;
|
||||||
|
esac],[$1=""])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl Pass a single BSP via an environment variable
|
||||||
|
dnl used by per BSP configure scripts
|
||||||
|
AC_DEFUN(RTEMS_ENV_RTEMSBSP,
|
||||||
|
[dnl
|
||||||
|
AC_MSG_CHECKING([for RTEMS_BSP])
|
||||||
|
AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
|
||||||
|
[dnl
|
||||||
|
test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
|
||||||
|
])dnl
|
||||||
|
if test -z "$rtems_cv_RTEMS_BSP"; then
|
||||||
|
AC_MSG_ERROR([Missing RTEMS_BSP])
|
||||||
|
fi
|
||||||
|
RTEMS_BSP="$rtems_cv_RTEMS_BSP"
|
||||||
|
AC_MSG_RESULT(${RTEMS_BSP})
|
||||||
|
AC_SUBST(RTEMS_BSP)
|
||||||
|
])
|
||||||
|
|
||||||
|
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 $RTEMS_CPU is supported])
|
||||||
|
if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_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 $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PROJECT_ROOT,
|
||||||
|
[dnl
|
||||||
|
AC_REQUIRE([RTEMS_TOP])
|
||||||
|
if test "$TARGET_SUBDIR" = "." ; then
|
||||||
|
PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)';
|
||||||
|
else
|
||||||
|
PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)'
|
||||||
|
fi
|
||||||
|
AC_SUBST(PROJECT_ROOT)
|
||||||
|
|
||||||
|
RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
|
||||||
|
AC_SUBST(RTEMS_ROOT)
|
||||||
|
|
||||||
|
INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change"
|
||||||
|
AC_SUBST(INSTALL_CHANGE)
|
||||||
|
|
||||||
|
PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex"
|
||||||
|
AC_SUBST(PACKHEX)
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Check for target gcc
|
||||||
|
dnl
|
||||||
|
dnl 98/05/20 Ralf Corsepius (corsepiu@faw.uni-ulm.de)
|
||||||
|
dnl Completely reworked
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PROG_CC,
|
||||||
|
[
|
||||||
|
AC_BEFORE([$0], [AC_PROG_CPP])dnl
|
||||||
|
AC_BEFORE([$0], [AC_PROG_CC])dnl
|
||||||
|
AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl
|
||||||
|
|
||||||
|
dnl Only accept gcc and cc
|
||||||
|
dnl NOTE: This might be too restrictive for native compilation
|
||||||
|
AC_PATH_PROGS(CC_FOR_TARGET, "$program_prefix"gcc "$program_prefix"cc )
|
||||||
|
test -z "$CC_FOR_TARGET" \
|
||||||
|
&& AC_MSG_ERROR([no acceptable cc found in \$PATH])
|
||||||
|
|
||||||
|
dnl backup
|
||||||
|
rtems_save_CC=$CC
|
||||||
|
rtems_save_CFLAGS=$CFLAGS
|
||||||
|
|
||||||
|
dnl temporarily set CC
|
||||||
|
CC=$CC_FOR_TARGET
|
||||||
|
|
||||||
|
AC_PROG_CC_WORKS
|
||||||
|
AC_PROG_CC_GNU
|
||||||
|
|
||||||
|
if test $ac_cv_prog_gcc = yes; then
|
||||||
|
GCC=yes
|
||||||
|
dnl Check whether -g works, even if CFLAGS is set, in case the package
|
||||||
|
dnl plays around with CFLAGS (such as to build both debugging and
|
||||||
|
dnl normal versions of a library), tasteless as that idea is.
|
||||||
|
ac_test_CFLAGS="${CFLAGS+set}"
|
||||||
|
ac_save_CFLAGS="$CFLAGS"
|
||||||
|
CFLAGS=
|
||||||
|
AC_PROG_CC_G
|
||||||
|
if test "$ac_test_CFLAGS" = set; then
|
||||||
|
CFLAGS="$ac_save_CFLAGS"
|
||||||
|
elif test $ac_cv_prog_cc_g = yes; then
|
||||||
|
CFLAGS="-g -O2"
|
||||||
|
else
|
||||||
|
CFLAGS="-O2"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
GCC=
|
||||||
|
test "${CFLAGS+set}" = set || CFLAGS="-g"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rtems_cv_prog_gcc=$ac_cv_prog_gcc
|
||||||
|
rtems_cv_prog_cc_g=$ac_cv_prog_cc_g
|
||||||
|
rtems_cv_prog_cc_works=$ac_cv_prog_cc_works
|
||||||
|
rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross
|
||||||
|
|
||||||
|
dnl restore initial values
|
||||||
|
CC=$rtems_save_CC
|
||||||
|
CFLAGS=$rtems_save_CFLAGS
|
||||||
|
|
||||||
|
unset ac_cv_prog_gcc
|
||||||
|
unset ac_cv_prog_cc_g
|
||||||
|
unset ac_cv_prog_cc_works
|
||||||
|
unset ac_cv_prog_cc_cross
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PROG_CC_FOR_TARGET,
|
||||||
|
[
|
||||||
|
dnl check target cc
|
||||||
|
RTEMS_PROG_CC
|
||||||
|
dnl check if the compiler supports --specs
|
||||||
|
RTEMS_GCC_SPECS
|
||||||
|
dnl check if the target compiler may use --pipe
|
||||||
|
RTEMS_GCC_PIPE
|
||||||
|
dnl check if the compiler supports --specs if gcc28 is requested
|
||||||
|
if test "$RTEMS_USE_GCC272" != "yes" ; then
|
||||||
|
if test "$rtems_cv_gcc_specs" = "no"; then
|
||||||
|
AC_MSG_WARN([*** disabling --enable-gcc28])
|
||||||
|
RTEMS_USE_GCC272=yes
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe"
|
||||||
|
|
||||||
|
dnl FIXME: HACK for egcs/cygwin mixing '\\' and '/' in gcc -print-*
|
||||||
|
case $host_os in
|
||||||
|
*cygwin*) GCCSED="| sed 's%\\\\%/%g'" ;;
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
|
AC_SUBST(GCCSED)
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Set program_prefix
|
||||||
|
dnl
|
||||||
|
dnl 98/05/20 Ralf Corsepius (corsepiu@faw.uni-ulm.de)
|
||||||
|
dnl Extracted from configure
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_TOOL_PREFIX,
|
||||||
|
[AC_REQUIRE([AC_CANONICAL_TARGET])dnl
|
||||||
|
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
||||||
|
|
||||||
|
changequote(,)dnl
|
||||||
|
if [ "${program_prefix}" = "NONE" ] ; then
|
||||||
|
if [ "${target}" = "${host}" ] ; then
|
||||||
|
program_prefix=
|
||||||
|
else
|
||||||
|
program_prefix=${target}-
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
changequote([,])dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Check whether the target compiler accepts -specs
|
||||||
|
dnl
|
||||||
|
dnl 98/02/11 Ralf Corsepius corsepiu@faw.uni-ulm.de
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_GCC_SPECS,
|
||||||
|
[AC_REQUIRE([RTEMS_PROG_CC])
|
||||||
|
AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts -specs,rtems_cv_gcc_specs,
|
||||||
|
[
|
||||||
|
rtems_cv_gcc_specs=no
|
||||||
|
if test "$rtems_cv_prog_gcc" = "yes"; then
|
||||||
|
touch confspec
|
||||||
|
echo 'void f(){}' >conftest.c
|
||||||
|
if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then
|
||||||
|
rtems_cv_gcc_specs=yes
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
rm -f confspec conftest*
|
||||||
|
])])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Check whether the target compiler accepts -pipe
|
||||||
|
dnl
|
||||||
|
dnl 98/02/11 Ralf Corsepius corsepiu@faw.uni-ulm.de
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_GCC_PIPE,
|
||||||
|
[AC_REQUIRE([RTEMS_PROG_CC])
|
||||||
|
AC_REQUIRE([AC_CANONICAL_HOST])
|
||||||
|
AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts --pipe,rtems_cv_gcc_pipe,
|
||||||
|
[
|
||||||
|
rtems_cv_gcc_pipe=no
|
||||||
|
if test "$rtems_cv_prog_gcc" = "yes"; then
|
||||||
|
case "$host_os" in
|
||||||
|
cygwin*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo 'void f(){}' >conftest.c
|
||||||
|
if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
|
||||||
|
rtems_cv_gcc_pipe=yes
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Check for target g++
|
||||||
|
dnl
|
||||||
|
dnl 98/05/20 Ralf Corsepius (corsepiu@faw.uni-ulm.de)
|
||||||
|
dnl Completely reworked
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PROG_CXX,
|
||||||
|
[
|
||||||
|
AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl
|
||||||
|
AC_BEFORE([$0], [AC_PROG_CXX])dnl
|
||||||
|
AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl
|
||||||
|
|
||||||
|
dnl Only accept g++ and c++
|
||||||
|
dnl NOTE: This might be too restrictive for native compilation
|
||||||
|
AC_PATH_PROGS(CXX_FOR_TARGET, "$program_prefix"g++ "$program_prefix"c++)
|
||||||
|
test -z "$CXX_FOR_TARGET" \
|
||||||
|
&& AC_MSG_ERROR([no acceptable c++ found in \$PATH])
|
||||||
|
|
||||||
|
dnl backup
|
||||||
|
rtems_save_CXX=$CXX
|
||||||
|
rtems_save_CXXFLAGS=$CXXFLAGS
|
||||||
|
|
||||||
|
dnl temporarily set CXX
|
||||||
|
CXX=$CXX_FOR_TARGET
|
||||||
|
|
||||||
|
AC_PROG_CXX_WORKS
|
||||||
|
AC_PROG_CXX_GNU
|
||||||
|
|
||||||
|
if test $ac_cv_prog_gxx = yes; then
|
||||||
|
GXX=yes
|
||||||
|
dnl Check whether -g works, even if CXXFLAGS is set, in case the package
|
||||||
|
dnl plays around with CXXFLAGS (such as to build both debugging and
|
||||||
|
dnl normal versions of a library), tasteless as that idea is.
|
||||||
|
ac_test_CXXFLAGS="${CXXFLAGS+set}"
|
||||||
|
ac_save_CXXFLAGS="$CXXFLAGS"
|
||||||
|
CXXFLAGS=
|
||||||
|
AC_PROG_CXX_G
|
||||||
|
if test "$ac_test_CXXFLAGS" = set; then
|
||||||
|
CXXFLAGS="$ac_save_CXXFLAGS"
|
||||||
|
elif test $ac_cv_prog_cxx_g = yes; then
|
||||||
|
CXXFLAGS="-g -O2"
|
||||||
|
else
|
||||||
|
CXXFLAGS="-O2"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
GXX=
|
||||||
|
test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rtems_cv_prog_gxx=$ac_cv_prog_gxx
|
||||||
|
rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g
|
||||||
|
rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works
|
||||||
|
rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross
|
||||||
|
|
||||||
|
CXX=$rtems_save_CXX
|
||||||
|
CXXFLAGS=$rtems_save_CXXFLAGS
|
||||||
|
|
||||||
|
dnl restore initial values
|
||||||
|
unset ac_cv_prog_gxx
|
||||||
|
unset ac_cv_prog_cc_g
|
||||||
|
unset ac_cv_prog_cxx_works
|
||||||
|
unset ac_cv_prog_cxx_cross
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PROG_CXX_FOR_TARGET,
|
||||||
|
[
|
||||||
|
RTEMS_PROG_CXX
|
||||||
|
if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then
|
||||||
|
AC_MSG_ERROR([***]
|
||||||
|
[Inconsistency in compiler configuration:]
|
||||||
|
[Target C compiler and Target C++ compiler]
|
||||||
|
[must both either be cross compilers or native compilers]
|
||||||
|
[Hint: If building a posix bsp: LD_LIBRARY_PATH?] )
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Set target tools
|
||||||
|
dnl
|
||||||
|
dnl 98/06/23 Ralf Corsepius (corsepiu@faw.uni-ulm.de)
|
||||||
|
dnl fixing cache/environment variable handling
|
||||||
|
dnl adding checks for cygwin/egcs '\\'-bug
|
||||||
|
dnl adding checks for ranlib/ar -s problem
|
||||||
|
dnl
|
||||||
|
dnl 98/02/12 Ralf Corsepius (corsepiu@faw.uni-ulm.de)
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_GCC_PRINT,
|
||||||
|
[ case $host_os in
|
||||||
|
*cygwin*)
|
||||||
|
dnl FIXME: Hack for cygwin/egcs reporting mixed '\\' and '/'
|
||||||
|
dnl Should be removed once cygwin/egcs reports '/' only
|
||||||
|
$1=`$CC_FOR_TARGET --print-prog-name=$2 | sed -e 's%\\\\%/%g' `
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
$1=`$CC_FOR_TARGET --print-prog-name=$2`
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PATH_TOOL,
|
||||||
|
[
|
||||||
|
AC_MSG_CHECKING([target's $2])
|
||||||
|
AC_CACHE_VAL(ac_cv_path_$1,:)
|
||||||
|
AC_MSG_RESULT([$ac_cv_path_$1])
|
||||||
|
|
||||||
|
if test -n "$ac_cv_path_$1"; then
|
||||||
|
dnl retrieve the value from the cache
|
||||||
|
$1=$ac_cv_path_$1
|
||||||
|
else
|
||||||
|
dnl the cache was not set
|
||||||
|
if test -z "[$]$1" ; then
|
||||||
|
if test "$rtems_cv_prog_gcc" = "yes"; then
|
||||||
|
# We are using gcc, ask it about its tool
|
||||||
|
# NOTE: Necessary if gcc was configured to use the target's
|
||||||
|
# native tools or uses prefixes for gnutools (e.g. gas instead of as)
|
||||||
|
RTEMS_GCC_PRINT($1,$2)
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# The user set an environment variable.
|
||||||
|
# Check whether it is an absolute path, otherwise AC_PATH_PROG
|
||||||
|
# will override the environment variable, which isn't what the user
|
||||||
|
# intends
|
||||||
|
AC_MSG_CHECKING([whether environment variable $1 is an absolute path])
|
||||||
|
case "[$]$1" in
|
||||||
|
/*) # valid
|
||||||
|
AC_MSG_RESULT("yes")
|
||||||
|
;;
|
||||||
|
*) # invalid for AC_PATH_PROG
|
||||||
|
AC_MSG_RESULT("no")
|
||||||
|
AC_MSG_ERROR([***]
|
||||||
|
[Environment variable $1 should either]
|
||||||
|
[be unset (preferred) or contain an absolute path])
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_PATH_PROG($1,"$program_prefix"$2,$3)
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CANONICALIZE_TOOLS,
|
||||||
|
[AC_REQUIRE([RTEMS_PROG_CC])dnl
|
||||||
|
|
||||||
|
dnl FIXME: What shall be done if these tools are not available?
|
||||||
|
RTEMS_PATH_TOOL(AR_FOR_TARGET,ar,no)
|
||||||
|
RTEMS_PATH_TOOL(AS_FOR_TARGET,as,no)
|
||||||
|
RTEMS_PATH_TOOL(LD_FOR_TARGET,ld,no)
|
||||||
|
RTEMS_PATH_TOOL(NM_FOR_TARGET,nm,no)
|
||||||
|
|
||||||
|
dnl special treatment of ranlib
|
||||||
|
RTEMS_PATH_TOOL(RANLIB_FOR_TARGET,ranlib,no)
|
||||||
|
if test "$RANLIB_FOR_TARGET" = "no"; then
|
||||||
|
# ranlib wasn't found; check if ar -s is available
|
||||||
|
RTEMS_AR_FOR_TARGET_S
|
||||||
|
if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then
|
||||||
|
dnl override RANLIB_FOR_TARGET's cache
|
||||||
|
ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s"
|
||||||
|
RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([***]
|
||||||
|
[Can't figure out how to build a library index]
|
||||||
|
[Neither ranlib nor ar -s seem to be available] )
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl NOTE: These may not be available if not using gnutools
|
||||||
|
RTEMS_PATH_TOOL(OBJCOPY_FOR_TARGET,objcopy,no)
|
||||||
|
RTEMS_PATH_TOOL(SIZE_FOR_TARGET,size,no)
|
||||||
|
RTEMS_PATH_TOOL(STRIP_FOR_TARGET,strip,no)
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_AR_FOR_TARGET_S,
|
||||||
|
[
|
||||||
|
AC_CACHE_CHECK(whether $AR_FOR_TARGET -s works,
|
||||||
|
rtems_cv_AR_FOR_TARGET_S,
|
||||||
|
[
|
||||||
|
cat > conftest.$ac_ext <<EOF
|
||||||
|
int foo( int b )
|
||||||
|
{ return b; }
|
||||||
|
EOF
|
||||||
|
if AC_TRY_COMMAND($CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext) \
|
||||||
|
&& AC_TRY_COMMAND($AR_FOR_TARGET -sr conftest.a conftest.o) \
|
||||||
|
&& test -s conftest.a ; \
|
||||||
|
then
|
||||||
|
rtems_cv_AR_FOR_TARGET_S="yes"
|
||||||
|
else
|
||||||
|
rtems_cv_AR_FOR_TARGET_S="no"
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
dnl check for i386 gas supporting 16 bit mode
|
||||||
|
dnl - binutils 2.9.1.0.7 and higher
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_I386_GAS_CODE16,
|
||||||
|
[ if test "${target_cpu}" = "i386"; then
|
||||||
|
AC_CACHE_CHECK([for 16 bit mode assembler support],
|
||||||
|
rtems_cv_prog_gas_code16,
|
||||||
|
[cat > conftest.s << EOF
|
||||||
|
.code16
|
||||||
|
data32
|
||||||
|
addr32
|
||||||
|
lgdt 0
|
||||||
|
EOF
|
||||||
|
if AC_TRY_COMMAND($AS_FOR_TARGET -o conftest.o conftest.s); then
|
||||||
|
rtems_cv_prog_gas_code16=yes
|
||||||
|
else
|
||||||
|
rtems_cv_prog_gas_code16=no
|
||||||
|
fi])
|
||||||
|
RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16"
|
||||||
|
fi
|
||||||
|
AC_SUBST(RTEMS_GAS_CODE16)
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Check for System V IPC calls used by Unix simulators
|
||||||
|
dnl
|
||||||
|
dnl 98/07/17 Dario Alcocer alcocer@netcom.com
|
||||||
|
dnl Ralf Corsepius corsepiu@faw.uni-ulm.de
|
||||||
|
dnl
|
||||||
|
dnl Note: $host_os should probably *not* ever be used here to
|
||||||
|
dnl determine if host supports System V IPC calls, since some
|
||||||
|
dnl (e.g. FreeBSD 2.x) are configured by default to include only
|
||||||
|
dnl a subset of the System V IPC calls. Therefore, to make sure
|
||||||
|
dnl all of the required calls are found, test for each call explicitly.
|
||||||
|
dnl
|
||||||
|
dnl All of the calls use IPC_PRIVATE, so tests will not unintentionally
|
||||||
|
dnl modify any existing key sets. See the man pages for semget, shmget,
|
||||||
|
dnl msgget, semctl, shmctl and msgctl for details.
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_SYSV_SEM,
|
||||||
|
[AC_REQUIRE([AC_PROG_CC])
|
||||||
|
AC_REQUIRE([RTEMS_CANONICAL_HOST])
|
||||||
|
AC_CACHE_CHECK(whether $RTEMS_HOST supports System V semaphores,
|
||||||
|
rtems_cv_sysv_sem,
|
||||||
|
[
|
||||||
|
AC_TRY_RUN([
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/ipc.h>
|
||||||
|
#include <sys/sem.h>
|
||||||
|
int main () {
|
||||||
|
#if !defined(sun)
|
||||||
|
union semun arg ;
|
||||||
|
#else
|
||||||
|
union semun {
|
||||||
|
int val;
|
||||||
|
struct semid_ds *buf;
|
||||||
|
ushort *array;
|
||||||
|
} arg;
|
||||||
|
#endif
|
||||||
|
int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
|
||||||
|
if (id == -1)
|
||||||
|
exit(1);
|
||||||
|
arg.val = 0; /* avoid implicit type cast to union */
|
||||||
|
if (semctl(id, 0, IPC_RMID, arg) == -1)
|
||||||
|
exit(1);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
],
|
||||||
|
rtems_cv_sysv_sem="yes", rtems_cv_sysv_sem="no", :)
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_SYSV_SHM,
|
||||||
|
[AC_REQUIRE([AC_PROG_CC])
|
||||||
|
AC_REQUIRE([RTEMS_CANONICAL_HOST])
|
||||||
|
AC_CACHE_CHECK(whether $RTEMS_HOST supports System V shared memory,
|
||||||
|
rtems_cv_sysv_shm,
|
||||||
|
[
|
||||||
|
AC_TRY_RUN([
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/ipc.h>
|
||||||
|
#include <sys/shm.h>
|
||||||
|
int main () {
|
||||||
|
int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
|
||||||
|
if (id == -1)
|
||||||
|
exit(1);
|
||||||
|
if (shmctl(id, IPC_RMID, 0) == -1)
|
||||||
|
exit(1);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
],
|
||||||
|
rtems_cv_sysv_shm="yes", rtems_cv_sysv_shm="no", :)
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_SYSV_MSG,
|
||||||
|
[AC_REQUIRE([AC_PROG_CC])
|
||||||
|
AC_REQUIRE([RTEMS_CANONICAL_HOST])
|
||||||
|
AC_CACHE_CHECK(whether $RTEMS_HOST supports System V messages,
|
||||||
|
rtems_cv_sysv_msg,
|
||||||
|
[
|
||||||
|
AC_TRY_RUN([
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/ipc.h>
|
||||||
|
#include <sys/msg.h>
|
||||||
|
int main () {
|
||||||
|
int id=msgget(IPC_PRIVATE,IPC_CREAT|0400);
|
||||||
|
if (id == -1)
|
||||||
|
exit(1);
|
||||||
|
if (msgctl(id, IPC_RMID, 0) == -1)
|
||||||
|
exit(1);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
],
|
||||||
|
rtems_cv_sysv_msg="yes", rtems_cv_sysv_msg="no", :)
|
||||||
|
])
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CHECK_SYSV_UNIX,
|
||||||
|
[AC_REQUIRE([RTEMS_CANONICAL_HOST])
|
||||||
|
if test "$RTEMS_CPU" = "unix" ; then
|
||||||
|
RTEMS_SYSV_SEM
|
||||||
|
if test "$rtems_cv_sysv_sem" != "yes" ; then
|
||||||
|
AC_MSG_ERROR([System V semaphores don't work, required by simulator])
|
||||||
|
fi
|
||||||
|
RTEMS_SYSV_SHM
|
||||||
|
if test "$rtems_cv_sysv_shm" != "yes" ; then
|
||||||
|
AC_MSG_ERROR([System V shared memory doesn't work, required by simulator])
|
||||||
|
fi
|
||||||
|
RTEMS_SYSV_MSG
|
||||||
|
if test "$rtems_cv_sysv_msg" != "yes" ; then
|
||||||
|
AC_MSG_ERROR([System V messages don't work, required by simulator])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
dnl Report all available bsps for a target,
|
||||||
|
dnl check if a bsp-subdirectory is present for all bsps found
|
||||||
|
dnl
|
||||||
|
dnl RTEMS_CHECK_BSPS(bsp_list)
|
||||||
|
AC_DEFUN(RTEMS_CHECK_BSPS,
|
||||||
|
[
|
||||||
|
AC_REQUIRE([RTEMS_CHECK_CPU])dnl sets RTEMS_CPU, target
|
||||||
|
AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
|
||||||
|
AC_MSG_CHECKING([for bsps])
|
||||||
|
case "${target}" in
|
||||||
|
changequote(,)dnl
|
||||||
|
i[3456]86-go32-rtems*)
|
||||||
|
changequote([,])dnl
|
||||||
|
$1="go32 go32_p5"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
files=`ls $srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU`
|
||||||
|
for file in $files; do
|
||||||
|
case $file in
|
||||||
|
shared*);;
|
||||||
|
Makefile*);;
|
||||||
|
READ*);;
|
||||||
|
CVS*);;
|
||||||
|
pxfl*);;
|
||||||
|
go32*);; # so the i386 port can pick up the other Makefiles
|
||||||
|
# Now account for BSPs with build variants
|
||||||
|
gen68360) rtems_bsp="$rtems_bsp gen68360 gen68360_040";;
|
||||||
|
p4000) rtems_bsp="$rtems_bsp p4600 p4650";;
|
||||||
|
mvme162) rtems_bsp="$rtems_bsp mvme162 mvme162lx";;
|
||||||
|
*) $1="[$]$1 $file";;
|
||||||
|
esac;
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
AC_MSG_RESULT([[$]$1 .. done])
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CHECK_CUSTOM_BSP,
|
||||||
|
[dnl
|
||||||
|
AC_MSG_CHECKING([for make/custom/[$]$1.cfg])
|
||||||
|
if test -r "$srcdir/$RTEMS_TOPdir/make/custom/[$]$1.cfg"; then
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([no])
|
||||||
|
fi
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
dnl RTEMS_CHECK_MAKEFILE(path)
|
||||||
|
dnl Search for Makefile.in's within the directory starting
|
||||||
|
dnl at path and append an entry for Makefile to global variable
|
||||||
|
dnl "makefiles" (from configure.in) for each Makefile.in found
|
||||||
|
dnl
|
||||||
|
AC_DEFUN(RTEMS_CHECK_MAKEFILE,
|
||||||
|
[RTEMS_CHECK_FILES_IN($1,Makefile,makefiles)
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
dnl RTEMS_CHECK_FILES_IN(path,file,var)
|
||||||
|
dnl path .. path relative to srcdir, where to start searching for files
|
||||||
|
dnl file .. name of the files to search for
|
||||||
|
dnl var .. shell variable to append files found
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CHECK_FILES_IN,
|
||||||
|
[
|
||||||
|
AC_MSG_CHECKING(for $2.in in $1)
|
||||||
|
if test -d $srcdir/$1; then
|
||||||
|
rtems_av_save_dir=`pwd`;
|
||||||
|
cd $srcdir;
|
||||||
|
rtems_av_tmp=`find $1 -name "$2.in" -print | sed "s/$2\.in/%/" | sort | sed "s/%/$2/"`
|
||||||
|
$3="$$3 $rtems_av_tmp";
|
||||||
|
cd $rtems_av_save_dir;
|
||||||
|
AC_MSG_RESULT(done)
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
3217
c/src/tests/configure
vendored
Normal file
3217
c/src/tests/configure
vendored
Normal file
File diff suppressed because it is too large
Load Diff
107
c/src/tests/configure.in
Normal file
107
c/src/tests/configure.in
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_PREREQ(2.13)
|
||||||
|
AC_INIT(libtests)
|
||||||
|
RTEMS_TOP(../../..)
|
||||||
|
AC_CONFIG_AUX_DIR(../../..)
|
||||||
|
|
||||||
|
AC_PROG_MAKE_SET
|
||||||
|
RTEMS_CANONICAL_TARGET_CPU
|
||||||
|
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
RTEMS_ENABLE_MULTIPROCESSING
|
||||||
|
RTEMS_ENABLE_POSIX
|
||||||
|
RTEMS_ENABLE_NETWORKING
|
||||||
|
RTEMS_ENABLE_RDBG
|
||||||
|
RTEMS_ENABLE_INLINES
|
||||||
|
RTEMS_ENABLE_CXX
|
||||||
|
RTEMS_ENABLE_GCC28
|
||||||
|
RTEMS_ENABLE_LIBCDIR
|
||||||
|
RTEMS_ENABLE_BARE
|
||||||
|
dnl RTEMS_ENABLE_RTEMSBSP
|
||||||
|
RTEMS_ENABLE_TESTS
|
||||||
|
|
||||||
|
RTEMS_ENV_RTEMSBSP
|
||||||
|
|
||||||
|
dnl BEGIN configure.host.in
|
||||||
|
|
||||||
|
AC_PATH_PROG(RM,rm)
|
||||||
|
AC_PROG_INSTALL
|
||||||
|
|
||||||
|
dnl BEGIN configure.target.in
|
||||||
|
|
||||||
|
RTEMS_CHECK_CPU
|
||||||
|
RTEMS_CANONICAL_HOST
|
||||||
|
|
||||||
|
RTEMS_PROJECT_ROOT
|
||||||
|
|
||||||
|
dnl check target cc
|
||||||
|
RTEMS_PROG_CC_FOR_TARGET
|
||||||
|
|
||||||
|
dnl check for g++
|
||||||
|
if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
|
||||||
|
RTEMS_PROG_CXX_FOR_TARGET
|
||||||
|
fi
|
||||||
|
|
||||||
|
RTEMS_CANONICALIZE_TOOLS
|
||||||
|
|
||||||
|
dnl if this is an i386, does gas have good code16 support?
|
||||||
|
RTEMS_I386_GAS_CODE16
|
||||||
|
|
||||||
|
RTEMS_CHECK_SYSV_UNIX
|
||||||
|
|
||||||
|
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
|
||||||
|
|
||||||
|
# always build the test tools
|
||||||
|
testtools_cfgdirs="tools/generic"
|
||||||
|
if test "$tests_enabled" = "yes"; then
|
||||||
|
RTEMS_CHECK_MAKEFILE(libtests)
|
||||||
|
RTEMS_CHECK_MAKEFILE(sptests)
|
||||||
|
RTEMS_CHECK_MAKEFILE(tmtests)
|
||||||
|
if test "$RTEMS_HAS_MULTIPROCESSING" = "yes"; then
|
||||||
|
RTEMS_CHECK_MAKEFILE(mptests)
|
||||||
|
fi
|
||||||
|
if test "$RTEMS_HAS_POSIX_API" = "yes"; then
|
||||||
|
RTEMS_CHECK_MAKEFILE(psxtests)
|
||||||
|
fi
|
||||||
|
if test -d "$srcdir/tools/$RTEMS_CPU"; then
|
||||||
|
testtools_cfgdirs="$testtools_cfgdirs tools/$RTEMS_CPU"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST(rtems_cv_prog_cc_cross)
|
||||||
|
AC_SUBST(RTEMS_HAS_CPLUSPLUS)
|
||||||
|
AC_SUBST(RTEMS_USE_GCC272)
|
||||||
|
AC_SUBST(BARE_CPU_CFLAGS)
|
||||||
|
AC_SUBST(BARE_CPU_MODEL)
|
||||||
|
AC_SUBST(program_prefix)
|
||||||
|
AC_SUBST(CC_CFLAGS_DEFAULT)
|
||||||
|
AC_SUBST(CC_CFLAGS_DEBUG_V)
|
||||||
|
AC_SUBST(CC_CFLAGS_PROFILE_V)
|
||||||
|
AC_SUBST(CC_LDFLAGS_PROFILE_V)
|
||||||
|
|
||||||
|
AC_CONFIG_SUBDIRS($testtools_cfgdirs)
|
||||||
|
|
||||||
|
# Try to explicitly list a Makefile here
|
||||||
|
AC_OUTPUT(
|
||||||
|
Makefile
|
||||||
|
support/Makefile
|
||||||
|
support/include/Makefile
|
||||||
|
support/stubdr/Makefile
|
||||||
|
support/wrapup/Makefile
|
||||||
|
tools/Makefile
|
||||||
|
samples/Makefile
|
||||||
|
samples/base_mp/Makefile
|
||||||
|
samples/base_mp/node1/Makefile
|
||||||
|
samples/base_mp/node2/Makefile
|
||||||
|
samples/base_sp/Makefile
|
||||||
|
samples/cdtest/Makefile
|
||||||
|
samples/hello/Makefile
|
||||||
|
samples/minimum/Makefile
|
||||||
|
samples/paranoia/Makefile
|
||||||
|
samples/ticker/Makefile
|
||||||
|
samples/unlimited/Makefile
|
||||||
|
$makefiles)
|
||||||
27
make/Makefile.am
Normal file
27
make/Makefile.am
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
rtems_makedir=$(prefix)/make
|
||||||
|
|
||||||
|
rtems_make_DATA = \
|
||||||
|
main.cfg
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
README \
|
||||||
|
directory.cfg \
|
||||||
|
host.cfg.in \
|
||||||
|
leaf.cfg \
|
||||||
|
lib.cfg \
|
||||||
|
target.cfg.in
|
||||||
|
|
||||||
|
SUBDIRS = \
|
||||||
|
Templates \
|
||||||
|
custom \
|
||||||
|
compilers
|
||||||
|
|
||||||
|
# -------------------------------------------------------
|
||||||
|
include $(top_srcdir)/automake/subdirs.am
|
||||||
|
include $(top_srcdir)/automake/local.am
|
||||||
14
make/Templates/Makefile.am
Normal file
14
make/Templates/Makefile.am
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
Makefile.dir \
|
||||||
|
Makefile.inc.in \
|
||||||
|
Makefile.leaf \
|
||||||
|
Makefile.lib
|
||||||
|
|
||||||
|
# -------------------------------------------------------
|
||||||
|
include $(top_srcdir)/automake/local.am
|
||||||
227
make/Templates/Makefile.in
Normal file
227
make/Templates/Makefile.in
Normal file
@@ -0,0 +1,227 @@
|
|||||||
|
# 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$
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
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_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_triplet = @build@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
target_triplet = @target@
|
||||||
|
MAINT = @MAINT@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
RTEMS_CPU = @RTEMS_CPU@
|
||||||
|
RTEMS_HAS_HWAPI = @RTEMS_HAS_HWAPI@
|
||||||
|
RTEMS_HAS_MULTIPROCESSING = @RTEMS_HAS_MULTIPROCESSING@
|
||||||
|
RTEMS_HAS_NETWORKING = @RTEMS_HAS_NETWORKING@
|
||||||
|
RTEMS_HAS_POSIX_API = @RTEMS_HAS_POSIX_API@
|
||||||
|
RTEMS_HAS_RDBG = @RTEMS_HAS_RDBG@
|
||||||
|
RTEMS_HOST = @RTEMS_HOST@
|
||||||
|
RTEMS_LIBC_DIR = @RTEMS_LIBC_DIR@
|
||||||
|
RTEMS_TOPdir = @RTEMS_TOPdir@
|
||||||
|
RTEMS_USE_MACROS = @RTEMS_USE_MACROS@
|
||||||
|
TARGET_SUBDIRS = @TARGET_SUBDIRS@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
target_subdirs = @target_subdirs@
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
EXTRA_DIST = Makefile.dir Makefile.inc.in Makefile.leaf Makefile.lib
|
||||||
|
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
DIST_COMMON = Makefile.am Makefile.in
|
||||||
|
|
||||||
|
|
||||||
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = tar
|
||||||
|
GZIP_ENV = --best
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/automake/local.am
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --foreign make/Templates/Makefile
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
tags: TAGS
|
||||||
|
TAGS:
|
||||||
|
|
||||||
|
|
||||||
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||||
|
|
||||||
|
subdir = make/Templates
|
||||||
|
|
||||||
|
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 make/Templates/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-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: uninstall-am
|
||||||
|
all-am: Makefile
|
||||||
|
all-redirect: all-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs:
|
||||||
|
|
||||||
|
|
||||||
|
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: 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 mostlyclean-generic \
|
||||||
|
distclean-generic clean-generic maintainer-clean-generic clean \
|
||||||
|
mostlyclean distclean maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
debug-am:
|
||||||
|
debug: debug-am
|
||||||
|
.PHONY: debug debug-am
|
||||||
|
|
||||||
|
debug_install-am:
|
||||||
|
debug_install: debug_install-am
|
||||||
|
.PHONY: debug_install debug_install-am
|
||||||
|
|
||||||
|
profile-am:
|
||||||
|
profile: profile-am
|
||||||
|
.PHONY: profile profile-am
|
||||||
|
|
||||||
|
profile_install-am:
|
||||||
|
profile_install: profile_install-am
|
||||||
|
.PHONY: profile_install profile_install-am
|
||||||
|
|
||||||
|
preinstall-am:
|
||||||
|
preinstall: preinstall-am
|
||||||
|
.PHONY: preinstall preinstall-am
|
||||||
|
|
||||||
|
clobber-am:
|
||||||
|
clobber: clobber-am
|
||||||
|
.PHONY: clobber clobber-am
|
||||||
|
|
||||||
|
depend-am:
|
||||||
|
depend: depend-am
|
||||||
|
.PHONY: depend depend-am
|
||||||
|
|
||||||
|
# -------------------------------------------------------
|
||||||
|
|
||||||
|
# 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:
|
||||||
14
make/compilers/Makefile.am
Normal file
14
make/compilers/Makefile.am
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
gcc-no_bsp.cfg \
|
||||||
|
gcc-portsw.cfg \
|
||||||
|
gcc-target-default.cfg \
|
||||||
|
gcc.cfg.in
|
||||||
|
|
||||||
|
# -------------------------------------------------------
|
||||||
|
include $(top_srcdir)/automake/local.am
|
||||||
227
make/compilers/Makefile.in
Normal file
227
make/compilers/Makefile.in
Normal file
@@ -0,0 +1,227 @@
|
|||||||
|
# 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$
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
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_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_triplet = @build@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
target_triplet = @target@
|
||||||
|
MAINT = @MAINT@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
RTEMS_CPU = @RTEMS_CPU@
|
||||||
|
RTEMS_HAS_HWAPI = @RTEMS_HAS_HWAPI@
|
||||||
|
RTEMS_HAS_MULTIPROCESSING = @RTEMS_HAS_MULTIPROCESSING@
|
||||||
|
RTEMS_HAS_NETWORKING = @RTEMS_HAS_NETWORKING@
|
||||||
|
RTEMS_HAS_POSIX_API = @RTEMS_HAS_POSIX_API@
|
||||||
|
RTEMS_HAS_RDBG = @RTEMS_HAS_RDBG@
|
||||||
|
RTEMS_HOST = @RTEMS_HOST@
|
||||||
|
RTEMS_LIBC_DIR = @RTEMS_LIBC_DIR@
|
||||||
|
RTEMS_TOPdir = @RTEMS_TOPdir@
|
||||||
|
RTEMS_USE_MACROS = @RTEMS_USE_MACROS@
|
||||||
|
TARGET_SUBDIRS = @TARGET_SUBDIRS@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
target_subdirs = @target_subdirs@
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
EXTRA_DIST = gcc-no_bsp.cfg gcc-portsw.cfg gcc-target-default.cfg gcc.cfg.in
|
||||||
|
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
DIST_COMMON = Makefile.am Makefile.in
|
||||||
|
|
||||||
|
|
||||||
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = tar
|
||||||
|
GZIP_ENV = --best
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/automake/local.am
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --foreign make/compilers/Makefile
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
tags: TAGS
|
||||||
|
TAGS:
|
||||||
|
|
||||||
|
|
||||||
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||||
|
|
||||||
|
subdir = make/compilers
|
||||||
|
|
||||||
|
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 make/compilers/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-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: uninstall-am
|
||||||
|
all-am: Makefile
|
||||||
|
all-redirect: all-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs:
|
||||||
|
|
||||||
|
|
||||||
|
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: 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 mostlyclean-generic \
|
||||||
|
distclean-generic clean-generic maintainer-clean-generic clean \
|
||||||
|
mostlyclean distclean maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
debug-am:
|
||||||
|
debug: debug-am
|
||||||
|
.PHONY: debug debug-am
|
||||||
|
|
||||||
|
debug_install-am:
|
||||||
|
debug_install: debug_install-am
|
||||||
|
.PHONY: debug_install debug_install-am
|
||||||
|
|
||||||
|
profile-am:
|
||||||
|
profile: profile-am
|
||||||
|
.PHONY: profile profile-am
|
||||||
|
|
||||||
|
profile_install-am:
|
||||||
|
profile_install: profile_install-am
|
||||||
|
.PHONY: profile_install profile_install-am
|
||||||
|
|
||||||
|
preinstall-am:
|
||||||
|
preinstall: preinstall-am
|
||||||
|
.PHONY: preinstall preinstall-am
|
||||||
|
|
||||||
|
clobber-am:
|
||||||
|
clobber: clobber-am
|
||||||
|
.PHONY: clobber clobber-am
|
||||||
|
|
||||||
|
depend-am:
|
||||||
|
depend: depend-am
|
||||||
|
.PHONY: depend depend-am
|
||||||
|
|
||||||
|
# -------------------------------------------------------
|
||||||
|
|
||||||
|
# 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:
|
||||||
60
make/custom/Makefile.am
Normal file
60
make/custom/Makefile.am
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
rtems_makedir=$(prefix)/make
|
||||||
|
rtems_make_customdir=$(rtems_makedir)/custom
|
||||||
|
|
||||||
|
rtems_make_custom_DATA = \
|
||||||
|
default.cfg
|
||||||
|
|
||||||
|
EXTRA_DIST = \
|
||||||
|
FreeBSD-posix.cfg \
|
||||||
|
HPUX9-posix.cfg \
|
||||||
|
Linux-posix.cfg \
|
||||||
|
Solaris-posix.cfg \
|
||||||
|
bare.cfg \
|
||||||
|
cvme961.cfg \
|
||||||
|
dmv152.cfg \
|
||||||
|
dmv177.cfg \
|
||||||
|
efi332.cfg \
|
||||||
|
efi68k.cfg \
|
||||||
|
erc32.cfg \
|
||||||
|
eth_comm.cfg \
|
||||||
|
force386.cfg \
|
||||||
|
gen68302.cfg \
|
||||||
|
gen68340.cfg \
|
||||||
|
gen68360.cfg \
|
||||||
|
gen68360_040.cfg \
|
||||||
|
gensh1.cfg \
|
||||||
|
go32.cfg \
|
||||||
|
go32_p5.cfg \
|
||||||
|
helas403.cfg \
|
||||||
|
i386ex.cfg \
|
||||||
|
idp.cfg \
|
||||||
|
mcp750.cfg \
|
||||||
|
mvme136.cfg \
|
||||||
|
mvme147.cfg \
|
||||||
|
mvme147s.cfg \
|
||||||
|
mvme162.cfg \
|
||||||
|
mvme162lx.cfg \
|
||||||
|
mvme167.cfg \
|
||||||
|
no_bsp.cfg \
|
||||||
|
ods68302.cfg \
|
||||||
|
p4000.cfg \
|
||||||
|
p4600.cfg \
|
||||||
|
p4650.cfg \
|
||||||
|
papyrus.cfg \
|
||||||
|
pc386.cfg \
|
||||||
|
portsw.cfg \
|
||||||
|
posix.cfg \
|
||||||
|
ppcn_60x.cfg \
|
||||||
|
psim.cfg \
|
||||||
|
score603e.cfg \
|
||||||
|
simhppa.cfg \
|
||||||
|
ts_386ex.cfg
|
||||||
|
|
||||||
|
# -------------------------------------------------------
|
||||||
|
include $(top_srcdir)/automake/local.am
|
||||||
255
make/custom/Makefile.in
Normal file
255
make/custom/Makefile.in
Normal file
@@ -0,0 +1,255 @@
|
|||||||
|
# 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$
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
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_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_triplet = @build@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
target_triplet = @target@
|
||||||
|
MAINT = @MAINT@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
RTEMS_CPU = @RTEMS_CPU@
|
||||||
|
RTEMS_HAS_HWAPI = @RTEMS_HAS_HWAPI@
|
||||||
|
RTEMS_HAS_MULTIPROCESSING = @RTEMS_HAS_MULTIPROCESSING@
|
||||||
|
RTEMS_HAS_NETWORKING = @RTEMS_HAS_NETWORKING@
|
||||||
|
RTEMS_HAS_POSIX_API = @RTEMS_HAS_POSIX_API@
|
||||||
|
RTEMS_HAS_RDBG = @RTEMS_HAS_RDBG@
|
||||||
|
RTEMS_HOST = @RTEMS_HOST@
|
||||||
|
RTEMS_LIBC_DIR = @RTEMS_LIBC_DIR@
|
||||||
|
RTEMS_TOPdir = @RTEMS_TOPdir@
|
||||||
|
RTEMS_USE_MACROS = @RTEMS_USE_MACROS@
|
||||||
|
TARGET_SUBDIRS = @TARGET_SUBDIRS@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
target_subdirs = @target_subdirs@
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
rtems_makedir = $(prefix)/make
|
||||||
|
rtems_make_customdir = $(rtems_makedir)/custom
|
||||||
|
|
||||||
|
rtems_make_custom_DATA = default.cfg
|
||||||
|
|
||||||
|
|
||||||
|
EXTRA_DIST = FreeBSD-posix.cfg HPUX9-posix.cfg Linux-posix.cfg Solaris-posix.cfg bare.cfg cvme961.cfg dmv152.cfg dmv177.cfg efi332.cfg efi68k.cfg erc32.cfg eth_comm.cfg force386.cfg gen68302.cfg gen68340.cfg gen68360.cfg gen68360_040.cfg gensh1.cfg go32.cfg go32_p5.cfg helas403.cfg i386ex.cfg idp.cfg mcp750.cfg mvme136.cfg mvme147.cfg mvme147s.cfg mvme162.cfg mvme162lx.cfg mvme167.cfg no_bsp.cfg ods68302.cfg p4000.cfg p4600.cfg p4650.cfg papyrus.cfg pc386.cfg portsw.cfg posix.cfg ppcn_60x.cfg psim.cfg score603e.cfg simhppa.cfg ts_386ex.cfg
|
||||||
|
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
DATA = $(rtems_make_custom_DATA)
|
||||||
|
|
||||||
|
DIST_COMMON = Makefile.am Makefile.in
|
||||||
|
|
||||||
|
|
||||||
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = tar
|
||||||
|
GZIP_ENV = --best
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/automake/local.am
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --foreign make/custom/Makefile
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
|
||||||
|
install-rtems_make_customDATA: $(rtems_make_custom_DATA)
|
||||||
|
@$(NORMAL_INSTALL)
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(rtems_make_customdir)
|
||||||
|
@list='$(rtems_make_custom_DATA)'; for p in $$list; do \
|
||||||
|
if test -f $(srcdir)/$$p; then \
|
||||||
|
echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(rtems_make_customdir)/$$p"; \
|
||||||
|
$(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(rtems_make_customdir)/$$p; \
|
||||||
|
else if test -f $$p; then \
|
||||||
|
echo " $(INSTALL_DATA) $$p $(DESTDIR)$(rtems_make_customdir)/$$p"; \
|
||||||
|
$(INSTALL_DATA) $$p $(DESTDIR)$(rtems_make_customdir)/$$p; \
|
||||||
|
fi; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
uninstall-rtems_make_customDATA:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
list='$(rtems_make_custom_DATA)'; for p in $$list; do \
|
||||||
|
rm -f $(DESTDIR)$(rtems_make_customdir)/$$p; \
|
||||||
|
done
|
||||||
|
tags: TAGS
|
||||||
|
TAGS:
|
||||||
|
|
||||||
|
|
||||||
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||||
|
|
||||||
|
subdir = make/custom
|
||||||
|
|
||||||
|
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 make/custom/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-exec: install-exec-am
|
||||||
|
|
||||||
|
install-data-am: install-rtems_make_customDATA
|
||||||
|
install-data: install-data-am
|
||||||
|
|
||||||
|
install-am: all-am
|
||||||
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||||
|
install: install-am
|
||||||
|
uninstall-am: uninstall-rtems_make_customDATA
|
||||||
|
uninstall: uninstall-am
|
||||||
|
all-am: Makefile $(DATA)
|
||||||
|
all-redirect: all-am
|
||||||
|
install-strip:
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||||
|
installdirs:
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(rtems_make_customdir)
|
||||||
|
|
||||||
|
|
||||||
|
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-rtems_make_customDATA install-rtems_make_customDATA \
|
||||||
|
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 mostlyclean-generic distclean-generic clean-generic \
|
||||||
|
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||||
|
|
||||||
|
|
||||||
|
debug-am:
|
||||||
|
debug: debug-am
|
||||||
|
.PHONY: debug debug-am
|
||||||
|
|
||||||
|
debug_install-am:
|
||||||
|
debug_install: debug_install-am
|
||||||
|
.PHONY: debug_install debug_install-am
|
||||||
|
|
||||||
|
profile-am:
|
||||||
|
profile: profile-am
|
||||||
|
.PHONY: profile profile-am
|
||||||
|
|
||||||
|
profile_install-am:
|
||||||
|
profile_install: profile_install-am
|
||||||
|
.PHONY: profile_install profile_install-am
|
||||||
|
|
||||||
|
preinstall-am:
|
||||||
|
preinstall: preinstall-am
|
||||||
|
.PHONY: preinstall preinstall-am
|
||||||
|
|
||||||
|
clobber-am:
|
||||||
|
clobber: clobber-am
|
||||||
|
.PHONY: clobber clobber-am
|
||||||
|
|
||||||
|
depend-am:
|
||||||
|
depend: depend-am
|
||||||
|
.PHONY: depend depend-am
|
||||||
|
|
||||||
|
# -------------------------------------------------------
|
||||||
|
|
||||||
|
# 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:
|
||||||
8
tools/Makefile.am
Normal file
8
tools/Makefile.am
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
## $Id$
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
SUBDIRS = build cpu update
|
||||||
|
|
||||||
|
include $(top_srcdir)/automake/subdirs.am
|
||||||
|
include $(top_srcdir)/automake/local.am
|
||||||
371
tools/Makefile.in
Normal file
371
tools/Makefile.in
Normal file
@@ -0,0 +1,371 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
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_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||||
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
|
transform = @program_transform_name@
|
||||||
|
|
||||||
|
NORMAL_INSTALL = :
|
||||||
|
PRE_INSTALL = :
|
||||||
|
POST_INSTALL = :
|
||||||
|
NORMAL_UNINSTALL = :
|
||||||
|
PRE_UNINSTALL = :
|
||||||
|
POST_UNINSTALL = :
|
||||||
|
build_alias = @build_alias@
|
||||||
|
build_triplet = @build@
|
||||||
|
host_alias = @host_alias@
|
||||||
|
host_triplet = @host@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
target_triplet = @target@
|
||||||
|
MAINT = @MAINT@
|
||||||
|
MAKEINFO = @MAKEINFO@
|
||||||
|
PACKAGE = @PACKAGE@
|
||||||
|
RTEMS_CPU = @RTEMS_CPU@
|
||||||
|
RTEMS_HAS_HWAPI = @RTEMS_HAS_HWAPI@
|
||||||
|
RTEMS_HAS_MULTIPROCESSING = @RTEMS_HAS_MULTIPROCESSING@
|
||||||
|
RTEMS_HAS_NETWORKING = @RTEMS_HAS_NETWORKING@
|
||||||
|
RTEMS_HAS_POSIX_API = @RTEMS_HAS_POSIX_API@
|
||||||
|
RTEMS_HAS_RDBG = @RTEMS_HAS_RDBG@
|
||||||
|
RTEMS_HOST = @RTEMS_HOST@
|
||||||
|
RTEMS_LIBC_DIR = @RTEMS_LIBC_DIR@
|
||||||
|
RTEMS_TOPdir = @RTEMS_TOPdir@
|
||||||
|
RTEMS_USE_MACROS = @RTEMS_USE_MACROS@
|
||||||
|
TARGET_SUBDIRS = @TARGET_SUBDIRS@
|
||||||
|
VERSION = @VERSION@
|
||||||
|
target_subdirs = @target_subdirs@
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
|
||||||
|
SUBDIRS = build cpu update
|
||||||
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||||
|
CONFIG_CLEAN_FILES =
|
||||||
|
DIST_COMMON = Makefile.am Makefile.in
|
||||||
|
|
||||||
|
|
||||||
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
|
|
||||||
|
TAR = tar
|
||||||
|
GZIP_ENV = --best
|
||||||
|
all: all-redirect
|
||||||
|
.SUFFIXES:
|
||||||
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/automake/subdirs.am $(top_srcdir)/automake/local.am
|
||||||
|
cd $(top_srcdir) && $(AUTOMAKE) --foreign tools/Makefile
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||||
|
cd $(top_builddir) \
|
||||||
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
|
||||||
|
# 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 = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||||
|
|
||||||
|
subdir = tools
|
||||||
|
|
||||||
|
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 tools/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=../$(top_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
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
.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
|
||||||
|
|
||||||
|
|
||||||
|
depend-recursive \
|
||||||
|
clobber-recursive \
|
||||||
|
preinstall-recursive \
|
||||||
|
debug-recursive \
|
||||||
|
debug_install-recursive \
|
||||||
|
profile-recursive \
|
||||||
|
profile_install-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"
|
||||||
|
|
||||||
|
debug: debug-recursive
|
||||||
|
.PHONY: debug-recursive
|
||||||
|
|
||||||
|
debug_install: debug_install-recursive
|
||||||
|
.PHONY: debug_install-recursive
|
||||||
|
|
||||||
|
profile: profile-recursive
|
||||||
|
.PHONY: profile-recursive
|
||||||
|
|
||||||
|
profile_install: profile_install-recursive
|
||||||
|
.PHONY: profile-recursive
|
||||||
|
|
||||||
|
preinstall: preinstall-recursive
|
||||||
|
.PHONY: preinstall-recursive
|
||||||
|
|
||||||
|
clobber: clobber-recursive
|
||||||
|
.PHONY: clobber-recursive
|
||||||
|
|
||||||
|
depend: depend-recursive
|
||||||
|
.PHONY: depend-recursive
|
||||||
|
|
||||||
|
debug-am:
|
||||||
|
debug: debug-am
|
||||||
|
.PHONY: debug debug-am
|
||||||
|
|
||||||
|
debug_install-am:
|
||||||
|
debug_install: debug_install-am
|
||||||
|
.PHONY: debug_install debug_install-am
|
||||||
|
|
||||||
|
profile-am:
|
||||||
|
profile: profile-am
|
||||||
|
.PHONY: profile profile-am
|
||||||
|
|
||||||
|
profile_install-am:
|
||||||
|
profile_install: profile_install-am
|
||||||
|
.PHONY: profile_install profile_install-am
|
||||||
|
|
||||||
|
preinstall-am:
|
||||||
|
preinstall: preinstall-am
|
||||||
|
.PHONY: preinstall preinstall-am
|
||||||
|
|
||||||
|
clobber-am:
|
||||||
|
clobber: clobber-am
|
||||||
|
.PHONY: clobber clobber-am
|
||||||
|
|
||||||
|
depend-am:
|
||||||
|
depend: depend-am
|
||||||
|
.PHONY: depend depend-am
|
||||||
|
|
||||||
|
# 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:
|
||||||
11
tools/cpu/Makefile.am
Normal file
11
tools/cpu/Makefile.am
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign 1.4
|
||||||
|
ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal
|
||||||
|
|
||||||
|
SUBDIRS = @subdirs@
|
||||||
|
|
||||||
|
include $(top_srcdir)/../../automake/subdirs.am
|
||||||
|
include $(top_srcdir)/../../automake/local.am
|
||||||
276
tools/cpu/aclocal.m4
vendored
Normal file
276
tools/cpu/aclocal.m4
vendored
Normal file
@@ -0,0 +1,276 @@
|
|||||||
|
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$
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl RTEMS_TOP($1)
|
||||||
|
dnl
|
||||||
|
dnl $1 .. relative path from this configure.in to the toplevel configure.in
|
||||||
|
dnl
|
||||||
|
AC_DEFUN(RTEMS_TOP,
|
||||||
|
[dnl
|
||||||
|
AC_ARG_WITH(target-subdir,
|
||||||
|
[ --with-target-subdir=DIR],
|
||||||
|
TARGET_SUBDIR="$withval",
|
||||||
|
TARGET_SUBDIR=".")
|
||||||
|
|
||||||
|
RTEMS_TOPdir="$1";
|
||||||
|
AC_SUBST(RTEMS_TOPdir)
|
||||||
|
|
||||||
|
dnl Determine RTEMS Version string from the VERSION file
|
||||||
|
dnl Hopefully, Joel never changes its format ;-
|
||||||
|
AC_MSG_CHECKING([for RTEMS Version])
|
||||||
|
if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
|
||||||
|
changequote(,)dnl
|
||||||
|
RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
|
||||||
|
sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'`
|
||||||
|
changequote([,])dnl
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR(Unable to find ${RTEMS_TOPdir}/VERSION)
|
||||||
|
fi
|
||||||
|
if test -z "$RTEMS_VERSION"; then
|
||||||
|
AC_MSG_ERROR(Unable to determine version)
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($RTEMS_VERSION)
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
dnl canonicalize target cpu
|
||||||
|
dnl NOTE: Most rtems targets do not fullfil autoconf's
|
||||||
|
dnl target naming conventions "processor-vendor-os"
|
||||||
|
dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
|
||||||
|
dnl and we have to fix it for rtems ourselves
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
|
||||||
|
[
|
||||||
|
AC_CANONICAL_SYSTEM
|
||||||
|
AC_MSG_CHECKING(rtems target cpu)
|
||||||
|
changequote(,)dnl
|
||||||
|
case "${target}" in
|
||||||
|
# hpux unix port should go here
|
||||||
|
i[3456]86-go32-rtems*)
|
||||||
|
RTEMS_CPU=i386
|
||||||
|
;;
|
||||||
|
i[3456]86-pc-linux*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
i[3456]86-*freebsd2*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
no_cpu-*rtems*)
|
||||||
|
RTEMS_CPU=no_cpu
|
||||||
|
;;
|
||||||
|
sparc-sun-solaris*) # unix "simulator" port
|
||||||
|
RTEMS_CPU=unix
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
changequote([,])dnl
|
||||||
|
AC_SUBST(RTEMS_CPU)
|
||||||
|
AC_MSG_RESULT($RTEMS_CPU)
|
||||||
|
])
|
||||||
|
|
||||||
|
# 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)])
|
||||||
|
|
||||||
|
# Add --enable-maintainer-mode option to configure.
|
||||||
|
# From Jim Meyering
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
|
AC_DEFUN(AM_MAINTAINER_MODE,
|
||||||
|
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
||||||
|
dnl maintainer-mode is disabled by default
|
||||||
|
AC_ARG_ENABLE(maintainer-mode,
|
||||||
|
[ --enable-maintainer-mode enable make rules and dependencies not useful
|
||||||
|
(and sometimes confusing) to the casual installer],
|
||||||
|
USE_MAINTAINER_MODE=$enableval,
|
||||||
|
USE_MAINTAINER_MODE=no)
|
||||||
|
AC_MSG_RESULT($USE_MAINTAINER_MODE)
|
||||||
|
AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
|
||||||
|
MAINT=$MAINTAINER_MODE_TRUE
|
||||||
|
AC_SUBST(MAINT)dnl
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
# Define a conditional.
|
||||||
|
|
||||||
|
AC_DEFUN(AM_CONDITIONAL,
|
||||||
|
[AC_SUBST($1_TRUE)
|
||||||
|
AC_SUBST($1_FALSE)
|
||||||
|
if $2; then
|
||||||
|
$1_TRUE=
|
||||||
|
$1_FALSE='#'
|
||||||
|
else
|
||||||
|
$1_TRUE='#'
|
||||||
|
$1_FALSE=
|
||||||
|
fi])
|
||||||
|
|
||||||
|
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
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_TOOLPATHS,
|
||||||
|
[
|
||||||
|
# tooldir='$(exec_prefix)/'$target_alias
|
||||||
|
# Temporary work-around until building in source tree is supported
|
||||||
|
AC_REQUIRE([RTEMS_PROJECT_ROOT])
|
||||||
|
|
||||||
|
tooldir='$(PROJECT_ROOT)'
|
||||||
|
AC_SUBST(tooldir)
|
||||||
|
|
||||||
|
project_includedir='$(tooldir)'/include
|
||||||
|
AC_SUBST(project_includedir)
|
||||||
|
|
||||||
|
project_libdir='$(tooldir)/lib$(MULTISUBDIR)'
|
||||||
|
AC_SUBST(project_libdir)
|
||||||
|
|
||||||
|
project_bindir='$(tooldir)/bin'
|
||||||
|
AC_SUBST(project_bindir)
|
||||||
|
|
||||||
|
rtems_bspdir='$(prefix)/${RTEMS_BSP}'
|
||||||
|
AC_SUBST(rtems_bspdir)
|
||||||
|
rtems_makedir='$(prefix)/make'
|
||||||
|
AC_SUBST(rtems_makedir)
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_DEFUN(RTEMS_PROJECT_ROOT,
|
||||||
|
[dnl
|
||||||
|
AC_REQUIRE([RTEMS_TOP])
|
||||||
|
if test "$TARGET_SUBDIR" = "." ; then
|
||||||
|
PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)';
|
||||||
|
else
|
||||||
|
PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)'
|
||||||
|
fi
|
||||||
|
AC_SUBST(PROJECT_ROOT)
|
||||||
|
|
||||||
|
RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
|
||||||
|
AC_SUBST(RTEMS_ROOT)
|
||||||
|
|
||||||
|
INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change"
|
||||||
|
AC_SUBST(INSTALL_CHANGE)
|
||||||
|
|
||||||
|
PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex"
|
||||||
|
AC_SUBST(PACKHEX)
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
1434
tools/cpu/configure
vendored
Normal file
1434
tools/cpu/configure
vendored
Normal file
File diff suppressed because it is too large
Load Diff
24
tools/cpu/configure.in
Normal file
24
tools/cpu/configure.in
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_INIT(generic)
|
||||||
|
AC_CONFIG_AUX_DIR(../..)
|
||||||
|
|
||||||
|
RTEMS_TOP(../..)
|
||||||
|
RTEMS_CANONICAL_TARGET_CPU
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE(rtems-cpu-tools,$RTEMS_VERSION,no)
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
RTEMS_PATH_KSH
|
||||||
|
|
||||||
|
RTEMS_TOOLPATHS
|
||||||
|
AC_SUBST(program_prefix)
|
||||||
|
|
||||||
|
AC_CONFIG_SUBDIRS(generic)
|
||||||
|
if test -d $srcdir/$RTEMS_CPU; then
|
||||||
|
AC_CONFIG_SUBDIRS($RTEMS_CPU)
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_OUTPUT(Makefile)
|
||||||
Reference in New Issue
Block a user