From 30aedab3d9c66254b4654f3e143b4631732fb202 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Fri, 15 Aug 2008 09:49:10 +0000 Subject: Make optimisation flags target-specific once more. Amiga and BeOS will need to confirm theirs svn path=/trunk/netsurf/; revision=5121 --- Makefile.config | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/Makefile.config b/Makefile.config index 9aecfa283..85685a2e5 100644 --- a/Makefile.config +++ b/Makefile.config @@ -48,8 +48,8 @@ NETSURF_HOMEPAGE := "http://www.netsurf-browser.org/welcome/" # Valid options: YES, NO NETSURF_USE_LIBICONV_PLUG := YES -# Initial CFLAGS. Typically optimisation level etc. -CFLAGS := -O2 -Wuninitialized +# Initial CFLAGS. Optimisation level etc. tend to be target specific. +CFLAGS := # ---------------------------------------------------------------------------- # RISC OS-specific options @@ -80,6 +80,9 @@ ifeq ($(TARGET),riscos) # Valid options: YES, NO NETSURF_USE_PLUGINS := NO + # Optimisation levels + CFLAGS += -O -Wuninitialized + endif # ---------------------------------------------------------------------------- @@ -111,6 +114,10 @@ ifeq ($(TARGET),gtk) NETSURF_USE_LIBICONV_PLUG := NO NETSURF_USE_HARU_PDF := NO endif + + # Optimisation levels + CFLAGS += -O2 -Wuninitialized + endif # ---------------------------------------------------------------------------- @@ -129,6 +136,10 @@ ifeq ($(TARGET),beos) # Force using glibc internal iconv implementation instead of external libiconv # Valid options: YES, NO NETSURF_USE_LIBICONV_PLUG := NO + + # Optimisation levels + CFLAGS += -O2 -Wuninitialized + endif # ---------------------------------------------------------------------------- @@ -148,7 +159,19 @@ ifeq ($(TARGET),amiga) # Valid options: YES, NO, AUTO NETSURF_USE_HUBBUB := YES + # Optimisation levels + CFLAGS += -O2 -Wuninitialized + +endif + +# ---------------------------------------------------------------------------- +# Debug-target-specific options +# ---------------------------------------------------------------------------- +ifeq ($(TARGET),debug) + # Optimisation levels + CFLAGS += -O0 endif # Include any local overrides -include Makefile.config.override + -- cgit v1.2.3