make sure features has been run before invoking linklibs-libatomic
[AROS.git] / config / target.cfg.in
blob413971ab9916f0f12a17dc4aa70f97eb7ba33bc7
1 #   Copyright © 1995-2019, The AROS Development Team. All rights reserved.
2 #   $Id$
4 #   Desc: target.cfg - an autoconf output file for make variables.
7 # -------------------------------------------------------------------------- 
8 # TARGET SECTION
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@
36 CONFIG_NOWARN_CFLAGS          = $(foreach nowarn,@aros_nowarn_flags@,$($(nowarn)))
37 CONFIG_WARN_CFLAGS            := @aros_warn_flags@
38 CONFIG_NOWARN_CXXFLAGS        = $(foreach nowarn,$(subst NOWARN_POINTER_SIGN,,@aros_nowarn_flags@),$($(nowarn)))
39 CONFIG_WARN_CXXFLAGS          := $(subst -Werror-implicit-function-declaration,,@aros_warn_flags@)
41 TARGET_SYSROOT                = $(COMPILER_SYSROOT)
42 KERNEL_SYSROOT                = @aros_kernel_sysroot@
43 CONFIG_BASE_CFLAGS            = @aros_config_cflags@ $(CONFIG_NOWARN_CFLAGS)
44 CONFIG_BASE_CXXFLAGS          = @aros_config_cxxflags@ $(CONFIG_NOWARN_CXXFLAGS)
45 CONFIG_BASE_CPPFLAGS          = @aros_config_cppflags@
46 CONFIG_CFLAGS                 = @aros_config_cflags@ $(CONFIG_WARN_CFLAGS) $(CONFIG_NOWARN_CFLAGS)
47 CONFIG_CXXFLAGS               = @aros_config_cxxflags@ $(CONFIG_WARN_CXXFLAGS) $(CONFIG_NOWARN_CXXFLAGS)
48 CONFIG_CPPFLAGS               = @aros_config_cppflags@
49 CONFIG_AFLAGS                 := @aros_config_aflags@
50 CONFIG_LDFLAGS                := @aros_config_ldflags@
51 SHARED_CFLAGS                 := @aros_shared_cflags@
52 SHARED_AFLAGS                 := @aros_shared_aflags@
53 SHARED_LDFLAGS                := @aros_shared_ldflags@
54 KERNEL_CPPFLAGS               = @aros_kernel_cppflags@
55 KERNEL_CFLAGS                 = @aros_kernel_cflags@
56 KERNEL_OBJCFLAGS              := @aros_kernel_objcflags@
57 KERNEL_INCLUDES               := @aros_kernel_includes@
58 KERNEL_LDFLAGS                := @aros_kernel_ldflags@
59 TARGET_CFLAGS                 = $(OPTIMIZATION_CFLAGS) $(CONFIG_CFLAGS) $(USER_CFLAGS)
60 TARGET_CXXFLAGS               = $(OPTIMIZATION_CFLAGS) $(CONFIG_CXXFLAGS) $(USER_CXXFLAGS)
61 TARGET_CPPFLAGS               = $(USER_INCLUDES) $(CONFIG_CPPFLAGS) $(USER_CPPFLAGS)
62 TARGET_LDFLAGS                = $(CONFIG_LDFLAGS) $(TARGET_C_LIBS)
63 DEBUG_CFLAGS                  := @aros_debug_cflags@
64 DEBUG_CXXFLAGS                := @aros_debug_cxxflags@
65 DEBUG_CPPFLAGS                := @aros_debug_cppflags@
66 DEBUG_AFLAGS                  := @aros_debug_aflags@
67 DEBUG_LDFLAGS                 := @aros_debug_ldflags@
68 OPTIMIZATION_CFLAGS           := @aros_optimization_cflags@
69 @aros_isa_extra@ISA_FLAGS                     = @aros_isa_flags@
71 TARGET_ISA_CFLAGS             = $(ISA_FLAGS)
72 TARGET_ISA_CXXFLAGS           = $(ISA_FLAGS)
73 TARGET_ISA_AFLAGS             = $(ISA_FLAGS)
75 TARGET_LIBATOMIC              = @use_libatomic@
76 TARGET_C_LIBS                 := @aros_c_libs@
77 TARGET_CXX_LIBS               := @aros_cxx_libs@
79 COVERAGEINSTR_FLAGS           = $(CFLAGS_PROFILE_ARCS) $(CFLAGS_TEST_COVERAGE)
80 COVERAGEINSTR_LIBS            = gcov
81 FUNCINSTR_FLAGS               = $(CFLAGS_INSTR_FUNCTIONS)
82 FUNCINSTR_LIBS                = instrfunc
84 NOSTDINC_CFLAGS               := @aros_target_nostdinc_cflags@
85 KERNEL_IQUOTE                 = @kernel_cflags_iquote@
86 KERNEL_IQUOTE_END             = @kernel_cflags_iquote_end@
87 NOSTARTUP_LDFLAGS             := @aros_target_nostartup_ldflags@
88 NIX_LDFLAGS                   := @aros_target_nix_ldflags@
89 DETACH_LDFLAGS                := @aros_target_detach_ldflags@
90 NOSTDLIB_LDFLAGS              := @aros_target_nostdlib_ldflags@
92 AR                            := @aros_target_ar@
93 AR_PLAIN                      := @aros_plain_ar@
94 KERNEL_AR                     := @aros_kernel_ar@
95 RANLIB                        := @aros_target_ranlib@
96 KERNEL_RANLIB                 := @aros_kernel_ranlib@
97 NM                            := @aros_target_nm@
98 NM_PLAIN                      := @aros_plain_nm@
99 OBJCOPY                       := @aros_target_objcopy@
100 OBJDUMP                       := @aros_target_objdump@
101 STRIP_PLAIN                   := @aros_target_strip@
102 @target_extra_cfg@
104 # --------------------------------------------------------------------------
105 # MAGIC: This is needed here for MetaMake to work. mmake will read the
106 # configured version of this file to find out a number of variables.
107 # --------------------------------------------------------------------------
108 HOSTDIR                       := $(TOP)/bin/$(AROS_HOST_ARCH)-$(AROS_HOST_CPU)
109 TOOLDIR                       := $(HOSTDIR)/tools
110 GENMFSCRIPT                   := $(TOOLDIR)/genmf.py
111 GENMF                         := $(PYTHON) $(GENMFSCRIPT)
112 ARCH                          := $(AROS_TARGET_ARCH)
113 CPU                           := $(AROS_TARGET_CPU)
114 CPU_MODE                      := $(AROS_TARGET_CPU_MODE)
115 CC                            := $(TARGET_CC)
116 AS                            := $(TARGET_AS)
118 # MMU flags
119 USE_MMU                       := @aros_enable_mmu@
121 # --------------------------------------------------------------------------
122 # Optional components
124 # Defined as 'yes' if we can build our own toolchain.
125 # This is a prerequisite for ObjectiveC and C++ support,
126 # since they depend on the AROS C Library
127 AROS_TARGET_TOOLCHAIN         := @aros_target_toolchain@
129 # The toolchain family to build
130 AROS_TOOLCHAIN                := @aros_toolchain@
132 # Bootloader to use on platforms that support it
133 AROS_TARGET_BOOTLOADER        := @aros_target_bootloader@
135 PCI_HIDD_TARGET               := @pci_hidd_target@
136 CROSSTOOLS_TARGET             := @crosstools_target@
137 OBJC_TARGET                   := @objc_target@
138 JAVA_TARGET                   := @java_target@
139 @aros_target_options@
140 ENABLE_DBUS                   := @ENABLE_DBUS@