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.
56 lines
1.5 KiB
Makefile
56 lines
1.5 KiB
Makefile
MLDDIR=../..
|
|
MLDINCDIR=$(MLDDIR)/include
|
|
include $(MLDINCDIR)/Make.inc.mld2p4
|
|
PSBLIBDIR=$(PSBLASDIR)/lib/
|
|
PSBINCDIR=$(PSBLASDIR)/include
|
|
MLDLIBDIR=$(MLDDIR)/lib
|
|
MLD_LIB=-L$(MLDLIBDIR) -lpsb_krylov -lmld_prec -lpsb_prec
|
|
PSBLAS_LIB= -L$(PSBLIBDIR) -lpsb_util -lpsb_base
|
|
FINCLUDES=$(FMFLAG). $(FMFLAG)$(MLDINCDIR) $(FMFLAG)$(PSBINCDIR) $(FIFLAG).
|
|
|
|
DFSOBJS=mld_df_sample.o data_input.o
|
|
SFSOBJS=mld_sf_sample.o data_input.o
|
|
CFSOBJS=mld_cf_sample.o data_input.o
|
|
ZFSOBJS=mld_zf_sample.o data_input.o
|
|
|
|
EXEDIR=./runs
|
|
|
|
all: mld_sf_sample mld_df_sample mld_cf_sample mld_zf_sample
|
|
|
|
mld_df_sample: $(DFSOBJS)
|
|
$(F90LINK) $(LINKOPT) $(DFSOBJS) -o mld_df_sample \
|
|
$(MLD_LIB) $(PSBLAS_LIB) $(LDLIBS)
|
|
/bin/mv mld_df_sample $(EXEDIR)
|
|
|
|
|
|
mld_sf_sample: $(SFSOBJS)
|
|
$(F90LINK) $(LINKOPT) $(SFSOBJS) -o mld_sf_sample \
|
|
$(MLD_LIB) $(PSBLAS_LIB) $(LDLIBS)
|
|
/bin/mv mld_sf_sample $(EXEDIR)
|
|
|
|
mld_cf_sample: $(CFSOBJS)
|
|
$(F90LINK) $(LINKOPT) $(CFSOBJS) -o mld_cf_sample \
|
|
$(MLD_LIB) $(PSBLAS_LIB) $(LDLIBS)
|
|
/bin/mv mld_cf_sample $(EXEDIR)
|
|
|
|
mld_zf_sample: $(ZFSOBJS)
|
|
$(F90LINK) $(LINKOPT) $(ZFSOBJS) -o mld_zf_sample \
|
|
$(MLD_LIB) $(PSBLAS_LIB) $(LDLIBS)
|
|
/bin/mv mld_zf_sample $(EXEDIR)
|
|
|
|
mld_sf_sample.o: data_input.o
|
|
mld_df_sample.o: data_input.o
|
|
mld_cf_sample.o: data_input.o
|
|
mld_zf_sample.o: data_input.o
|
|
|
|
clean:
|
|
/bin/rm -f $(DFSOBJS) $(ZFSOBJS) $(SFSOBJS) $(DFSOBJS) \
|
|
*$(.mod) $(EXEDIR)/mld_sf_sample $(EXEDIR)/mld_cf_sample \
|
|
$(EXEDIR)/mld_df_sample $(EXEDIR)/mld_zf_sample
|
|
|
|
lib:
|
|
(cd ../../; make library)
|
|
verycleanlib:
|
|
(cd ../../; make veryclean)
|
|
|