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.
56 lines
1.7 KiB
Makefile
56 lines
1.7 KiB
Makefile
4 years ago
|
AMGDIR=../../..
|
||
4 years ago
|
AMGINCDIR=$(AMGDIR)/include
|
||
|
include $(AMGINCDIR)/Make.inc.amg4psblas
|
||
|
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).
|
||
8 years ago
|
LINKOPT=
|
||
17 years ago
|
|
||
4 years ago
|
DMOBJS=amg_dexample_ml.o data_input.o amg_dpde_mod.o
|
||
|
D1OBJS=amg_dexample_1lev.o data_input.o amg_dpde_mod.o
|
||
|
SMOBJS=amg_sexample_ml.o data_input.o amg_spde_mod.o
|
||
|
S1OBJS=amg_sexample_1lev.o data_input.o amg_spde_mod.o
|
||
17 years ago
|
|
||
|
EXEDIR=./runs
|
||
|
|
||
4 years ago
|
all: amg_sexample_ml amg_sexample_1lev amg_dexample_ml amg_dexample_1lev
|
||
17 years ago
|
|
||
9 years ago
|
|
||
4 years ago
|
amg_dexample_ml: $(DMOBJS)
|
||
|
$(FLINK) $(LINKOPT) $(DMOBJS) -o amg_dexample_ml \
|
||
|
$(AMG_LIBS) $(PSBLAS_LIBS) $(LDLIBS)
|
||
|
/bin/mv amg_dexample_ml $(EXEDIR)
|
||
17 years ago
|
|
||
4 years ago
|
amg_dexample_1lev: $(D1OBJS)
|
||
|
$(FLINK) $(LINKOPT) $(D1OBJS) -o amg_dexample_1lev \
|
||
|
$(AMG_LIBS) $(PSBLAS_LIBS) $(LDLIBS)
|
||
|
/bin/mv amg_dexample_1lev $(EXEDIR)
|
||
17 years ago
|
|
||
4 years ago
|
amg_dexample_ml.o: data_input.o amg_dpde_mod.o
|
||
|
amg_dexample_1lev.o: data_input.o amg_dpde_mod.o
|
||
17 years ago
|
|
||
4 years ago
|
amg_sexample_ml: $(SMOBJS)
|
||
|
$(FLINK) $(LINKOPT) $(SMOBJS) -o amg_sexample_ml \
|
||
|
$(AMG_LIBS) $(PSBLAS_LIBS) $(LDLIBS)
|
||
|
/bin/mv amg_sexample_ml $(EXEDIR)
|
||
17 years ago
|
|
||
4 years ago
|
amg_sexample_1lev: $(S1OBJS)
|
||
|
$(FLINK) $(LINKOPT) $(S1OBJS) -o amg_sexample_1lev \
|
||
|
$(AMG_LIBS) $(PSBLAS_LIBS) $(LDLIBS)
|
||
|
/bin/mv amg_sexample_1lev $(EXEDIR)
|
||
17 years ago
|
|
||
4 years ago
|
amg_sexample_ml.o: data_input.o amg_spde_mod.o
|
||
|
amg_sexample_1lev.o: data_input.o amg_spde_mod.o
|
||
17 years ago
|
|
||
17 years ago
|
clean:
|
||
17 years ago
|
/bin/rm -f $(DMOBJS) $(D1OBJS) $(SMOBJS) $(S1OBJS) \
|
||
4 years ago
|
*$(.mod) $(EXEDIR)/amg_dexample_ml $(EXEDIR)/amg_dexample_1lev\
|
||
|
$(EXEDIR)/amg_sexample_ml $(EXEDIR)/amg_sexample_1lev
|
||
17 years ago
|
|
||
|
lib:
|
||
|
(cd ../../; make library)
|
||
|
verycleanlib:
|
||
|
(cd ../../; make veryclean)
|
||
|
|