CF = $(F90)
FFLAGS = $(F90_OPTS) $(MAS_F90_OPTS)
LDFLAGS = $(LIBDF) $(LD_OPTS)
PROG = mas

all:
	./compile mas47d_cism_v01

$(PROG):
	$(CF) $(FFLAGS) pp$(PROG).f $(LDFLAGS) -o $(PROG)
	/bin/rm -f *.inc *.mod $(PROG).F p$(PROG).f pp$(PROG).f

clean:
	/bin/rm -f *.inc *.mod *.o $(PROG).F p$(PROG).f pp$(PROG).f $(PROG)_*

new:
	make clean
	make

install:
	mv $(PROG)_61x71x64 ../../bin/$(SYSTEM)
	mv $(PROG)_101x101x128 ../../bin/$(SYSTEM)
