-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.Forthon
executable file
·50 lines (39 loc) · 1.73 KB
/
Makefile.Forthon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
DEBUG = -v --fargs "-Ofast -DFORTHON -cpp -DNINPUT=1000 -DYES=1 -DOK=0 -DDONE=1 -DSTDOUT=6 -fallow-argument-mismatch -finit-real=zero -finit-integer=0 -fdefault-real-8 -DECHARG=4.8e-10 -DPi=3.141592653"
SO = so
PUBLICHOME =
BUILDDIR = build
DIRLIST = glr utl
MYPYTHON = python3
FORTHON = Forthon3
BUILDBASE = -v --build-base $(BUILDDIR)
INSTALLARGS = --pkgbase flora $(BUILDBASE)
SHELL=bash
all: mppl2f90 $(BUILDDIR)/glrpydep $(BUILDDIR)/utlpydep
rm -f floraC.so
mppl2f90:
(export PYTHONPATH=.:./pyscripts; $(MYPYTHON) convertor)
$(BUILDDIR)/glrpydep: glr/basgen.F glr/coils.F glr/diagno.F glr/energy.F glr/equil.F glr/initial.F glr/math.F glr/matrix.F glr/rightvec.F glr/setup.F glr/blas.F glr/glr.v
$(FORTHON) -a $(INSTALLARGS) -a $(FCOMP) $(DEBUG) --interfacefile glr/glr.v -f glr/basgen.F glr glr/coils.F glr/diagno.F glr/energy.F glr/equil.F glr/initial.F glr/math.F glr/matrix.F glr/rightvec.F glr/setup.F glr/blas.F
touch $@
$(BUILDDIR)/utlpydep: $(BUILDDIR)/glrpydep utl/utility.F utl/utl.v glr/glr.v
$(FORTHON) -a $(INSTALLARGS) -a $(FCOMP) $(DEBUG) --interfacefile utl/utl.v -d glr -f utl/utility.F utl
touch $@
public: all
publishpyflora90.py $(PUBLICHOME)
update:
for dir in $(PUBLICHOME); do \
cd $$dir; \
cvs update; \
done
clean:
find . -depth -name build -exec rm -rf {} \;
find . -depth -name __pycache__ -exec rm -rf {} \;
find . -name \*.pyc -exec rm {} \;
find . -name \*.F -exec rm {} \;
touch floraC_Forthon.c
#----------------------------------------------------------------------------
#--- Build command for opendx wrapper.
DX: pyDXObject.c
$(MYPYTHON) DXsetup.py build --build-platlib .
#cp pyDXObject.so /home/dave/scriptsnew
#----------------------------------------------------------------------------