| 1 |
## -*- python -*- |
| 2 |
|
| 3 |
import os, sys |
| 4 |
from os.path import realpath,join |
| 5 |
|
| 6 |
env = Environment() |
| 7 |
linkdir = '' |
| 8 |
if os.name == 'nt': |
| 9 |
env.PrependENVPath('PATH', os.environ['PATH']) |
| 10 |
import larch |
| 11 |
prefix = larch.larchlib.larchdir |
| 12 |
dlldir = larch.larchlib.get_dlldir() |
| 13 |
#include = '-L/C/Program Files/larch/dlls/win32' |
| 14 |
linkdir = '-L'+join(prefix, 'dlls', dlldir) |
| 15 |
|
| 16 |
## ------------------------------------------------------------------------------------------------------ |
| 17 |
## build the test program for the fortran onepath entry point |
| 18 |
## Feff libraries should have already been installed |
| 19 |
env.Program('makepath', 'makepath.f', FORTRANFLAGS = ['-g',], LINKFLAGS = [linkdir,], LIBS = ['onepath']) |
| 20 |
|
| 21 |
|
| 22 |
## ------------------------------------------------------------------------------------------------------ |
| 23 |
## build the test program for the fortran potph entry point |
| 24 |
## Feff libraries should have already been installed |
| 25 |
env.Program('makepotph', 'makepotph.f', FORTRANFLAGS = ['-g',], LINKFLAGS = [linkdir,], LIBS = ['potph', 'jsonfortran']) |