1 # Copyright © 1995-2014, 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 := @aros_cc_pre@ @aros_target_cc@
20 KERNEL_CC := @aros_kernel_cc@
21 TARGET_CXX := @aros_target_cxx@
22 TARGET_AS := @aros_target_as@
23 TARGET_LD := @aros_target_ld@
24 SHARED_LD := @aros_shared_ld@
25 KERNEL_LD := @aros_kernel_ld@
26 GENMAP := @aros_target_genmap@
27 TARGET_OBJCOPY := @aros_target_objcopy@
32 TARGET_STRIP := @aros_target_strip@ @aros_target_strip_flags@
35 TARGET_OBJDUMP := @aros_target_objdump@
36 KERNEL_RESCOMP := @aros_kernel_rescomp@
38 TARGET_SYSROOT := @aros_config_sysroot@
39 KERNEL_SYSROOT := @aros_kernel_sysroot@
40 CONFIG_CFLAGS := @aros_config_cflags@
41 CONFIG_AFLAGS := @aros_config_aflags@
42 CONFIG_LDFLAGS := @aros_config_ldflags@
43 SHARED_CFLAGS := @aros_shared_cflags@
44 SHARED_AFLAGS := @aros_shared_aflags@
45 SHARED_LDFLAGS := @aros_shared_ldflags@
46 KERNEL_CFLAGS := @aros_kernel_cflags@
47 KERNEL_OBJCFLAGS := @aros_kernel_objcflags@
48 KERNEL_INCLUDES := @aros_kernel_includes@
49 KERNEL_LDFLAGS := @aros_kernel_ldflags@
50 TARGET_CFLAGS := @aros_target_cflags@
51 DEBUG_CFLAGS := @aros_debug_cflags@
52 DEBUG_AFLAGS := @aros_debug_aflags@
53 DEBUG_LDFLAGS := @aros_debug_ldflags@
54 OPTIMIZATION_CFLAGS := @aros_optimization_cflags@
55 ISA_FLAGS := @aros_isa_flags@
57 NOSTDINC_CFLAGS := @aros_target_nostdinc_cflags@
58 KERNEL_IQUOTE := @kernel_cflags_iquote@
59 KERNEL_IQUOTE_END := @kernel_cflags_iquote_end@
60 CFLAGS_IQUOTE := @aros_cflags_iquote@
61 CFLAGS_IQUOTE_END := @aros_cflags_iquote_end@
62 NOSTARTUP_LDFLAGS := @aros_target_nostartup_ldflags@
63 NIX_LDFLAGS := @aros_target_nix_ldflags@
64 DETACH_LDFLAGS := @aros_target_detach_ldflags@
65 NOSTDLIB_LDFLAGS := @aros_target_nostdlib_ldflags@
67 UNUSED_BUT_SET_VARIABLE_CFLAGS := @aros_cflags_unused_but_set_variable@
68 ARRAY_BOUNDS_CFLAGS := @aros_cflags_array_bounds@
69 ENUM_COMPARE_CFLAGS := @aros_cflags_enum_compare@
70 STRICT_OVERFLOW_CFLAGS := @aros_cflags_strict_overflow@
71 FORMAT_SECURITY_CFLAGS := @aros_cflags_format_security@
73 COMPILER_LIBS := @aros_compiler_libs@
74 ARCH_LIBS := @aros_arch_libs@
76 AR := @aros_target_ar@
77 AR_PLAIN := @aros_plain_ar@
78 KERNEL_AR := @aros_kernel_ar@
79 RANLIB := @aros_target_ranlib@
80 KERNEL_RANLIB := @aros_kernel_ranlib@
81 NM := @aros_target_nm@
82 NM_PLAIN := @aros_plain_nm@
83 OBJCOPY := @aros_target_objcopy@
84 OBJDUMP := @aros_target_objdump@
85 STRIP_PLAIN := @aros_target_strip@
88 IOS_PLATFORM := @aros_ios_platform@
89 IOS_OS_VERSION := @aros_ios_version@
90 IOS_SDK_PATH := @aros_ios_sdk@
92 # ARM gcc default target
93 GCC_DEFAULT_CPU := @gcc_default_cpu@
94 GCC_DEFAULT_FPU := @gcc_default_fpu@
95 GCC_DEFAULT_FLOAT_ABI := @gcc_default_float_abi@
97 # --------------------------------------------------------------------------
98 # MAGIC: This is needed here for MetaMake to work. mmake will read the
99 # configured version of this file to find out a number of variables.
100 # --------------------------------------------------------------------------
101 HOSTDIR := $(TOP)/bin/$(AROS_HOST_ARCH)-$(AROS_HOST_CPU)
102 TOOLDIR := $(HOSTDIR)/tools
103 GENMF := $(TOOLDIR)/genmf.py
104 ARCH := $(AROS_TARGET_ARCH)
105 CPU := $(AROS_TARGET_CPU)
110 AROS_TARGET_BOOTLOADER := @aros_target_bootloader@
112 # Optional components
113 UNIXGFX_HIDD_TARGET := @unixgfx_hidd_target@
114 SDL_HIDD_TARGET := @sdl_hidd_target@
115 PCI_HIDD_TARGET := @pci_hidd_target@
116 OSS_LIBRARY_TARGET := @oss_library_target@
117 CROSSTOOLS_TARGET := @crosstools_target@
118 OBJC_TARGET := @objc_target@
119 JAVA_TARGET := @java_target@
121 # Defined as 'yes' if we can build our own toolchain.
122 # This is a prerequisite for ObjectiveC and C++ support,
123 # since they depend on the AROS C Library
124 AROS_TARGET_TOOLCHAIN := @aros_target_toolchain@
126 HOST_X11_CFLAGS := $(addprefix -I,@aros_host_x11_includes@)
127 HOST_X11_LIBS := $(addprefix -L,@aros_host_x11_libdirs@) -lX11
128 HOST_SDL_CFLAGS := @aros_host_sdl_cflags@
129 HOST_SDL_LIBS := @aros_host_sdl_libs@
131 SDL_CFLAGS := @SDL_CFLAGS@
134 ENABLE_DBUS := @ENABLE_DBUS@
135 DBUS_CFLAGS := @DBUS_CFLAGS@
136 DBUS_LIBFLAGS := @DBUS_LIBFLAGS@
139 USE_MMU := @aros_enable_mmu@
141 # Kernel private includes, in order of precedence:
142 PRIV_KERNEL_INCLUDES := -I$(SRCDIR)/arch/$(CPU)-$(ARCH)/kernel \
143 -I$(SRCDIR)/arch/all-$(ARCH)/kernel
145 PRIV_KERNEL_INCLUDES += -I$(SRCDIR)/arch/all-$(FAMILY)/kernel
147 PRIV_KERNEL_INCLUDES += -I$(SRCDIR)/arch/$(CPU)-all/kernel \
148 -I$(SRCDIR)/rom/kernel
150 # Exec private includes, in order of precedence:
151 PRIV_EXEC_INCLUDES := -I$(SRCDIR)/arch/$(CPU)-$(ARCH)/exec \
152 -I$(SRCDIR)/arch/all-$(ARCH)/exec
154 PRIV_EXEC_INCLUDES += -I$(SRCDIR)/arch/all-$(FAMILY)/exec
156 PRIV_EXEC_INCLUDES += -I$(SRCDIR)/arch/$(CPU)-all/exec \
160 AROS_ANDROID_ANTAPK := @aros_android_antapk@