import os
from module_generator import Generator,Module,ASTERComponent,Service,F77Component
-context={'update':1,"prerequisites":"/local/cchris/.packages.d/envSalome50",
- "kernel":"/local/chris/SALOME2/RELEASES/Install/KERNEL_V5"}
-aster_root="/local/chris/ASTER/instals/NEW9"
+#import context from ..
+execfile("../context.py")
+
+aster_root=os.path.join(aster_home,aster_version)
libfcompodir=os.path.join(os.getcwd(),"fcompo")
myasterdir=os.path.join(os.getcwd(),"myaster","bibpyt")
python_path=[myasterdir],
argv=["-memjeveux","4",'-rep_outils','/local/chris/ASTER/instals/outils'],
)
-
+
c2=F77Component("cfort",services=[
Service("s1",inport=[("a","double"),("b","long"),("c","string")],
outport=[("d","double"),("e","long"),("f","string")],
-FC=g77
+FC=gfortran
-KERNEL_ROOT_DIR=/local/chris/SALOME2/RELEASES/Install/KERNEL_V5
+KERNEL_ROOT_DIR=/local/cchris/Salome/Install/KERNEL_V5
KERNEL_LIBS= -L$(KERNEL_ROOT_DIR)/lib/salome -lCalciumC -lSalomeDSCSuperv -lSalomeDSCContainer -lSalomeDatastream -lSalomeDSCSupervBasic
all: libfcompo.so
libfcompo.so:compo.o
- $(FC) -shared -o libfcompo.so compo.o ${KERNEL_LIBS} -Wl,--rpath -Wl,$(KERNEL_ROOT_DIR)/lib/salome -fexceptions
+ $(FC) -shared -fPIC -o libfcompo.so compo.o ${KERNEL_LIBS} -Wl,--rpath -Wl,$(KERNEL_ROOT_DIR)/lib/salome -fexceptions
compo.o:compo.f
- $(FC) -c compo.f -I$(KERNEL_ROOT_DIR)/include/salome -fexceptions
+ $(FC) -c compo.f -fPIC -I$(KERNEL_ROOT_DIR)/include/salome -fexceptions
clean:
rm -f *.o *.so
import os
from module_generator import Generator,Module,ASTERComponent,Service,F77Component
-context={'update':1,
- "prerequisites":"/local/cchris/.packages.d/envSalome5",
- "kernel":"/local/cchris/Salome/Install/KERNEL_V5"
- }
-
-aster_home="/local/cchris/Aster/V10/Install"
-aster_version="STA10.0"
+#import context from ..
+execfile("../context.py")
aster_root=os.path.join(aster_home,aster_version)
aster.exe:
./make_exec
+clean:
+ rm -rf commande aster.exe make-exe
--- /dev/null
+
+context={'update':1,
+ "prerequisites":"/local/cchris/.packages.d/envSalome5",
+ "kernel":"/local/cchris/Salome/Install/KERNEL_V5"
+ }
+aster_home="/local/cchris/Aster/V10/Install"
+aster_version="STA10.0"
+
+
1- your prerequisite file
2- your KERNEL_ROOT_DIR
-Then set the environment (including PYTHONPATH for YACGEN, ../.. from here and execute components.py ::
+Then set the environment (including PYTHONPATH for YACSGEN, ../.. from here and execute components.py ::
source <your prerequisite file>
python components.py
import os
from module_generator import Generator,Module,Service,CPPComponent
-context={'update':1,
- "prerequisites":"/home/aribes/Dev/EnvFiles/prerequis.sh",
- "kernel":"/home/aribes/Dev/Install/SALOME/SALOME_BR/KERNEL_INSTALL_V5_1_main"
- }
+#import context from ..
+execfile("../context.py")
cwd=os.getcwd()
g.configure()
g.make()
g.install()
-g.make_appli("appli",restrict=["KERNEL","GUI","YACS"],
- altmodules={"GUI":"/home/aribes/Dev/Install/SALOME/SALOME_BR/GUI_INSTALL_V5_1_main",
- "YACS":"/home/aribes/Dev/Install/SALOME/SALOME_BR/YACS_INSTALL_BR_V511_PR"})
+g.make_appli("appli",restrict=["KERNEL","GUI","YACS"])
-KERNEL_ROOT_DIR=/local/chris/SALOME2/RELEASES/Install/KERNEL_V5
prog:prog.cxx
g++ -o prog prog.cxx -L./install/lib/salome -lcompo1Exelib
import os
from module_generator import Generator,Module,Service,CPPComponent
-context={'update':1,
- "prerequisites":"/home/aribes/Dev/EnvFiles/prerequis.sh",
- "kernel":"/home/aribes/Dev/Install/SALOME/SALOME_BR/KERNEL_INSTALL_V5_1_main"
- }
+#import context from ..
+execfile("../context.py")
cwd=os.getcwd()
g.configure()
g.make()
g.install()
-g.make_appli("appli",restrict=["KERNEL","GUI","YACS"],
- altmodules={"GUI":"/home/aribes/Dev/Install/SALOME/SALOME_BR/GUI_INSTALL_V5_1_main",
- "YACS":"/home/aribes/Dev/Install/SALOME/SALOME_BR/YACS_INSTALL_BR_V511_PR"})
-
+g.make_appli("appli",restrict=["KERNEL","GUI","YACS"])
-FC=g77
+FC=gfortran
-KERNEL_ROOT_DIR=/local/chris/SALOME2/RELEASES/Install/KERNEL_V5
+KERNEL_ROOT_DIR=/local/cchris/Salome/Install/KERNEL_V5
all:libcode1.so libcode2.so
libcode1.so:code1.o
- $(FC) -shared -o libcode1.so code1.o
+ $(FC) -shared -fPIC -o libcode1.so code1.o
code1.o:code1.f
- $(FC) -c code1.f -I$(KERNEL_ROOT_DIR)/include/salome -fexceptions
+ $(FC) -c code1.f -fPIC -I$(KERNEL_ROOT_DIR)/include/salome -fexceptions
libcode2.so:code2.o
- $(FC) -shared -o libcode2.so code2.o
+ $(FC) -shared -fPIC -o libcode2.so code2.o
code2.o:code2.f
- $(FC) -c code2.f -I$(KERNEL_ROOT_DIR)/include/salome -fexceptions
+ $(FC) -c code2.f -fPIC -I$(KERNEL_ROOT_DIR)/include/salome -fexceptions
clean:
rm -rf *.o *.so
import os
from module_generator import Generator,Module,Service,F77Component
-context={'update':1,
- "prerequisites":"/local/cchris/.packages.d/envSalome50",
- "kernel":"/local/chris/SALOME2/RELEASES/Install/KERNEL_V5",
- }
+#import context from ..
+execfile("../context.py")
cwd=os.getcwd()
-FC=g77
+FC=gfortran
-KERNEL_ROOT_DIR=/local/chris/SALOME2/RELEASES/Install/KERNEL_V5
+KERNEL_ROOT_DIR=/local/cchris/Salome/Install/KERNEL_V5
all:prog1 prog2
prog1:code1.o
import os
from module_generator import Generator,Module,Service,F77Component
-context={'update':1,
- "prerequisites":"/local/cchris/.packages.d/envSalome50",
- "kernel":"/local/chris/SALOME2/RELEASES/Install/KERNEL_V5",
- }
+#import context from ..
+execfile("../context.py")
cwd=os.getcwd()
import os
from module_generator import Generator,Module,Service,PYComponent
-context={'update':1,
- "prerequisites":"/home/aribes/Dev/Scripts_env/prerequis.sh",
- "kernel":"/home/aribes/Dev/Install/SALOME/KERNEL_INSTALL-RIBES"
- }
+#import context from ..
+execfile("../context.py")
cwd=os.getcwd()
g.configure()
g.make()
g.install()
-g.make_appli("appli",restrict=["KERNEL","GUI","YACS"],
- altmodules={"GUI":"/home/aribes/Dev/Install/SALOME/GUI_INSTALL",
- "YACS":"/home/aribes/Dev/Install/SALOME/YACS_INSTALL"})
+g.make_appli("appli",restrict=["KERNEL","GUI","YACS"])
import os
from module_generator import Generator,Module,Service,PYComponent
-context={'update':1,
- "prerequisites":"/local/cchris/.packages.d/envSalome50",
- "kernel":"/local/chris/SALOME2/RELEASES/Install/KERNEL_V5",
- }
+#import context from ..
+execfile("../context.py")
cwd=os.getcwd()