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