revert between 56095 -> 55830 in arch
[AROS.git] / config / build.cfg.in
blob942e85c658c5a9f42aa09b0312a0c97680176f81
1 # Fixup some things ...
3 ifeq ($(AROS_HOST_ARCH),darwin)
4 # We don't allow these includes/libdirs because doing so
5 # results in the wrong version of  libiconv being used
6 # to link components. It has a different ABI from
7 # the system's libiconv, which causes conflicts/unresolved
8 # symbols.
9 HOST_CFLAGS := $(subst -I/usr/local/include,, $(subst -I/usr/local/include/,, $(subst -I/opt/local/include,, $(subst -I/opt/local/include/,, $(subst -I/opt/pkg/include,, $(subst -I/opt/pkg/include/,, $(HOST_CFLAGS)))))))
10 HOST_LDFLAGS   := $(subst -L/usr/local/lib,, $(subst -L/usr/local/lib/,, $(subst -L/opt/local/lib,, $(subst -L/opt/local/lib/,, $(subst -L/opt/pkg/lib,, $(subst -L/opt/pkg/lib/,, $(HOST_LDFLAGS)))))))
11 endif
13 # Optional components
15 #Bootloader
16 GRUB2_VERSION := @target_grub2_version@
18 # DBUS flags
19 DBUS_CFLAGS               := @DBUS_CFLAGS@
20 DBUS_LIBFLAGS             := @DBUS_LIBFLAGS@
22 ifeq ($(OPT_HOST_X11GFX),yes)
23 HOST_X11_CFLAGS           := @aros_host_x11_cflags@
24 HOST_X11_LDFLAGS          := @aros_host_x11_ldflags@
25 endif
27 ifeq ($(OPT_HOST_SDLGFX),yes)
28 HOST_SDL_CFLAGS           := @aros_host_sdl_cflags@
29 HOST_SDL_LIBS             := @aros_host_sdl_libs@
30 endif
32 TARGET_STRIP              := $(TARGET_DEF_STRIP)
33 HOST_STRIP                := $(HOST_DEF_STRIP)
35 # Enable target coverage instrumentation ...
36 TARGET_COVERAGEINSTR      := @aros_config_coverage@
37 TARGET_COVERAGEINSTR_EXTS := .gcno
38 # Enable target function entry/exit instrumentation
39 TARGET_FUNCINSTR          := no
40 # Enable LTO if supported ...
41 TARGET_LTO                := @aros_config_lto@
43 # If set, the build system will use this tool to convert the elf
44 # binary to the targets file format - otherwise the elf will be copied
45 TARGET_TRANSLATEELF       = @aros_elf_translate@
47 KERNEL_CXXFLAGS   := $(subst -Wno-pointer-sign,, $(subst -Werror-implicit-function-declaration,, $(KERNEL_CFLAGS)))
49 # Kernel private includes, in order of precedence:
50 ifneq (,$(findstring $(ARCH),raspi))
51 TARGET_KERNEL_INCLUDES    := -I$(SRCDIR)/arch/arm-native/kernel
52 else
53 TARGET_KERNEL_INCLUDES    := -I$(SRCDIR)/arch/$(CPU)-$(ARCH)/kernel
54 endif
55 TARGET_KERNEL_INCLUDES    += -I$(SRCDIR)/arch/all-$(ARCH)/kernel
56 ifneq ($(FAMILY),)
57 TARGET_KERNEL_INCLUDES    += -I$(SRCDIR)/arch/all-$(FAMILY)/kernel
58 endif
59 TARGET_KERNEL_INCLUDES    += -I$(SRCDIR)/arch/$(CPU)-all/kernel \
60                         -I$(SRCDIR)/rom/kernel
62 # Exec private includes, in order of precedence:
63 ifneq (,$(findstring $(ARCH),raspi))
64 TARGET_EXEC_INCLUDES      := -I$(SRCDIR)/arch/arm-native/exec
65 else
66 TARGET_EXEC_INCLUDES      := -I$(SRCDIR)/arch/$(CPU)-$(ARCH)/exec
67 endif
68 TARGET_EXEC_INCLUDES      += -I$(SRCDIR)/arch/all-$(ARCH)/exec
69 ifneq ($(FAMILY),)
70 TARGET_EXEC_INCLUDES      += -I$(SRCDIR)/arch/all-$(FAMILY)/exec
71 endif
72 TARGET_EXEC_INCLUDES      += -I$(SRCDIR)/arch/$(CPU)-all/exec \
73                       -I$(SRCDIR)/rom/exec
75 PRIV_KERNEL_INCLUDES      := $(TARGET_KERNEL_INCLUDES) $(TARGET_EXEC_INCLUDES)
76 PRIV_EXEC_INCLUDES        := $(TARGET_EXEC_INCLUDES) $(TARGET_KERNEL_INCLUDES)