source: rtems/c/Makefile.am @ e89694e

Last change on this file since e89694e was effc2c4, checked in by Joel Sherrill <joel.sherrill@…>, on 04/03/00 at 14:44:39

Patch rtems-rc-4.5.0-6-cvs.diff from Ralf Corsepius <corsepiu@…>.
The patch contains:

  • build variants support
  • Reworked make-exe custom/*.cfg for all targets (Should be self-explanatory, may still be incomplete)
  • Several fixes to custom/*.cfgs related to setting debug flags
  • Fixes to some bsp_specs for BSPs which apparently have never been build with debugging before ;)
  • pc386.cfg fix attempts (cf. my mail from earlier today)
  • Updated ampolish (No need to run it, the patch contains the result from having applied it)

Known bugs/deficiencies related to this work:

  • "make [clean|distclean]" support is still incomplete (e.g. "make clean" does not delete all Depends-o-*)
  • Completely untested for linux/posix and hppa.
  • Build failures of i960 BSPs (make VARIANT=DEBUG) - I guess, they are not related to this patch.
  • Successfully tested for all sh, sparc, i386, ppc, m68k BSPs (make VARIANT=DEBUG)
  • make VARIANT=PROFILE not supported by all BSPs (I don't care :)
  • make VARIANT=DEBUG failures below tests/ for some BSPs (e.g. gensh1), because of the tests's binaries being too large to fit into the target memory layout.
  • Property mode set to 100644
File size: 1.4 KB
Line 
1##
2## $Id$
3##
4
5AUTOMAKE_OPTIONS = foreign 1.4
6ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal
7
8## NOTE: This Makefile.am is rather fragile to the value of RTEMS_BSP
9## Esp. make clean and make distclean have unwanted side-effects
10## if RTEMS_BSP is not properly set up.
11
12RTEMS_BSP = $(RTEMS_BSP_LIST)
13## The '.' in SUBDIRS ensures that local make-targets (xxx-am) will be
14## triggered before $(RTEMS_BSP_LIST) subdirectories are made.
15SUBDIRS = make . $(RTEMS_BSP)
16
17## Use @RTEMS_BSP_LIST@ here, using $(RTEMS_BSP_LIST) would trigger
18## this rule for invalid BSPs
19@RTEMS_BSP_LIST@: src/configure
20        @set fnord $(MAKEFLAGS); amf=$$2; \
21        test -n "${RTEMS_BSP}" && for i in ${RTEMS_BSP}; do \
22          echo "Configuring RTEMS_BSP=$$i"; \
23          test -d $$i || mkdir $$i; \
24          ( cd $$i && \
25            RTEMS_BSP=$$i $(rtems_bsp_configure) \
26            && $(MAKE) $(AM_MAKEFLAGS) preinstall ) \
27          || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
28        done
29
30## Let all RTEMS' make targets depend on ${RTEMS_BSP}
31all-local: ${RTEMS_BSP}
32preinstall-am: ${RTEMS_BSP}
33depend-am: ${RTEMS_BSP}
34
35## Pull in extra files intro the distribution
36EXTRA_DIST = ACKNOWLEDGEMENTS README.DOS REQUIRES PROBLEMS TESTED README \
37    UPDATE_HELP
38
39DIST_SUBDIRS = ${RTEMS_BSP}
40## -------------------------------------------------------
41include $(top_srcdir)/../automake/subdirs.am
42include $(top_srcdir)/../automake/host.am
Note: See TracBrowser for help on using the repository browser.