source: rtems/automake/local.am @ df49c60

4.104.114.84.95
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: 1.7 KB
Line 
1## $Id$
2
3## NOTE: This is a temporary work-around to keep
4## RTEMS's non automake standard make targets working.
5## Once automake is fully integrated these make targets
6## and this file will probably be removed
7
8## translate VARIANT into VARIANT_V
9VARIANT = OPTIMIZE
10
11VARIANT_OPTIMIZE_V = OPTIMIZE
12VARIANT_DEBUG_V = DEBUG
13VARIANT_PROFILE_V = PROFILE
14VARIANT_optimize_V = OPTIMIZE
15VARIANT_debug_V = DEBUG
16VARIANT_profile_V = PROFILE
17
18VARIANT_V = $(VARIANT_$(VARIANT)_V)
19
20## Setup the variant build subdirectory
21ARCH_OPTIMIZE_V = o-optimize
22ARCH_DEBUG_V = o-debug
23ARCH_PROFILE_V = o-profile
24
25ARCH__V = $(ARCH_OPTIMIZE_V)
26ARCH = $(ARCH_$(VARIANT_V)_V)
27
28## Setup the library suffix
29LIBSUFFIX_OPTIMIZE_V =
30LIBSUFFIX_DEBUG_V = _g
31LIBSUFFIX_PROFILE_V = _p
32
33LIBSUFFIX__V = $(LIBSUFFIX_OPTIMIZE_V)
34LIB_VARIANT = $(LIBSUFFIX_$(VARIANT_V)_V)
35
36LIBSUFFIX_VA = $(LIB_VARIANT).a
37
38## These are supposed to be set in make/custom/<bsp>.cfg
39## CFLAGS_OPTIMIZE_V =
40## CFLAGS_DEBUG_V =
41## CFLAGS_PROFILE_V =
42
43CFLAGS__V = $(CFLAGS_OPTIMIZE_V)
44AM_CFLAGS += $(CFLAGS_$(VARIANT_V)_V)
45
46debug:
47        @echo
48        @echo "\"make debug\" is obsolete, instead use:"
49        @echo " make VARIANT=DEBUG"
50        @echo
51
52.PHONY: debug
53
54profile:
55        @echo
56        @echo "\"make profile\" is obsolete, instead use:"
57        @echo " make VARIANT=PROFILE"
58        @echo
59
60.PHONY: profile
61
62preinstall-am: $(PREINSTALL_FILES)
63preinstall: preinstall-am
64.PHONY: preinstall preinstall-am
65
66depend-am:
67depend: depend-am
68.PHONY: depend depend-am
69
70${ARCH}:
71        mkdir ${ARCH}
72
73clean-local:
74        $(RM) -r o-optimize o-debug o-profile $(CLEANDIRS)
75        $(RM) Depends-o-optimize.tmp Depends-o-debug.tmp Depends-o-profile.tmp
76
77distclean-local:
78        $(RM) Depends-o-optimize Depends-o-debug Depends-o-profile
79
80PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools
Note: See TracBrowser for help on using the repository browser.