all: testmkmap mkmap.so PROGS = testmkmap.f90 mkmap.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) mkmap.so: mkmap.o mkmap_f2py.f90 $(F2PY) -c --fcompiler=$(FC) -m $(basename $@) mkmap.o mkmap_f2py.f90 clean: rm -f *.o testmkmap mkmap.so *.mod deps include deps deps dep: ./makedepo.py $(PROGS) > deps test: @echo $(OBJS)