Files
psblas3/test/fileread/Makefile
T
Salvatore Filippone a7e74e914c psblas3:
Make.inc.in
 base/Makefile
 base/comm/Makefile
 base/internals/Makefile
 base/psblas/Makefile
 base/serial/Makefile
 base/serial/aux/Makefile
 base/serial/f77/Makefile
 base/serial/impl/Makefile
 base/tools/Makefile
 config/pac.m4
 configure.ac
 configure
 krylov/Makefile
 prec/Makefile
 prec/impl/Makefile
 test/fileread/Makefile
 test/kernel/Makefile
 test/pargen/Makefile
 test/pargen/runs/ppde.inp
 test/util/Makefile
 util/Makefile

Updated configry and makefile stuff
2013-11-14 09:41:25 +00:00

49 lines
1.2 KiB
Makefile

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