summaryrefslogtreecommitdiffstats
path: root/make/main.cfg
blob: a2599ce2abe9a8262065cf66119878a5e0019f58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#
#  $Id$
#
# make/main.cfg
#
#   Make(1) configuration file include'd by all Makefile's
#

#
# where things are relative to PROJECT_ROOT; shouldn't need to change,
# but could be overridden in custom files.
#

PROJECT_RELEASE=$(PROJECT_ROOT)/$(RTEMS_BSP)
PROJECT_BIN=$(PROJECT_RELEASE)/bin
PROJECT_INCLUDE=$(PROJECT_RELEASE)/lib/include
PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools

#
# Target architecture; may be changed as per 'make "ARCH=${TARGET_ARCH}-debug"'
# This is where the object files get put.
#

ARCH=${TARGET_ARCH}

VARIANT=

#
# Initial target for make(1)
#  Once this is established we can safely include other targets
#  within this make-include file.
#

default_target: all

#
# Describe the host os
#
# include $(PROJECT_ROOT)/make/target.cfg
# include $(PROJECT_ROOT)/make/host.cfg

#
# Default makefile name
# May be overridden by command line macro assignment
#

MAKEFILE=Makefile

#
# Target variant names
# and rule to expand them into (for example): sun4 sun4-debug sun4-profile
# Note compiler config may add to TARGET_VARIANTS
#

TARGET_VARIANTS = debug profile

#
# Generate list of object directories: sun4, sun4-debug, sun4-profile
#
VARIANTS=${TARGET_ARCH} ${TARGET_VARIANTS:%=${TARGET_ARCH}-%}

#
# List of "recursion-able" targets for directory Makefiles
#

RECURSE_TARGETS=all clean protos get clobber depend install \
                $(TARGET_VARIANTS) $(TARGET_VARIANTS:%=%_install)

${ARCH}:
	test -d ${ARCH} || $(MKDIR) ${ARCH}


# general purpose forcing dependency; try to use .PHONY instead
FORCEIT:

FORCE:

.PHONY:	$(RECURSE_TARGETS)