all: testmkmap interp.so PROGS = testmkmap.f90 interp.f90 OBJS = $(PROGS:.f90=.o) FC = gfortran F2PY = f2py FCFLAGS = -O0 -Wall -fcheck=all %o : %f90 $(FC) $(FCFLAGS) -c -fPIC -o $@ $< testmkmap: $(OBJS) $(FC) -o $@ $(OBJS) testmkmap.o: interp.o interp.so: interp.pyf interp.o $(F2PY) -c --fcompiler=$(FC) -m $(basename $@) interp.pyf interp.o interp_f2py.f90 interp.pyf: $(F2PY) -h $@ -m interp interp_f2py.f90 clean: rm -f *.o testmkmap *.so *.mod deps MANIFEST rm -rf build dist realclean: clean rm -f interp.pyf test: @echo $(OBJS)