diff --git a/src/makefile.py b/src/makefile.py index 3d246b1..4d813a8 100644 --- a/src/makefile.py +++ b/src/makefile.py @@ -48,7 +48,7 @@ def create(): t = """IRPF90 = irpf90 #-a -d NINJA = ninja FC = gfortran -FCFLAGS= -O2 -ffree-line-length-none +FCFLAGS= -O2 -ffree-line-length-none -I . SRC= OBJ= diff --git a/src/ninja.py b/src/ninja.py index 74a9e0e..d3eab1f 100644 --- a/src/ninja.py +++ b/src/ninja.py @@ -212,13 +212,13 @@ def run(): # Environment variables try: FC = os.environ["FC"] - except KeyError: FC="gfortran -ffree-line-length-none" + except KeyError: FC="gfortran -ffree-line-length-none -I ." try: CC = os.environ["CC"] - except KeyError: CC="gcc" + except KeyError: CC="gcc -I ." try: CXX = os.environ["CXX"] - except KeyError: CXX="g++" + except KeyError: CXX="g++ -I ." includes = [ "-I %s "%(irpdir) ] for i in command_line.include_dir: