source: rtems/make/leaf.cfg @ df49c60

4.104.114.84.9
Last change on this file since df49c60 was df49c60, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 12, 2000 at 3:00:15 PM

Merged from 4.5.0-beta3a

  • Property mode set to 100644
File size: 3.2 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=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
23MANAGERS := $(patsubst message,            msg,   $(MANAGERS))
24MANAGERS := $(patsubst multi_processor,    mp,    $(MANAGERS))
25MANAGERS := $(patsubst partition,          part,  $(MANAGERS))
26MANAGERS := $(patsubst rate_monotonic,     rtmon, $(MANAGERS))
27MANAGERS := $(patsubst semaphore,          sem,   $(MANAGERS))
28MANAGERS := $(patsubst dual_ported_memory, dpmem, $(MANAGERS))
29MANAGERS := $(patsubst extension,          ext,   $(MANAGERS))
30
31# allow 'all' to mean all managers
32MANAGERS := $(patsubst all, $(MANAGER_LIST), $(MANAGERS))
33
34# and finally rip out duplicates
35MANAGERS := $(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
40include ${CONFIG.CC}
41ifeq (${DEPEND},$(wildcard ${DEPEND}))
42include ${DEPEND}                    # pull in dependencies if they exist
43endif
44
45ifndef AUTOMAKE
46#
47# Builtin targets for compilation variants
48#
49debug:
50        $(MAKE) -f $(MAKEFILE) MAKEFILE=$(MAKEFILE) "ARCH=o-debug" \
51      "CFLAGS_DEBUG=$(CFLAGS_DEBUG_V)" \
52      "CFLAGS_OPTIMIZE=$(CFLAGS_OPTIMIZE_V)" \
53      "LDFLAGS_DEBUG=$(LDFLAGS_DEBUG_V)" $(TARGET_VA)
54
55profile:
56        $(MAKE) -f $(MAKEFILE) \
57      MAKEFILE=$(MAKEFILE) "ARCH=o-profile" \
58      "CFLAGS_PROFILE=$(CFLAGS_PROFILE_V)" \
59      "LDFLAGS_PROFILE=$(LDFLAGS_PROFILE_V)" $(TARGET_VA)
60endif
61
62#
63# VARIANT_VA will convert our ${ARCH} back into "" or "debug" or "profile".
64#   Handy when one makefile wants to hop over into a peer's tree and
65#   build something "the same" way.
66#
67
68VARIANT-o-optimize-v =
69VARIANT-o-debug-v = debug
70VARIANT-o-profile-v = profile
71
72VARIANT_VA = $(VARIANT-$(ARCH)-v)
73
74#
75# TARGET_VA will convert $@ (expected to be 'debug' or 'profile' etc.)
76#   into "" or "install" as appropriate.
77#   Used for variant recursion.
78#
79
80TARGET_debug_V = all
81TARGET_profile_V = all
82
83TARGET_VA = $(TARGET_$@_V)
84
85#
86# LIBSUFFIX_VA, will "index" into LIBSUFF-*-v macros and
87#   convert our ${ARCH} back into .a or _g.a or _p.a based on debug or profile.
88#   Useful for installing libraries.
89#
90
91LIBSUFFIX_o-optimize_V=
92LIBSUFFIX_o-debug_V=_g
93LIBSUFFIX_o-profile_V=_p
94
95LIB_VARIANT=$(LIBSUFFIX_$(ARCH)_V)
96LIBSUFFIX_VA = $(LIB_VARIANT).a
97
98#
99# Builtin clean and distclean rules
100# Individual makefiles can add stuff via CLEAN_ADDITIONS and CLOBBER_ADDITIONS
101# If desperate to save something, they can override CLEAN_OS, CLEAN_CC, etc.
102#
103
104clean-am: clean-generic
105        -$(RM) -r $(CLEAN_OS) $(CLEAN_CC) $(CLEAN_DEPEND)
106        -$(RM) -r $(VARIANTS)
107
108distclean-am: distclean-generic clean-am
109        -$(RM) -r $(CLOBBER_OS) $(CLOBBER_CC) $(CLOBBER_DEPEND)
110
111ifndef AUTOMAKE
112preinstall-am:
113preinstall: preinstall-am
114
115distclean: distclean-am
116        -$(RM) ./config.status
117
118clean: clean-am
119
120.PHONY: distclean distclean-am
121.PHONY: clean clean-am
122endif
Note: See TracBrowser for help on using the repository browser.