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