OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [automake/] [local.am] - Blame information for rev 333

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
## $Id: local.am,v 1.2 2001-09-27 11:59:11 chris Exp $
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
9
VARIANT = OPTIMIZE
10
 
11
VARIANT_OPTIMIZE_V = OPTIMIZE
12
VARIANT_DEBUG_V = DEBUG
13
VARIANT_PROFILE_V = PROFILE
14
VARIANT_optimize_V = OPTIMIZE
15
VARIANT_debug_V = DEBUG
16
VARIANT_profile_V = PROFILE
17
 
18
VARIANT_V = $(VARIANT_$(VARIANT)_V)
19
 
20
## Setup the variant build subdirectory
21
ARCH_OPTIMIZE_V = o-optimize
22
ARCH_DEBUG_V = o-debug
23
ARCH_PROFILE_V = o-profile
24
 
25
ARCH__V = $(ARCH_OPTIMIZE_V)
26
ARCH = $(ARCH_$(VARIANT_V)_V)
27
 
28
## Setup the library suffix
29
LIBSUFFIX_OPTIMIZE_V =
30
LIBSUFFIX_DEBUG_V = _g
31
LIBSUFFIX_PROFILE_V = _p
32
 
33
LIBSUFFIX__V = $(LIBSUFFIX_OPTIMIZE_V)
34
LIB_VARIANT = $(LIBSUFFIX_$(VARIANT_V)_V)
35
 
36
LIBSUFFIX_VA = $(LIB_VARIANT).a
37
 
38
## These are supposed to be set in make/custom/.cfg
39
## CFLAGS_OPTIMIZE_V =
40
## CFLAGS_DEBUG_V =
41
## CFLAGS_PROFILE_V =
42
 
43
CFLAGS__V = $(CFLAGS_OPTIMIZE_V)
44
AM_CFLAGS += $(CFLAGS_$(VARIANT_V)_V)
45
 
46
debug:
47
        @echo
48
        @echo "\"make debug\" is obsolete, instead use:"
49
        @echo " make VARIANT=DEBUG"
50
        @echo
51
 
52
.PHONY: debug
53
 
54
profile:
55
        @echo
56
        @echo "\"make profile\" is obsolete, instead use:"
57
        @echo " make VARIANT=PROFILE"
58
        @echo
59
 
60
.PHONY: profile
61
 
62
preinstall-am: $(PREINSTALL_FILES)
63
preinstall: preinstall-am
64
.PHONY: preinstall preinstall-am
65
 
66
depend-am:
67
depend: depend-am
68
.PHONY: depend depend-am
69
 
70
${ARCH}:
71
        mkdir ${ARCH}
72
 
73
clean-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
 
77
distclean-local:
78
        $(RM) Depends-o-optimize Depends-o-debug Depends-o-profile
79
 
80
PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.