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.
37 lines
741 B
Makefile
37 lines
741 B
Makefile
include ../../Make.inc
|
|
#
|
|
# Libraries used
|
|
#
|
|
LIBDIR=../../lib/
|
|
PSBLAS_LIB= -L$(LIBDIR) -lpsb_util -lpsb_krylov -lpsb_prec -lpsb_base
|
|
|
|
INCDIRS=-I$(LIBDIR)
|
|
|
|
DFOBJS=getp.o df_sample.o
|
|
ZFOBJS=getp.o zf_sample.o
|
|
|
|
EXEDIR=./runs
|
|
|
|
all: df_sample zf_sample
|
|
|
|
|
|
df_sample: $(DFOBJS)
|
|
$(F90LINK) $(DFOBJS) -o df_sample $(PSBLAS_LIB) $(LDLIBS)
|
|
/bin/mv df_sample $(EXEDIR)
|
|
zf_sample: $(ZFOBJS)
|
|
$(F90LINK) $(ZFOBJS) -o zf_sample $(PSBLAS_LIB) $(LDLIBS)
|
|
/bin/mv zf_sample $(EXEDIR)
|
|
|
|
.f90.o:
|
|
$(MPF90) $(F90COPT) $(INCDIRS) -c $<
|
|
|
|
clean:
|
|
/bin/rm -f $(DFOBJS) $(ZFOBJS) \
|
|
*$(.mod) $(EXEDIR)/df_sample $(EXEDIR)/zf_sample
|
|
|
|
lib:
|
|
(cd ../../; make library)
|
|
verycleanlib:
|
|
(cd ../../; make veryclean)
|
|
|