Makefile 455 Bytes

include ../make.inc

SRC= mud2.f mud24.f mud24cr.f mud24sp.f \
    mud2cr.f mud2sa.f mud2sp.f mud3.f mud34.f mud34sp.f mud3cr.f mud3ln.f \
    mud3pn.f mud3sa.f mud3sp.f mudcom.f resc2.f resc2cr.f resc2sp.f resc3.f \
    resc3sp.f resm2.f resm2cr.f resm2sp.f resm3.f resm3cr.f resm3sp.f

OBJ=$(subst .f,.o,$(SRC))
OBJS=$(addprefix ../objs/,$(OBJ))

$(LIB) : $(OBJS)
	$(AR) -rv $@ $? 

../objs/%.o : %.f
	$(F90) -c $< -o $@

clean:
	rm -f $(LIB) $(OBJS)