source: rtems/c/Makefile.am @ 11a26b9

4.104.114.84.95
Last change on this file since 11a26b9 was 299ebb4, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 15, 2003 at 4:04:18 AM

Merger from rtems-4-6-branch

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[811804fe]1##
2## $Id$
3##
[eb299af]4
[feead226]5ACLOCAL_AMFLAGS = -I ../aclocal
[df49c60]6
[29e68b75]7## NOTE: This Makefile.am is rather fragile to the value of RTEMS_BSP
[df49c60]8## Esp. make clean and make distclean have unwanted side-effects
[29e68b75]9## if RTEMS_BSP is not properly set up.
10
[eb299af]11RTEMS_BSP = $(RTEMS_BSP_LIST)
[df49c60]12## The '.' in SUBDIRS ensures that local make-targets (xxx-am) will be
[eb299af]13## triggered before $(RTEMS_BSP_LIST) subdirectories are made.
[d049568]14SUBDIRS = . $(RTEMS_BSP)
[eb299af]15
16## Use @RTEMS_BSP_LIST@ here, using $(RTEMS_BSP_LIST) would trigger
17## this rule for invalid BSPs
18@RTEMS_BSP_LIST@: src/configure
19        @set fnord $(MAKEFLAGS); amf=$$2; \
20        test -n "${RTEMS_BSP}" && for i in ${RTEMS_BSP}; do \
21          echo "Configuring RTEMS_BSP=$$i"; \
[ceddf30]22          $(mkinstalldirs) $$i; \
[eb299af]23          ( cd $$i && \
[dc94a8dc]24            CONFIG_SHELL=$(SHELL) RTEMS_BSP=$$i $(rtems_bsp_configure) \
[eb299af]25            && $(MAKE) $(AM_MAKEFLAGS) preinstall ) \
26          || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
27        done
28
29## Let all RTEMS' make targets depend on ${RTEMS_BSP}
[df49c60]30all-local: ${RTEMS_BSP}
[eb299af]31preinstall-am: ${RTEMS_BSP}
32depend-am: ${RTEMS_BSP}
33
34## Pull in extra files intro the distribution
[299ebb4]35EXTRA_DIST = ACKNOWLEDGEMENTS
36EXTRA_DIST += TOOL_TARGETS
[eb299af]37
38DIST_SUBDIRS = ${RTEMS_BSP}
[811804fe]39## -------------------------------------------------------
[eb299af]40include $(top_srcdir)/../automake/subdirs.am
[df49c60]41include $(top_srcdir)/../automake/host.am
Note: See TracBrowser for help on using the repository browser.