Salome HOME
PAL10718: Portability gfortran. Fix by Erwan ADAM.
[modules/smesh.git] / src / MEFISTO2 / Makefile.in
index 262bc000ad44a0baa775bc877501fc1bc6251f24..d1c4033578716d4b86d52a8b6fdb4b2e951f386f 100644 (file)
@@ -3,7 +3,7 @@
 #  Module : SMESH
 
 top_srcdir=@top_srcdir@
-top_builddir=../../..
+top_builddir=../..
 srcdir=@srcdir@
 VPATH=.:@srcdir@
 
@@ -23,10 +23,14 @@ LIB_CLIENT_IDL =
 LIB_SERVER_IDL = 
 
 # additionnal information to compil and link file
-CPPFLAGS += $(OCC_INCLUDES)
-CXXFLAGS += $(OCC_CXXFLAGS)
-
-LDFLAGS += $(OCC_LIBS) -lg2c
+CPPFLAGS += $(OCC_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
+CXXFLAGS += $(OCC_CXXFLAGS) -I${KERNEL_ROOT_DIR}/include/salome
+
+ifeq ($(F77),gfortran)
+LDFLAGS += -lgfortran
+else
+LDFLAGS += -lg2c
+endif
 
 @CONCLUDE@