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/serial/impl/sp3mm4amg/Makefile

45 lines
979 B
Makefile

include ../../../../Make.inc
CC=gcc
CWALL =-Wall -Wextra
#extra to reduce useless warnings
CWALL+=-Wno-pointer-sign -Wno-unused-parameter -Wno-unused-but-set-variable -Wno-switch
CWALL+=-Wno-unused-function -Wno-unused-variable #TODO CLEAN USELESS FUNCTIONS / VARIABLES
CWALL+=-Wno-unused-label -Wfatal-errors
CINCL = -Iinclude/
CFLAGS = -g -O3 $(CWALL) $(CINCL) -fopenmp $(RUNTIME)
LDFLAGS = -lm
LIBDIR=../../../
LIBFILE=$(LIBDIR)/$(LIBNAME)
SP3MM_CORE_OBJS=Sp3MM_CSR_OMP_Multi.o \
Sp3MM_CSR_OMP_SymbStep_Multi.o \
commons/ompGetICV.o \
commons/sparseUtilsMulti.o \
commons/utils.o \
lib/linuxK_rbtree_minimalized.o \
lib/mmio.o \
lib/parser.o
CBIND_OBJS=fbind/psb_f_spmm_ub.o
OBJS= $(SP3MM_CORE_OBJS) $(CBIND_OBJS)
%.o : %.c
$(CC) -c -o $@ $(CFLAGS) $^ $(LDFLAGS)
objs: $(OBJS)
lib: objs
$(AR) $(LIBDIR)/$(LIBNAME) $(OBJS)
$(RANLIB) $(LIBDIR)/$(LIBNAME)
clean: cleanobjs
veryclean: cleanobjs
cleanobjs:
/bin/rm -f $(OBJS)