Files
psblas3/test/fileread/Makefile
T
Salvatore Filippone bd1edf2a9c psblas3:
test/fileread/Makefile
 test/fileread/cf_sample.f90
 test/fileread/df_sample.f90
 test/fileread/psb_cf_sample.f90
 test/fileread/psb_df_sample.f90
 test/fileread/psb_sf_sample.f90
 test/fileread/psb_zf_sample.f90
 test/fileread/sf_sample.f90
 test/fileread/zf_sample.f90
 test/pargen/Makefile
 test/pargen/ppde2d.f90
 test/pargen/ppde3d.f90
 test/pargen/psb_d_pde2d.f90
 test/pargen/psb_d_pde3d.f90
 test/pargen/psb_s_pde2d.f90
 test/pargen/psb_s_pde3d.f90
 test/pargen/spde2d.f90
 test/pargen/spde3d.f90

Rename test programs.
2017-02-09 10:38:30 +00:00

49 lines
1.3 KiB
Makefile

INSTALLDIR=../..
INCDIR=$(INSTALLDIR)/include/
include $(INCDIR)/Make.inc.psblas
#
# Libraries used
#
LIBDIR=$(INSTALLDIR)/lib/
PSBLAS_LIB= -L$(LIBDIR) -lpsb_util -lpsb_krylov -lpsb_prec -lpsb_base
LDLIBS=$(PSBLDLIBS)
FINCLUDES=$(FMFLAG)$(INCDIR) $(FMFLAG).
SFOBJS=getp.o psb_sf_sample.o
DFOBJS=getp.o psb_df_sample.o
CFOBJS=getp.o psb_cf_sample.o
ZFOBJS=getp.o psb_zf_sample.o
EXEDIR=./runs
all: psb_sf_sample psb_df_sample psb_cf_sample psb_zf_sample
psb_sf_sample.o psb_df_sample.o psb_cf_sample.o psb_zf_sample.o: getp.o
psb_sf_sample: $(SFOBJS)
$(F90LINK) $(LOPT) $(SFOBJS) -o psb_sf_sample $(PSBLAS_LIB) $(LDLIBS)
/bin/mv psb_sf_sample $(EXEDIR)
psb_df_sample: $(DFOBJS)
$(F90LINK) $(LOPT) $(DFOBJS) -o psb_df_sample $(PSBLAS_LIB) $(LDLIBS)
/bin/mv psb_df_sample $(EXEDIR)
psb_cf_sample: $(CFOBJS)
$(F90LINK) $(LOPT) $(CFOBJS) -o psb_cf_sample $(PSBLAS_LIB) $(LDLIBS)
/bin/mv psb_cf_sample $(EXEDIR)
psb_zf_sample: $(ZFOBJS)
$(F90LINK) $(LOPT) $(ZFOBJS) -o psb_zf_sample $(PSBLAS_LIB) $(LDLIBS)
/bin/mv psb_zf_sample $(EXEDIR)
.f90.o:
$(MPF90) $(F90COPT) $(FINCLUDES) $(FDEFINES) -c $<
clean:
/bin/rm -f $(DFOBJS) $(ZFOBJS) $(SFOBJS) $(CFOBJS)\
*$(.mod) $(EXEDIR)/psb_*f_sample
lib:
(cd ../../; make library)
verycleanlib:
(cd ../../; make veryclean)