source: rtems/automake/subdirs.am @ effc2c4

Last change on this file since effc2c4 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.1 KB
Line 
1## $Id$
2
3## Borrowed from automake-1.4 and adapted to RTEMS
4
5## NOTE: This is a temporary work-around to keep
6## RTEMS's non automake standard make targets working.
7## Once automake is fully integrated these make targets
8## and this file will probably be removed
9
10depend-recursive \
11preinstall-recursive:
12        @set fnord $(MAKEFLAGS); amf=$$2; \
13        dot_seen=no; \
14        target=`echo $@ | sed s/-recursive//`; \
15        list='$(SUBDIRS)'; for subdir in $$list; do \
16          echo "Making $$target in $$subdir"; \
17          if test "$$subdir" = "."; then \
18            dot_seen=yes; \
19            local_target="$$target-am"; \
20          else \
21            local_target="$$target"; \
22          fi; \
23          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
24## This trick allows "-k" to keep its natural meaning when running a
25## recursive rule.
26           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
27        done; \
28        if test "$$dot_seen" = "no"; then \
29          $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
30        fi; test -z "$$fail"
31
32preinstall: preinstall-recursive
33.PHONY: preinstall-recursive
34
35depend: depend-recursive
36.PHONY: depend-recursive
Note: See TracBrowser for help on using the repository browser.