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.
49 lines
1.4 KiB
Makefile
49 lines
1.4 KiB
Makefile
include ../Make.inc
|
|
|
|
|
|
HERE=.
|
|
LIBDIR=../lib
|
|
INCDIR=../include
|
|
MODDIR=../modules
|
|
|
|
MODOBJS= psb_base_krylov_conv_mod.o \
|
|
psb_s_krylov_conv_mod.o psb_c_krylov_conv_mod.o \
|
|
psb_d_krylov_conv_mod.o psb_z_krylov_conv_mod.o \
|
|
psb_krylov_mod.o
|
|
F90OBJS=psb_dkrylov.o psb_skrylov.o psb_ckrylov.o psb_zkrylov.o \
|
|
psb_dcgstab.o psb_dcg.o psb_dfcg.o psb_dgcr.o psb_dcgs.o \
|
|
psb_dbicg.o psb_dcgstabl.o psb_drgmres.o\
|
|
psb_scgstab.o psb_scg.o psb_sfcg.o psb_sgcr.o psb_scgs.o \
|
|
psb_sbicg.o psb_scgstabl.o psb_srgmres.o\
|
|
psb_ccgstab.o psb_ccg.o psb_cfcg.o psb_cgcr.o psb_ccgs.o \
|
|
psb_cbicg.o psb_ccgstabl.o psb_crgmres.o\
|
|
psb_zcgstab.o psb_zcg.o psb_zfcg.o psb_zgcr.o psb_zcgs.o \
|
|
psb_zbicg.o psb_zcgstabl.o psb_zrgmres.o
|
|
OBJS=$(F90OBJS) $(MODOBJS)
|
|
|
|
LOCAL_MODS=$(MODOBJS:.o=$(.mod))
|
|
LIBNAME=$(METHDLIBNAME)
|
|
|
|
FINCLUDES=$(FMFLAG). $(FMFLAG)$(MODDIR)
|
|
|
|
objs: $(OBJS)
|
|
/bin/cp -p $(CPUPDFLAG) *$(.mod) $(MODDIR)
|
|
|
|
lib: objs
|
|
$(AR) $(HERE)/$(LIBNAME) $(OBJS)
|
|
$(RANLIB) $(HERE)/$(LIBNAME)
|
|
/bin/cp -p $(CPUPDFLAG) $(HERE)/$(LIBNAME) $(LIBDIR)
|
|
|
|
|
|
psb_s_krylov_conv_mod.o psb_c_krylov_conv_mod.o psb_d_krylov_conv_mod.o psb_z_krylov_conv_mod.o: psb_base_krylov_conv_mod.o
|
|
psb_krylov_conv_mod.o: psb_s_krylov_conv_mod.o psb_c_krylov_conv_mod.o psb_d_krylov_conv_mod.o psb_z_krylov_conv_mod.o
|
|
$(F90OBJS): $(MODOBJS)
|
|
$(OBJS): $(MODDIR)/$(PRECMODNAME)$(.mod) $(MODDIR)/$(BASEMODNAME)$(.mod)
|
|
|
|
veryclean: clean
|
|
/bin/rm -f $(HERE)/$(LIBNAME)
|
|
|
|
clean:
|
|
/bin/rm -f $(OBJS) *$(.mod)
|
|
|