]> SALOME platform Git repositories - tools/yacsgen.git/commitdiff
Salome HOME
DSO problem on fort2 example
authorribes <ribes>
Wed, 18 May 2011 11:34:25 +0000 (11:34 +0000)
committerribes <ribes>
Wed, 18 May 2011 11:34:25 +0000 (11:34 +0000)
Examples/fort2/Makefile
Examples/fort2/prog1.sh
Examples/fort2/prog2.sh

index 231472e61c209422e053df211b5f711a51909373..6b6b69852d9b31a74171a7d9ccc19cb6c7fc7ffb 100644 (file)
@@ -21,12 +21,12 @@ include ../makefile.inc
 
 all:prog1 prog2
 prog1:code1.o
-         $(FC) -o prog1 code1.o -L./install/lib/salome -lfcode1Exelib
+         $(FC) -o prog1 code1.o -L./install/lib/salome -lfcode1Exelib -L$(KERNEL_ROOT_DIR)/lib/salome -lCalciumC
 code1.o:code1.f
          $(FC) -c code1.f -I$(KERNEL_ROOT_DIR)/include/salome -fexceptions 
 
 prog2:code2.o
-         $(FC) -o prog2 code2.o -L./install/lib/salome -lfcode2Exelib
+         $(FC) -o prog2 code2.o -L./install/lib/salome -lfcode2Exelib -L$(KERNEL_ROOT_DIR)/lib/salome -lCalciumC
 code2.o:code2.f
          $(FC) -c code2.f -I$(KERNEL_ROOT_DIR)/include/salome -fexceptions 
 
index 3d1a3b29cc2189004a7b1a7f193a783d52bb6271..4f1f3d09e0e70efb9505022669a088375c8e9de4 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
-/local/cchris/Salome/YACSGEN/V6/YACSGEN/Examples/fort2/prog1
+
+script_path=$(dirname $(readlink -f $0))
+$script_path/prog1
 
 echo "End of shell"
 
index 0369f8903616c8055f2bb40cbb226bcd69ac312f..8299c97c38ab726dd9be2b588c1802e4aadceaea 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/bash
-/local/cchris/Salome/YACSGEN/V6/YACSGEN/Examples/fort2/prog2
+script_path=$(dirname $(readlink -f $0))
+$script_path/prog2
 
 echo "End of shell"