moved compiler flags from Makefile.rule to Makefile.arm
authorwernsaar <wernsaar@googlemail.com>
Wed, 16 Oct 2013 17:04:42 +0000 (19:04 +0200)
committerwernsaar <wernsaar@googlemail.com>
Wed, 16 Oct 2013 17:04:42 +0000 (19:04 +0200)
Makefile.arm
Makefile.rule

index 05ea9c679dddd3751d79805ced1266bf0d7cd473..6cdeb2f758cd13475b4f3ea7695637611464a1f3 100644 (file)
@@ -1,3 +1,7 @@
-ifdef BINARY64
-else
+
+ifeq ($(CORE), ARMV7)
+CCOMMON_OPT += -marm -mfpu=vfpv3  -mfloat-abi=hard
+FCOMMON_OPT += -marm -mfpu=vfpv3  -mfloat-abi=hard
 endif
+
+
index a7aa0873d47373251e656ce915dec0bd9cd5bcbd..534f4d1a25e4aba0d7acc894d3cbedee0ef2d936 100644 (file)
@@ -19,14 +19,14 @@ TARGET = ARMV7
 
 # C compiler including binary type(32bit / 64bit). Default is gcc.
 # Don't use Intel Compiler or PGI, it won't generate right codes as I expect.
-CC = gcc
+CC = gcc
 
 # Fortran compiler. Default is g77.
-FC = gfortran
+FC = gfortran
 
 # Even you can specify cross compiler. Meanwhile, please set HOSTCC.
-CC = arm-linux-gnueabihf-gcc
-FC = arm-linux-gnueabihf-gfortran
+#CC = arm-linux-gnueabihf-gcc
+#FC = arm-linux-gnueabihf-gfortran
 
 # If you use the cross compiler, please set this host compiler.
 HOSTCC = gcc
@@ -38,7 +38,7 @@ HOSTCC = gcc
 # specify it.
 # For force setting for single threaded, specify USE_THREAD = 0
 # For force setting for multi  threaded, specify USE_THREAD = 1
-USE_THREAD = 0
+#USE_THREAD = 0
 
 # If you're going to use this library with OpenMP, please comment it in.
 # USE_OPENMP = 1
@@ -46,7 +46,7 @@ USE_THREAD = 0
 # You can define maximum number of threads. Basically it should be
 # less than actual number of cores. If you don't specify one, it's
 # automatically detected by the the script.
-NUM_THREADS = 4
+NUM_THREADS = 16
 
 # if you don't need generate the shared library, please comment it in.
 # NO_SHARED = 1
@@ -123,7 +123,7 @@ NO_AFFINITY = 1
 
 # Common Optimization Flag; 
 # The default -O2 is enough.
-COMMON_OPT = -O0 -marm -mfpu=vfpv3 -fno-omit-frame-pointer
+#COMMON_OPT = -O3 -marm -mfpu=vfpv3  -mfloat-abi=hard 
 
 # Profiling flags
 COMMON_PROF = -pg