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.
53 lines
2.7 KiB
Makefile
53 lines
2.7 KiB
Makefile
4 years ago
|
AMGDIR=../../..
|
||
4 years ago
|
AMGINCDIR=$(AMGDIR)/include
|
||
4 years ago
|
include $(AMGINCDIR)/Make.inc.amg4psblas
|
||
4 years ago
|
AMGMODDIR=$(AMGDIR)/modules
|
||
|
AMGLIBDIR=$(AMGDIR)/lib
|
||
|
AMG_LIBS=-L$(AMGLIBDIR) -lpsb_krylov -lamg_prec -lpsb_prec
|
||
|
FINCLUDES=$(FMFLAG). $(FMFLAG)$(AMGMODDIR) $(FMFLAG)$(AMGINCDIR) $(PSBLAS_INCLUDES) $(FIFLAG).
|
||
17 years ago
|
|
||
8 years ago
|
LINKOPT=
|
||
17 years ago
|
EXEDIR=./runs
|
||
|
|
||
4 years ago
|
all: amg_s_pde3d amg_d_pde3d amg_s_pde2d amg_d_pde2d
|
||
14 years ago
|
|
||
4 years ago
|
amg_d_pde3d: amg_d_pde3d.o amg_d_genpde_mod.o amg_d_pde3d_base_mod.o amg_d_pde3d_exp_mod.o amg_d_pde3d_gauss_mod.o data_input.o
|
||
|
$(FLINK) $(LINKOPT) amg_d_pde3d.o amg_d_genpde_mod.o amg_d_pde3d_base_mod.o amg_d_pde3d_exp_mod.o amg_d_pde3d_gauss_mod.o data_input.o -o amg_d_pde3d $(AMG_LIBS) $(PSBLAS_LIBS) $(LDLIBS)
|
||
4 years ago
|
/bin/mv amg_d_pde3d $(EXEDIR)
|
||
17 years ago
|
|
||
4 years ago
|
amg_s_pde3d: amg_s_pde3d.o amg_s_genpde_mod.o amg_s_pde3d_base_mod.o amg_s_pde3d_exp_mod.o amg_s_pde3d_gauss_mod.o data_input.o
|
||
|
$(FLINK) $(LINKOPT) amg_s_pde3d.o amg_s_genpde_mod.o amg_s_pde3d_base_mod.o amg_s_pde3d_exp_mod.o amg_s_pde3d_gauss_mod.o data_input.o -o amg_s_pde3d $(AMG_LIBS) $(PSBLAS_LIBS) $(LDLIBS)
|
||
4 years ago
|
/bin/mv amg_s_pde3d $(EXEDIR)
|
||
17 years ago
|
|
||
4 years ago
|
amg_d_pde2d: amg_d_pde2d.o amg_d_genpde_mod.o amg_d_pde2d_base_mod.o amg_d_pde2d_exp_mod.o amg_d_pde2d_box_mod.o data_input.o
|
||
|
$(FLINK) $(LINKOPT) amg_d_pde2d.o amg_d_genpde_mod.o amg_d_pde2d_base_mod.o amg_d_pde2d_exp_mod.o amg_d_pde2d_box_mod.o data_input.o -o amg_d_pde2d $(AMG_LIBS) $(PSBLAS_LIBS) $(LDLIBS)
|
||
4 years ago
|
/bin/mv amg_d_pde2d $(EXEDIR)
|
||
14 years ago
|
|
||
4 years ago
|
amg_s_pde2d: amg_s_pde2d.o amg_s_genpde_mod.o amg_s_pde2d_base_mod.o amg_s_pde2d_exp_mod.o amg_s_pde2d_box_mod.o data_input.o
|
||
|
$(FLINK) $(LINKOPT) amg_s_pde2d.o amg_s_genpde_mod.o amg_s_pde2d_base_mod.o amg_s_pde2d_exp_mod.o amg_s_pde2d_box_mod.o data_input.o -o amg_s_pde2d $(AMG_LIBS) $(PSBLAS_LIBS) $(LDLIBS)
|
||
4 years ago
|
/bin/mv amg_s_pde2d $(EXEDIR)
|
||
13 years ago
|
|
||
4 years ago
|
amg_d_pde3d_rebld: amg_d_pde3d_rebld.o data_input.o
|
||
|
$(FLINK) $(LINKOPT) amg_d_pde3d_rebld.o data_input.o -o amg_d_pde3d_rebld $(AMG_LIBS) $(PSBLAS_LIBS) $(LDLIBS)
|
||
|
/bin/mv amg_d_pde3d_rebld $(EXEDIR)
|
||
|
|
||
4 years ago
|
amg_d_pde3d.o amg_s_pde3d.o amg_d_pde2d.o amg_s_pde2d.o: data_input.o
|
||
|
|
||
|
amg_d_pde3d.o: amg_d_genpde_mod.o amg_d_pde3d_base_mod.o amg_d_pde3d_exp_mod.o amg_d_pde3d_gauss_mod.o
|
||
|
amg_s_pde3d.o: amg_s_genpde_mod.o amg_s_pde3d_base_mod.o amg_s_pde3d_exp_mod.o amg_s_pde3d_gauss_mod.o
|
||
|
amg_d_pde2d.o: amg_d_genpde_mod.o amg_d_pde2d_base_mod.o amg_d_pde2d_exp_mod.o amg_d_pde2d_box_mod.o
|
||
|
amg_s_pde2d.o: amg_s_genpde_mod.o amg_s_pde2d_base_mod.o amg_s_pde2d_exp_mod.o amg_s_pde2d_box_mod.o
|
||
17 years ago
|
|
||
12 years ago
|
check: all
|
||
4 years ago
|
cd runs && ./amg_d_pde2d <amg_pde2d.inp && ./amg_s_pde2d<amg_pde2d.inp
|
||
12 years ago
|
|
||
17 years ago
|
|
||
4 years ago
|
clean:
|
||
4 years ago
|
/bin/rm -f data_input.o *.o *$(.mod)\
|
||
4 years ago
|
$(EXEDIR)/mld_d_pde3d $(EXEDIR)/mld_s_pde3d $(EXEDIR)/mld_d_pde2d $(EXEDIR)/mld_s_pde2d
|
||
17 years ago
|
|
||
4 years ago
|
verycleanlib:
|
||
17 years ago
|
(cd ../..; make veryclean)
|
||
|
lib:
|
||
|
(cd ../../; make library)
|