source: rtems/make/leaf.cfg @ c6eba79

4.104.114.84.9
Last change on this file since c6eba79 was 6455dde, checked in by Joel Sherrill <joel.sherrill@…>, on May 9, 2007 at 6:47:22 PM

2007-05-09 Joel Sherrill <joel.sherrill@…>

  • leaf.cfg, compilers/gcc-no_bsp.cfg: Add optional manager stub for Classic API Barrier.
  • Property mode set to 100644
File size: 2.8 KB
Line 
1#
2#  $Id$
3#
4# make/leaf.cfg
5#
6#   Make(1) configuration file include'd by all leaf-node Makefiles
7#
8
9#
10# list of all known managers
11# This list is used, along with $(MANAGERS) (set by app makefile)
12#   to build the list of *not wanted* drivers.
13#
14# ref: target compiler config file for usage
15#
16
17MANAGER_LIST=barrier dpmem event io msg mp part
18MANAGER_LIST+=region sem signal timer rtmon ext
19
20# Convert *real* spellings in $(MANAGERS) (set
21#   in application makefile) to their "correct" name.
22# (I hate abbreviations :-)
23
24MANAGERS := $(patsubst message,            msg,   $(MANAGERS))
25MANAGERS := $(patsubst multi_processor,    mp,    $(MANAGERS))
26MANAGERS := $(patsubst partition,          part,  $(MANAGERS))
27MANAGERS := $(patsubst rate_monotonic,     rtmon, $(MANAGERS))
28MANAGERS := $(patsubst semaphore,          sem,   $(MANAGERS))
29MANAGERS := $(patsubst dual_ported_memory, dpmem, $(MANAGERS))
30MANAGERS := $(patsubst extension,          ext,   $(MANAGERS))
31
32# allow 'all' to mean all managers
33MANAGERS := $(patsubst all, $(MANAGER_LIST), $(MANAGERS))
34
35# and finally rip out duplicates
36MANAGERS := $(sort $(MANAGERS))
37
38#
39# LIBSUFFIX_VA, will "index" into LIBSUFF-*-v macros and
40#   convert our ${ARCH} back into .a or _g.a or _p.a based on debug.
41#   Useful for installing libraries.
42#
43
44LIBSUFFIX_OPTIMIZE_V=
45LIBSUFFIX_DEBUG_V=_g
46
47LIB_VARIANT=$(LIBSUFFIX_$(VARIANT_V)_V)
48LIBSUFFIX_VA = $(LIB_VARIANT).a
49
50# Pull in the desired "target" compiler
51# Programs built on the host use automake generated rules.
52# This will not change $(ARCH) -- binaries will still be place as per target
53include ${CONFIG.CC}
54ifeq (${DEPEND},$(wildcard ${DEPEND}))
55include ${DEPEND}                    # pull in dependencies if they exist
56endif
57
58ifndef AUTOMAKE
59#
60# Builtin targets for compilation variants
61#
62debug:
63        $(MAKE) -f $(MAKEFILE) MAKEFILE=$(MAKEFILE) VARIANT=DEBUG
64endif
65
66#
67# VARIANT_VA will convert our ${ARCH} back into "" or "debug".
68#   Handy when one makefile wants to hop over into a peer's tree and
69#   build something "the same" way.
70#
71
72VARIANT-OPTIMIZE-v =
73VARIANT-DEBUG-v = debug
74
75VARIANT_VA = $(VARIANT-$(VARIANT_V)-v)
76
77#
78# TARGET_VA will convert $@ (expected to be 'debug' etc.)
79#   into "" or "install" as appropriate.
80#   Used for variant recursion.
81#
82
83TARGET_debug_V = all
84
85TARGET_VA = $(TARGET_$@_V)
86
87#
88# Builtin clean and distclean rules
89# Individual makefiles can add stuff via CLEAN_ADDITIONS and CLOBBER_ADDITIONS
90# If desperate to save something, they can override CLEAN_OS, CLEAN_CC, etc.
91#
92
93clean-am: clean-generic
94        -$(RM) -r $(CLEAN_OS) $(CLEAN_CC) $(CLEAN_DEPEND)
95        -$(RM) -r $(VARIANTS)
96
97distclean-am: distclean-generic clean-am
98        -$(RM) -r $(CLOBBER_OS) $(CLOBBER_CC) $(CLOBBER_DEPEND)
99
100ifndef AUTOMAKE
101preinstall-am:
102preinstall: preinstall-am
103
104distclean: distclean-am
105        -$(RM) ./config.status
106
107clean: clean-am
108
109.PHONY: distclean distclean-am
110.PHONY: clean clean-am
111endif
Note: See TracBrowser for help on using the repository browser.