1 # Copyright © 1995-2019, The AROS Development Team. All rights reserved.
4 # Desc: target.cfg - an autoconf output file for make variables.
7 # --------------------------------------------------------------------------
9 # --------------------------------------------------------------------------
10 FAMILY := @aros_target_family@
11 FLAVOUR := @aros_flavour@
12 SHARED_MOD := @aros_shared_default@
14 TARGET_BINUTILS_VER := @target_binutils_version@
15 TARGET_GCC_VER := @target_gcc_version@
17 TARGET_CPP := @aros_target_cpp@
18 KERNEL_CPP := @aros_kernel_cpp@
19 TARGET_CC := $(CC_PREFIX) @aros_target_cc@
20 KERNEL_CC := @aros_kernel_cc@
21 TARGET_CXX := @aros_target_cxx@
22 KERNEL_CXX := @aros_target_cxx@
23 TARGET_AS := @aros_target_as@
24 TARGET_LD := @aros_target_ld@
25 SHARED_LD := @aros_shared_ld@
26 KERNEL_LD := @aros_kernel_ld@
27 GENMAP := @aros_target_genmap@
28 TARGET_OBJCOPY := @aros_target_objcopy@
30 TARGET_DEF_STRIP := @aros_target_strip@ @aros_target_strip_flags@
32 TARGET_OBJDUMP := @aros_target_objdump@
33 KERNEL_RESCOMP := @aros_kernel_rescomp@
35 COMPILER_LIBS := @aros_compiler_libs@
36 ARCH_LIBS := @aros_arch_libs@
38 CONFIG_NOWARN_CFLAGS = $(foreach nowarn,@aros_nowarn_flags@,$($(nowarn)))
39 CONFIG_WARN_CFLAGS := @aros_warn_flags@
40 CONFIG_NOWARN_CXXFLAGS = $(foreach nowarn,$(subst NOWARN_POINTER_SIGN,,@aros_nowarn_flags@),$($(nowarn)))
41 CONFIG_WARN_CXXFLAGS := $(subst -Werror-implicit-function-declaration,,@aros_warn_flags@)
43 TARGET_SYSROOT = $(COMPILER_SYSROOT)
44 KERNEL_SYSROOT = @aros_kernel_sysroot@
45 CONFIG_BASE_CFLAGS = @aros_config_cflags@ $(CONFIG_NOWARN_CFLAGS)
46 CONFIG_BASE_CXXFLAGS = @aros_config_cxxflags@ $(CONFIG_NOWARN_CXXFLAGS)
47 CONFIG_BASE_CPPFLAGS = @aros_config_cppflags@
48 CONFIG_CFLAGS = @aros_config_cflags@ $(CONFIG_WARN_CFLAGS) $(CONFIG_NOWARN_CFLAGS)
49 CONFIG_CXXFLAGS = @aros_config_cxxflags@ $(CONFIG_WARN_CXXFLAGS) $(CONFIG_NOWARN_CXXFLAGS)
50 CONFIG_CPPFLAGS = @aros_config_cppflags@
51 CONFIG_AFLAGS := @aros_config_aflags@
52 CONFIG_LDFLAGS := @aros_config_ldflags@
53 SHARED_CFLAGS := @aros_shared_cflags@
54 SHARED_AFLAGS := @aros_shared_aflags@
55 SHARED_LDFLAGS := @aros_shared_ldflags@
56 KERNEL_CPPFLAGS = @aros_kernel_cppflags@
57 KERNEL_CFLAGS = @aros_kernel_cflags@
58 KERNEL_OBJCFLAGS := @aros_kernel_objcflags@
59 KERNEL_INCLUDES := @aros_kernel_includes@
60 KERNEL_LDFLAGS := @aros_kernel_ldflags@
61 TARGET_CFLAGS = $(OPTIMIZATION_CFLAGS) $(CONFIG_CFLAGS) $(USER_CFLAGS)
62 TARGET_CXXFLAGS = $(OPTIMIZATION_CFLAGS) $(CONFIG_CXXFLAGS) $(USER_CXXFLAGS)
63 TARGET_CPPFLAGS = $(USER_INCLUDES) $(CONFIG_CPPFLAGS) $(USER_CPPFLAGS)
64 TARGET_LDFLAGS = $(CONFIG_LDFLAGS) $(ARCH_LIBS)
65 DEBUG_CFLAGS := @aros_debug_cflags@
66 DEBUG_CXXFLAGS := @aros_debug_cxxflags@
67 DEBUG_CPPFLAGS := @aros_debug_cppflags@
68 DEBUG_AFLAGS := @aros_debug_aflags@
69 DEBUG_LDFLAGS := @aros_debug_ldflags@
70 OPTIMIZATION_CFLAGS := @aros_optimization_cflags@
71 @aros_isa_extra@ISA_FLAGS = @aros_isa_flags@
73 TARGET_ISA_CFLAGS = $(ISA_FLAGS)
74 TARGET_ISA_CXXFLAGS = $(ISA_FLAGS)
75 TARGET_ISA_AFLAGS = $(ISA_FLAGS)
77 COVERAGEINSTR_FLAGS = $(CFLAGS_PROFILE_ARCS) $(CFLAGS_TEST_COVERAGE)
78 COVERAGEINSTR_LIBS = gcov
79 FUNCINSTR_FLAGS = $(CFLAGS_INSTR_FUNCTIONS)
80 FUNCINSTR_LIBS = instrfunc
82 NOSTDINC_CFLAGS := @aros_target_nostdinc_cflags@
83 KERNEL_IQUOTE = @kernel_cflags_iquote@
84 KERNEL_IQUOTE_END = @kernel_cflags_iquote_end@
85 NOSTARTUP_LDFLAGS := @aros_target_nostartup_ldflags@
86 NIX_LDFLAGS := @aros_target_nix_ldflags@
87 DETACH_LDFLAGS := @aros_target_detach_ldflags@
88 NOSTDLIB_LDFLAGS := @aros_target_nostdlib_ldflags@
90 AR := @aros_target_ar@
91 AR_PLAIN := @aros_plain_ar@
92 KERNEL_AR := @aros_kernel_ar@
93 RANLIB := @aros_target_ranlib@
94 KERNEL_RANLIB := @aros_kernel_ranlib@
95 NM := @aros_target_nm@
96 NM_PLAIN := @aros_plain_nm@
97 OBJCOPY := @aros_target_objcopy@
98 OBJDUMP := @aros_target_objdump@
99 STRIP_PLAIN := @aros_target_strip@
102 # --------------------------------------------------------------------------
103 # MAGIC: This is needed here for MetaMake to work. mmake will read the
104 # configured version of this file to find out a number of variables.
105 # --------------------------------------------------------------------------
106 HOSTDIR := $(TOP)/bin/$(AROS_HOST_ARCH)-$(AROS_HOST_CPU)
107 TOOLDIR := $(HOSTDIR)/tools
108 GENMFSCRIPT := $(TOOLDIR)/genmf.py
109 GENMF := $(PYTHON) $(GENMFSCRIPT)
110 ARCH := $(AROS_TARGET_ARCH)
111 CPU := $(AROS_TARGET_CPU)
112 CPU_MODE := $(AROS_TARGET_CPU_MODE)
117 USE_MMU := @aros_enable_mmu@
119 # --------------------------------------------------------------------------
120 # Optional components
122 # Defined as 'yes' if we can build our own toolchain.
123 # This is a prerequisite for ObjectiveC and C++ support,
124 # since they depend on the AROS C Library
125 AROS_TARGET_TOOLCHAIN := @aros_target_toolchain@
127 # The toolchain family to build
128 AROS_TOOLCHAIN := @aros_toolchain@
130 # Bootloader to use on platforms that support it
131 AROS_TARGET_BOOTLOADER := @aros_target_bootloader@
133 PCI_HIDD_TARGET := @pci_hidd_target@
134 CROSSTOOLS_TARGET := @crosstools_target@
135 OBJC_TARGET := @objc_target@
136 JAVA_TARGET := @java_target@
137 @aros_target_options@
138 ENABLE_DBUS := @ENABLE_DBUS@