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.
55 lines
1.5 KiB
Makefile
55 lines
1.5 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).
|
||
|
|
||
|
DFSOBJS=amg_df_sample.o data_input.o
|
||
|
SFSOBJS=amg_sf_sample.o data_input.o
|
||
|
CFSOBJS=amg_cf_sample.o data_input.o
|
||
|
ZFSOBJS=amg_zf_sample.o data_input.o
|
||
8 years ago
|
LINKOPT=
|
||
17 years ago
|
|
||
|
EXEDIR=./runs
|
||
|
|
||
4 years ago
|
all: amg_sf_sample amg_df_sample amg_cf_sample amg_zf_sample
|
||
17 years ago
|
|
||
4 years ago
|
amg_df_sample: $(DFSOBJS)
|
||
|
$(FLINK) $(LINKOPT) $(DFSOBJS) -o amg_df_sample \
|
||
|
$(AMG_LIBS) $(PSBLAS_LIBS) $(LDLIBS)
|
||
|
/bin/mv amg_df_sample $(EXEDIR)
|
||
17 years ago
|
|
||
9 years ago
|
|
||
4 years ago
|
amg_sf_sample: $(SFSOBJS)
|
||
|
$(FLINK) $(LINKOPT) $(SFSOBJS) -o amg_sf_sample \
|
||
|
$(AMG_LIBS) $(PSBLAS_LIBS) $(LDLIBS)
|
||
|
/bin/mv amg_sf_sample $(EXEDIR)
|
||
17 years ago
|
|
||
4 years ago
|
amg_cf_sample: $(CFSOBJS)
|
||
|
$(FLINK) $(LINKOPT) $(CFSOBJS) -o amg_cf_sample \
|
||
|
$(AMG_LIBS) $(PSBLAS_LIBS) $(LDLIBS)
|
||
|
/bin/mv amg_cf_sample $(EXEDIR)
|
||
17 years ago
|
|
||
4 years ago
|
amg_zf_sample: $(ZFSOBJS)
|
||
|
$(FLINK) $(LINKOPT) $(ZFSOBJS) -o amg_zf_sample \
|
||
|
$(AMG_LIBS) $(PSBLAS_LIBS) $(LDLIBS)
|
||
|
/bin/mv amg_zf_sample $(EXEDIR)
|
||
17 years ago
|
|
||
4 years ago
|
amg_sf_sample.o: data_input.o
|
||
|
amg_df_sample.o: data_input.o
|
||
|
amg_cf_sample.o: data_input.o
|
||
|
amg_zf_sample.o: data_input.o
|
||
9 years ago
|
|
||
17 years ago
|
clean:
|
||
8 years ago
|
/bin/rm -f $(DFSOBJS) $(ZFSOBJS) $(SFSOBJS) $(CFSOBJS) \
|
||
4 years ago
|
*$(.mod) $(EXEDIR)/amg_sf_sample $(EXEDIR)/amg_cf_sample \
|
||
|
$(EXEDIR)/amg_df_sample $(EXEDIR)/amg_zf_sample
|
||
17 years ago
|
|
||
|
lib:
|
||
|
(cd ../../; make library)
|
||
|
verycleanlib:
|
||
|
(cd ../../; make veryclean)
|
||
|
|