diff options
-rw-r--r-- | Makefile.config | 27 |
1 files 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 + |