[811804fe] | 1 | ## |
---|
| 2 | ## $Id$ |
---|
| 3 | ## |
---|
[eb299afc] | 4 | |
---|
[3a8915e] | 5 | AUTOMAKE_OPTIONS = foreign 1.4 |
---|
| 6 | ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal |
---|
[29e68b75] | 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 | |
---|
[eb299afc] | 11 | RTEMS_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. |
---|
| 14 | SUBDIRS= \ |
---|
| 15 | . \ |
---|
| 16 | $(RTEMS_BSP) |
---|
| 17 | |
---|
| 18 | ## Use @RTEMS_BSP_LIST@ here, using $(RTEMS_BSP_LIST) would trigger |
---|
| 19 | ## this rule for invalid BSPs |
---|
| 20 | @RTEMS_BSP_LIST@: src/configure |
---|
| 21 | @set fnord $(MAKEFLAGS); amf=$$2; \ |
---|
| 22 | test -n "${RTEMS_BSP}" && for i in ${RTEMS_BSP}; do \ |
---|
| 23 | echo "Configuring RTEMS_BSP=$$i"; \ |
---|
| 24 | test -d $$i || mkdir $$i; \ |
---|
| 25 | ( cd $$i && \ |
---|
| 26 | RTEMS_BSP=$$i $(rtems_bsp_configure) \ |
---|
| 27 | && $(MAKE) $(AM_MAKEFLAGS) preinstall ) \ |
---|
| 28 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ |
---|
| 29 | done |
---|
| 30 | |
---|
| 31 | ## Let all RTEMS' make targets depend on ${RTEMS_BSP} |
---|
| 32 | all-am: ${RTEMS_BSP} |
---|
| 33 | debug-am: ${RTEMS_BSP} |
---|
| 34 | profile-am: ${RTEMS_BSP} |
---|
| 35 | preinstall-am: ${RTEMS_BSP} |
---|
| 36 | depend-am: ${RTEMS_BSP} |
---|
| 37 | |
---|
| 38 | ## Pull in extra files intro the distribution |
---|
| 39 | EXTRA_DIST = \ |
---|
| 40 | ACKNOWLEDGEMENTS \ |
---|
| 41 | README.DOS \ |
---|
| 42 | REQUIRES \ |
---|
| 43 | PROBLEMS \ |
---|
| 44 | TESTED \ |
---|
| 45 | README \ |
---|
| 46 | UPDATE_HELP |
---|
| 47 | |
---|
| 48 | DIST_SUBDIRS = ${RTEMS_BSP} |
---|
[811804fe] | 49 | ## ------------------------------------------------------- |
---|
[eb299afc] | 50 | include $(top_srcdir)/../automake/subdirs.am |
---|
| 51 | include $(top_srcdir)/../automake/local.am |
---|