source: rtems/c/Makefile.am @ 99c31f85

4.104.114.84.95
Last change on this file since 99c31f85 was 299ebb4, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/15/03 at 04:04:18

Merger from rtems-4-6-branch

  • Property mode set to 100644
File size: 1.3 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../aclocal
6
7## NOTE: This Makefile.am is rather fragile to the value of RTEMS_BSP
8## Esp. make clean and make distclean have unwanted side-effects
9## if RTEMS_BSP is not properly set up.
10
11RTEMS_BSP = $(RTEMS_BSP_LIST)
12## The '.' in SUBDIRS ensures that local make-targets (xxx-am) will be
13## triggered before $(RTEMS_BSP_LIST) subdirectories are made.
14SUBDIRS = . $(RTEMS_BSP)
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"; \
22          $(mkinstalldirs) $$i; \
23          ( cd $$i && \
24            CONFIG_SHELL=$(SHELL) RTEMS_BSP=$$i $(rtems_bsp_configure) \
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}
30all-local: ${RTEMS_BSP}
31preinstall-am: ${RTEMS_BSP}
32depend-am: ${RTEMS_BSP}
33
34## Pull in extra files intro the distribution
35EXTRA_DIST = ACKNOWLEDGEMENTS
36EXTRA_DIST += TOOL_TARGETS
37
38DIST_SUBDIRS = ${RTEMS_BSP}
39## -------------------------------------------------------
40include $(top_srcdir)/../automake/subdirs.am
41include $(top_srcdir)/../automake/host.am
Note: See TracBrowser for help on using the repository browser.