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.
psblas3/base/Makefile

42 lines
999 B
Makefile

include ../Make.inc
HERE=.
LIBDIR=../lib
LIBNAME=$(BASELIBNAME)
LIBMOD=psb_base_mod$(.mod)
lib: $(LIBDIR)/$(LIBNAME) $(LIBDIR)/$(LIBMOD)
$(HERE)/$(LIBNAME): mods sr cm in pb tl
$(LIBDIR)/$(LIBNAME): $(HERE)/$(LIBNAME)
/bin/cp -p $(CPUPDFLAG) $(HERE)/$(LIBNAME) $(LIBDIR)
$(LIBDIR)/$(LIBMOD): $(LIBMOD)
/bin/cp -p $(CPUPDFLAG) $(LIBMOD) *$(.mod) $(LIBDIR)
sr cm in pb tl: mods
mods:
(cd modules; $(MAKE) lib LIBNAME=$(BASELIBNAME) F90="$(MPF90)" F90COPT="$(F90COPT) $(MPI_OPT)")
sr:
(cd serial; $(MAKE) lib LIBNAME=$(BASELIBNAME))
cm:
(cd comm; $(MAKE) lib LIBNAME=$(BASELIBNAME))
in:
(cd internals; $(MAKE) lib LIBNAME=$(BASELIBNAME))
pb:
(cd psblas; $(MAKE) lib LIBNAME=$(BASELIBNAME))
tl:
(cd tools; $(MAKE) lib LIBNAME=$(BASELIBNAME))
clean:
(cd modules; $(MAKE) clean)
(cd comm; $(MAKE) clean)
(cd internals; $(MAKE) clean)
(cd tools; $(MAKE) clean)
(cd serial; $(MAKE) clean)
(cd psblas; $(MAKE) clean)
veryclean: clean
/bin/rm -f $(HERE)/$(LIBNAME) $(LIBMOD) *$(.mod)