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 06/12/00 at 15:00:15

Merged from 4.5.0-beta3a

  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[8cdb582]1## $Id$
[9b8baa1]2
[8cdb582]3## NOTE: This is a temporary work-around to keep
[ecb2755]4## RTEMS's non automake standard make targets working.
[8cdb582]5## Once automake is fully integrated these make targets
6## and this file will probably be removed
[9b8baa1]7
[df49c60]8## translate VARIANT into VARIANT_V
9VARIANT = OPTIMIZE
[9b8baa1]10
[df49c60]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
[9b8baa1]61
[9608320]62preinstall-am: $(PREINSTALL_FILES)
[8cdb582]63preinstall: preinstall-am
64.PHONY: preinstall preinstall-am
[9b8baa1]65
[ecb2755]66depend-am:
67depend: depend-am
68.PHONY: depend depend-am
[df49c60]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.