[c1c1f33] | 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 | |
---|
| 17 | MANAGER_LIST=dpmem event io msg mp part region sem signal timer rtmon ext |
---|
| 18 | |
---|
| 19 | # Convert *real* spellings in $(MANAGERS) (set |
---|
| 20 | # in application makefile) to their "correct" name. |
---|
| 21 | # (I hate abbreviations :-) |
---|
| 22 | |
---|
| 23 | MANAGERS := $(patsubst message, msg, $(MANAGERS)) |
---|
| 24 | MANAGERS := $(patsubst multi_processor, mp, $(MANAGERS)) |
---|
| 25 | MANAGERS := $(patsubst partition, part, $(MANAGERS)) |
---|
| 26 | MANAGERS := $(patsubst rate_monotonic, rtmon, $(MANAGERS)) |
---|
| 27 | MANAGERS := $(patsubst semaphore, sem, $(MANAGERS)) |
---|
| 28 | MANAGERS := $(patsubst dual_ported_memory, dpmem, $(MANAGERS)) |
---|
| 29 | MANAGERS := $(patsubst extension, ext, $(MANAGERS)) |
---|
| 30 | |
---|
| 31 | # allow 'all' to mean all managers |
---|
| 32 | MANAGERS := $(patsubst all, $(MANAGER_LIST), $(MANAGERS)) |
---|
| 33 | |
---|
| 34 | # and finally rip out duplicates |
---|
| 35 | MANAGERS := $(sort $(MANAGERS)) |
---|
| 36 | |
---|
| 37 | # Pull in the desired "target" compiler |
---|
| 38 | # Programs built on the host use automake generated rules. |
---|
| 39 | # This will not change $(ARCH) -- binaries will still be place as per target |
---|
| 40 | include ${CONFIG.CC} |
---|
| 41 | ifeq (${DEPEND},$(wildcard ${DEPEND})) |
---|
| 42 | include ${DEPEND} # pull in dependencies if they exist |
---|
| 43 | endif |
---|
| 44 | |
---|
| 45 | # |
---|
| 46 | # LIBSUFFIX_VA, will "index" into LIBSUFF-*-v macros and |
---|
| 47 | # convert our ${ARCH} back into .a or _g.a or _p.a based on debug or profile. |
---|
| 48 | # Useful for installing libraries. |
---|
| 49 | # |
---|
| 50 | |
---|
| 51 | LIBSUFFIX_o-optimize_V= |
---|
| 52 | LIBSUFFIX_o-debug_V=_g |
---|
| 53 | LIBSUFFIX_o-profile_V=_p |
---|
| 54 | |
---|
| 55 | LIB_VARIANT=$(LIBSUFFIX_$(ARCH)_V) |
---|
| 56 | LIBSUFFIX_VA = $(LIB_VARIANT).a |
---|