URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [Makefile.am] - Blame information for rev 565
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
30 |
unneback |
##
|
2 |
|
|
## $Id: Makefile.am,v 1.2 2001-09-27 11:59:11 chris Exp $
|
3 |
|
|
##
|
4 |
|
|
|
5 |
|
|
AUTOMAKE_OPTIONS = foreign 1.4
|
6 |
|
|
ACLOCAL_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 |
|
|
|
12 |
|
|
RTEMS_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.
|
15 |
|
|
SUBDIRS = 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}
|
31 |
|
|
all-local: ${RTEMS_BSP}
|
32 |
|
|
preinstall-am: ${RTEMS_BSP}
|
33 |
|
|
depend-am: ${RTEMS_BSP}
|
34 |
|
|
|
35 |
|
|
## Pull in extra files intro the distribution
|
36 |
|
|
EXTRA_DIST = ACKNOWLEDGEMENTS README.DOS REQUIRES PROBLEMS TESTED README \
|
37 |
|
|
UPDATE_HELP
|
38 |
|
|
|
39 |
|
|
DIST_SUBDIRS = ${RTEMS_BSP}
|
40 |
|
|
## -------------------------------------------------------
|
41 |
|
|
include $(top_srcdir)/../automake/subdirs.am
|
42 |
|
|
include $(top_srcdir)/../automake/host.am
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.