check for -Wreturn-type
[AROS.git] / config / build.cfg.in
blob1dcc1e791a786c1e9058df617699c150c637e5a9
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 # DBUS flags
16 DBUS_CFLAGS     := @DBUS_CFLAGS@
17 DBUS_LIBFLAGS   := @DBUS_LIBFLAGS@
19 ifeq ($(OPT_HOST_X11GFX),yes)
20 HOST_X11_CFLAGS := @aros_host_x11_cflags@
21 HOST_X11_LDFLAGS   := @aros_host_x11_ldflags@
22 endif
24 ifeq ($(OPT_HOST_SDLGFX),yes)
25 HOST_SDL_CFLAGS := @aros_host_sdl_cflags@
26 HOST_SDL_LIBS   := @aros_host_sdl_libs@
27 endif
29 ifeq ($(DEBUG),yes)
30 TARGET_STRIP    := @NOP@
31 HOST_STRIP      := @NOP@
32 else
33 TARGET_STRIP    := $(TARGET_DEF_STRIP)
34 HOST_STRIP      := $(HOST_DEF_STRIP)
35 endif
37 # Disable LTO for now ...
38 #TARGET_LTO      := @aros_config_lto@
39 TARGET_LTO:=no
41 KERNEL_CXXFLAGS   := $(subst -Wno-pointer-sign,, $(subst -Werror-implicit-function-declaration,, $(KERNEL_CFLAGS)))
42 TARGET_CXXFLAGS   := $(subst -Wno-pointer-sign,, $(subst -Werror-implicit-function-declaration,, $(TARGET_CFLAGS)))
44 # Kernel private includes, in order of precedence:
45 ifneq (,$(findstring $(ARCH),raspi))
46 TARGET_KERNEL_INCLUDES := -I$(SRCDIR)/arch/$(CPU)-native/kernel
47 else
48 TARGET_KERNEL_INCLUDES := -I$(SRCDIR)/arch/$(CPU)-$(ARCH)/kernel
49 endif
50 TARGET_KERNEL_INCLUDES += -I$(SRCDIR)/arch/all-$(ARCH)/kernel
51 ifneq ($(FAMILY),)
52 TARGET_KERNEL_INCLUDES += -I$(SRCDIR)/arch/all-$(FAMILY)/kernel
53 endif
54 TARGET_KERNEL_INCLUDES += -I$(SRCDIR)/arch/$(CPU)-all/kernel \
55                         -I$(SRCDIR)/rom/kernel
57 # Exec private includes, in order of precedence:
58 ifneq (,$(findstring $(ARCH),raspi))
59 TARGET_EXEC_INCLUDES := -I$(SRCDIR)/arch/$(CPU)-native/exec
60 else
61 TARGET_EXEC_INCLUDES := -I$(SRCDIR)/arch/$(CPU)-$(ARCH)/exec
62 endif
63 TARGET_EXEC_INCLUDES += -I$(SRCDIR)/arch/all-$(ARCH)/exec
64 ifneq ($(FAMILY),)
65 TARGET_EXEC_INCLUDES += -I$(SRCDIR)/arch/all-$(FAMILY)/exec
66 endif
67 TARGET_EXEC_INCLUDES += -I$(SRCDIR)/arch/$(CPU)-all/exec \
68                       -I$(SRCDIR)/rom/exec
70 PRIV_KERNEL_INCLUDES := $(TARGET_KERNEL_INCLUDES) $(TARGET_EXEC_INCLUDES)
71 PRIV_EXEC_INCLUDES := $(TARGET_EXEC_INCLUDES) $(TARGET_KERNEL_INCLUDES)