all: xbmi.so main BMIOBJS = xbmi.o iso_c_utils.o MAINOBJS = main.o iso_c_utils.o xbmi.so FC = mpif90 CC = gcc FCFLAGS = -O0 -Wall -g -fPIC -fcheck=all %.o: %.f90 $(FC) $(FCFLAGS) -c -o $@ $< xbmi.so: $(BMIOBJS) $(FC) -shared -Wl,-soname,$@ -o $@ $(BMIOBJS) main: $(MAINOBJS) $(FC) -o $@ $(MAINOBJS) include deps deps dep: ./makedepo.py *.f90 > deps clean: rm -f *.o *.so main *.mod out.* deps