You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.4 KiB
Makefile
46 lines
1.4 KiB
Makefile
MLDDIR=../..
|
|
MLDINCDIR=$(MLDDIR)/include
|
|
include $(MLDINCDIR)/Make.inc.mld2p4
|
|
MLDLIBDIR=$(MLDDIR)/lib
|
|
MLD_LIBS=-L$(MLDLIBDIR) -lpsb_krylov -lmld_prec -lpsb_prec
|
|
FINCLUDES=$(FMFLAG). $(FMFLAG)$(MLDINCDIR) $(PSBLAS_INCLUDES) $(FIFLAG).
|
|
|
|
|
|
EXEDIR=./runs
|
|
|
|
all: mld_s_pde3d mld_d_pde3d mld_s_pde2d mld_d_pde2d
|
|
|
|
mld_d_pde3d: mld_d_pde3d.o data_input.o
|
|
$(F90LINK) mld_d_pde3d.o data_input.o -o mld_d_pde3d $(MLD_LIBS) $(PSBLAS_LIBS) $(LDLIBS)
|
|
/bin/mv mld_d_pde3d $(EXEDIR)
|
|
|
|
mld_s_pde3d: mld_s_pde3d.o data_input.o
|
|
$(F90LINK) mld_s_pde3d.o data_input.o -o mld_s_pde3d $(MLD_LIBS) $(PSBLAS_LIBS) $(LDLIBS)
|
|
/bin/mv mld_s_pde3d $(EXEDIR)
|
|
|
|
mld_d_pde2d: mld_d_pde2d.o data_input.o
|
|
$(F90LINK) mld_d_pde2d.o data_input.o -o mld_d_pde2d $(MLD_LIBS) $(PSBLAS_LIBS) $(LDLIBS)
|
|
/bin/mv mld_d_pde2d $(EXEDIR)
|
|
|
|
mld_s_pde2d: mld_s_pde2d.o data_input.o
|
|
$(F90LINK) mld_s_pde2d.o data_input.o -o mld_s_pde2d $(MLD_LIBS) $(PSBLAS_LIBS) $(LDLIBS)
|
|
/bin/mv mld_s_pde2d $(EXEDIR)
|
|
|
|
mld_d_pde3d.o mld_s_pde3d.o mld_d_pde2d.o mld_s_pde2d.o: data_input.o
|
|
|
|
check: all
|
|
cd runs && ./mld_d_pde2d <mld_d_pde.inp && ./mld_s_pde2d<mld_d_pde.inp
|
|
|
|
|
|
clean:
|
|
/bin/rm -f data_input.o mld_d_pde3d.o mld_s_pde3d.o mld_d_pde2d.o mld_s_pde2d.o *$(.mod)\
|
|
$(EXEDIR)/mld_d_pde3d $(EXEDIR)/mld_s_pde3d $(EXEDIR)/mld_d_pde2d $(EXEDIR)/mld_s_pde2d
|
|
|
|
verycleanlib:
|
|
(cd ../..; make veryclean)
|
|
lib:
|
|
(cd ../../; make library)
|
|
|
|
|
|
|