On Sat, Aug 04, 2012 at 10:50:13AM +0200, Thomas Treichl wrote:
> Hi Thomas,
> 
>    yes you're right. Instead of the first endif/ifeq I think we should 
> use an else/ifeq instead. Can you make this change or should I?

I've chosen a different approach, that just changes FFLAGS. See the
attached patch.

        Thomas
--- a/src/Makefile
+++ b/src/Makefile
@@ -11,14 +11,12 @@
 # MKMEXFILE = $(MKOCTFILE) --mex
 MKOCTFILE = mkoctfile
 ifeq (gfortran,$(findstring gfortran,$(F77)))
-  MKF77FILE = FFLAGS="-fno-automatic $(FFLAGS)" $(MKOCTFILE)
+  FFLAGS := "-fno-automatic $(FFLAGS)"
 endif
 ifeq (g95,$(findstring g95,$(F77)))
-  MKF77FILE = FFLAGS="-fstatic $(FFLAGS)" $(MKOCTFILE)
-else
-  # eg. the combination f2c with fort77
-  MKF77FILE = FFLAGS="$(FFLAGS)" $(MKOCTFILE)
+  FFLAGS := "-fstatic $(FFLAGS)"
 endif
+MKF77FILE = FFLAGS=$(FFLAGS) $(MKOCTFILE)
 
 LAPACK_LIBS := $(shell mkoctfile -p BLAS_LIBS LAPACK_LIBS)
 FLIBS := $(shell mkoctfile -p FLIBS)
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to