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.
38 lines
998 B
Makefile
38 lines
998 B
Makefile
INSTALLDIR=../../..
|
|
INCDIR=$(INSTALLDIR)/include/
|
|
MODDIR=$(INSTALLDIR)/modules/
|
|
include $(INCDIR)/Make.inc.psblas
|
|
#
|
|
# Libraries used
|
|
#
|
|
LIBDIR = $(INSTALLDIR)/lib/
|
|
PSBLAS_LIB = -L$(LIBDIR) -lpsb_util -lpsb_base
|
|
LDLIBS = $(PSBLDLIBS)
|
|
EXEDIR = ./runs
|
|
|
|
FINCLUDES=$(FMFLAG)$(MODDIR) $(FMFLAG).
|
|
|
|
GREEN=\033[0;32m
|
|
RED=\033[0;31m
|
|
BLUE=\033[0;34m
|
|
YELLOW=\033[33m
|
|
END_COLOUR=\033[0m
|
|
|
|
|
|
all: runsd psb_gedots_test
|
|
@printf "$(GREEN)[INFO]\t Compilation success!$(END_COLOUR)\n"
|
|
|
|
runsd:
|
|
@(if test ! -d $(EXEDIR) ; then mkdir $(EXEDIR); fi)
|
|
@printf "$(BLUE)[INFO]\t Build directory $(EXEDIR) correctly initialized$(END_COLOUR)\n"
|
|
|
|
psb_gedots_test:
|
|
@$(FLINK) $(LOPT) psb_gedots_test.f90 ../utils/psb_test_utils.o -o $(EXEDIR)/psb_gedots_test -I../utils/ -I$(MODDIR) -I. $(PSBLAS_LIB) $(LDLIBS)
|
|
@printf "$(BLUE)[INFO]\t Testing files for psb_gedot linked and compiled correctly$(END_COLOUR)\n"
|
|
|
|
clean:
|
|
@rm -f $(OBJS)\
|
|
*$(.mod) $(EXEDIR)/psb_gedots_test
|
|
|
|
.PHONY: all psb_gedots_test clean
|