2003/03/31 17:55:29
[org.ibex.core.git] / Makefile
index c91c7bb..2c76ffa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,11 +17,13 @@ gcj_java_objects       := $(gcj_java_sources:src/%.java=bin-$(platform)/%.o)
 
 # tools
 gcc_path               := $(shell pwd)/gcc
-gcc_flags              := -O9 -ffast-math -fomit-frame-pointer -foptimize-sibling-calls -finline-functions -funroll-loops -g
+#gcc_optimizations      := -O9 -ffast-math -fomit-frame-pointer -foptimize-sibling-calls -finline-functions -funroll-loops
+gcc_optimizations      := -O0
+gcc_flags              := $(gcc_optimizations) -g -ffunction-sections -fdata-sections
 gcj_flags              := -fCLASSPATH=bin 
 gcj                    := $(gcc_path)/bin/$(target)-gcj $(gcj_flags) $(gcc_flags)
 gcc                    := $(gcc_path)/bin/$(target)-g++ $(gcc_flags)
-gcjh                   := $(gcc_path)/bin/gcjh
+gcjh                   := $(gcc_path)/bin/$(target)-gcjh
 ar                     := $(gcc_path)/$(target)/bin/ar
 strip                  := $(gcc_path)/$(target)/bin/strip
 jar                    := $(shell ((type fastjar &>/dev/null) && echo fastjar) || echo jar)