diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2008-08-15 09:49:10 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2008-08-15 09:49:10 +0000 |
commit | 30aedab3d9c66254b4654f3e143b4631732fb202 (patch) | |
tree | 9450408321d7b38f8abb2800e0549b0c354bd22e | |
parent | 631f34eb7f3eb9a5e5cdf2f76701b9fc2046d252 (diff) | |
download | netsurf-30aedab3d9c66254b4654f3e143b4631732fb202.tar.gz netsurf-30aedab3d9c66254b4654f3e143b4631732fb202.tar.bz2 |
Make optimisation flags target-specific once more. Amiga and BeOS will need to confirm theirs
svn path=/trunk/netsurf/; revision=5121
-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 + |