1 # Copyright © 1995-2011, 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_CPP := @aros_target_cpp@
15 KERNEL_CPP := @aros_kernel_cpp@
16 TARGET_CC := @aros_cc_pre@ @aros_target_cc@
17 KERNEL_CC := @aros_kernel_cc@
18 TARGET_CXX := @aros_target_cxx@
19 TARGET_AS := @aros_target_as@
20 TARGET_LD := @aros_target_ld@
21 SHARED_LD := @aros_shared_ld@
22 KERNEL_LD := @aros_kernel_ld@
23 GENMAP := @aros_target_genmap@
24 TARGET_OBJCOPY := @aros_target_objcopy@
29 TARGET_STRIP := @aros_target_strip@ @aros_target_strip_flags@
32 TARGET_OBJDUMP := @aros_target_objdump@
33 KERNEL_RESCOMP := @aros_kernel_rescomp@
35 CONFIG_CFLAGS := @aros_config_cflags@
36 CONFIG_AFLAGS := @aros_config_aflags@
37 CONFIG_LDFLAGS := @aros_config_ldflags@
38 SHARED_CFLAGS := @aros_shared_cflags@
39 SHARED_AFLAGS := @aros_shared_aflags@
40 SHARED_LDFLAGS := @aros_shared_ldflags@
41 KERNEL_CFLAGS := @aros_kernel_cflags@
42 KERNEL_OBJCFLAGS := @aros_kernel_objcflags@
43 KERNEL_INCLUDES := @aros_kernel_includes@
44 KERNEL_LDFLAGS := @aros_kernel_ldflags@
45 TARGET_CFLAGS := @aros_target_cflags@
46 DEBUG_CFLAGS := @aros_debug_cflags@
47 DEBUG_AFLAGS := @aros_debug_aflags@
48 DEBUG_LDFLAGS := @aros_debug_ldflags@
50 NOSTDINC_CFLAGS := @aros_target_nostdinc_cflags@
51 KERNEL_IQUOTE := @kernel_cflags_iquote@
52 KERNEL_IQUOTE_END := @kernel_cflags_iquote_end@
53 CFLAGS_IQUOTE := @aros_cflags_iquote@
54 CFLAGS_IQUOTE_END := @aros_cflags_iquote_end@
55 NOSTARTUP_LDFLAGS := @aros_target_nostartup_ldflags@
56 NIX_LDFLAGS := @aros_target_nix_ldflags@
57 DETACH_LDFLAGS := @aros_target_detach_ldflags@
58 NOSTDLIB_LDFLAGS := @aros_target_nostdlib_ldflags@
60 UNUSED_BUT_SET_VARIABLE_CFLAGS := @aros_cflags_unused_but_set_variable@
61 ARRAY_BOUNDS_CFLAGS := @aros_cflags_array_bounds@
62 ENUM_COMPARE_CFLAGS := @aros_cflags_enum_compare@
63 STRICT_OVERFLOW_CFLAGS := @aros_cflags_strict_overflow@
64 FORMAT_SECURITY_CFLAGS := @aros_cflags_format_security@
66 COMPILER_LIBS := @aros_compiler_libs@
67 ARCH_LIBS := @aros_arch_libs@
69 AR := @aros_target_ar@
70 AR_PLAIN := @aros_plain_ar@
71 KERNEL_AR := @aros_kernel_ar@
72 RANLIB := @aros_target_ranlib@
73 KERNEL_RANLIB := @aros_kernel_ranlib@
74 NM := @aros_target_nm@
75 NM_PLAIN := @aros_plain_nm@
76 OBJCOPY := @aros_target_objcopy@
77 OBJDUMP := @aros_target_objdump@
78 STRIP_PLAIN := @aros_target_strip@
81 IOS_PLATFORM := @aros_ios_platform@
82 IOS_OS_VERSION := @aros_ios_version@
83 IOS_SDK_PATH := @aros_ios_sdk@
85 # --------------------------------------------------------------------------
86 # MAGIC: This is needed here for MetaMake to work. mmake will read the
87 # configured version of this file to find out a number of variables.
88 # --------------------------------------------------------------------------
89 HOSTDIR := $(TOP)/bin/$(AROS_HOST_ARCH)-$(AROS_HOST_CPU)
90 TOOLDIR := $(HOSTDIR)/tools
91 GENMF := $(TOOLDIR)/genmf.py
92 ARCH := $(AROS_TARGET_ARCH)
93 CPU := $(AROS_TARGET_CPU)
98 AROS_TARGET_BOOTLOADER := @aros_target_bootloader@
100 # Optional components
101 X11_HIDD_TARGET := @x11_hidd_target@
102 SDL_HIDD_TARGET := @sdl_hidd_target@
103 PCI_HIDD_TARGET := @pci_hidd_target@
104 OSS_LIBRARY_TARGET := @oss_library_target@
105 CROSSTOOLS_TARGET := @crosstools_target@
106 CROSSTOOLS_CXX_TARGET := @crosstools_cxx_target@
108 # Defined as 'yes' if we can build our own toolchain.
109 # This is a prerequisite for ObjectiveC and C++ support,
110 # since they depend on the AROS C Library
111 AROS_TARGET_TOOLCHAIN := @aros_target_toolchain@
113 HOST_X11_CFLAGS := $(addprefix -I,@aros_host_x11_includes@)
114 HOST_X11_LIBS := $(addprefix -L,@aros_host_x11_libdirs@) -lX11
115 HOST_SDL_CFLAGS := @aros_host_sdl_cflags@
116 HOST_SDL_LIBS := @aros_host_sdl_libs@
118 SDL_CFLAGS := @SDL_CFLAGS@
121 ENABLE_DBUS := @ENABLE_DBUS@
122 DBUS_CFLAGS := @DBUS_CFLAGS@
123 DBUS_LIBFLAGS := @DBUS_LIBFLAGS@
126 USE_MMU := @aros_enable_mmu@
128 # Kernel private includes, in order of precedence:
129 PRIV_KERNEL_INCLUDES := -I$(SRCDIR)/arch/$(CPU)-$(ARCH)/kernel \
130 -I$(SRCDIR)/arch/all-$(ARCH)/kernel
132 PRIV_KERNEL_INCLUDES += -I$(SRCDIR)/arch/all-$(FAMILY)/kernel
134 PRIV_KERNEL_INCLUDES += -I$(SRCDIR)/arch/$(CPU)-all/kernel \
135 -I$(SRCDIR)/rom/kernel
137 # Exec private includes, in order of precedence:
138 PRIV_EXEC_INCLUDES := -I$(SRCDIR)/arch/$(CPU)-$(ARCH)/exec \
139 -I$(SRCDIR)/arch/all-$(ARCH)/exec
141 PRIV_EXEC_INCLUDES += -I$(SRCDIR)/arch/all-$(FAMILY)/exec
143 PRIV_EXEC_INCLUDES += -I$(SRCDIR)/arch/$(CPU)-all/exec \