Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

103 lines (73 sloc) 2.607 kb
srcdir = @srcdir@
top_builddir = @top_builddir@
abs_top_builddir = @abs_top_builddir@
top_srcdir = @top_srcdir@
abs_top_srcdir = @abs_top_srcdir@
subdir = solver
builddir = @builddir@
CFLAGS = @CFLAGS@ @SOLVEROUT@
DEPFLAGS = @DEPFLAGS@
LDFLAGS = @LDFLAGS@
DEFS = @DEFS@
OPTARGS = @OPTARGS@
AR = @AR@
RANLIB = @RANLIB@
CC = @CC@
CCDEP = @CCDEP@
CCLD = $(CC)
LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) ${OPTARGS} -o $@
LEX = @LEX@
AUTOCONF = @AUTOCONF@
DEFS = @DEFS@
INCLUDES = @INCLUDES@
LDADD =
#COMPILE = ${CC} ${DEFS} $(INCLUDES) ${CFLAGS}
COMPILE = ${CC} ${DEFS} ${INCLUDES} ${CFLAGS} ${OPTARGS}
LIBRARIES = libsolver
libsolver_TARGETS = bicgstab_complex gmres \
cgs_real cg_her mr chrono_guess \
bicgstabell bicgstab2 eigenvalues fgmres \
gcr gcr4complex diagonalise_general_matrix \
quicksort gmres_dr lu_solve jdher Msap \
jdher_bi gram-schmidt eigenvalues_bi \
bicgstab_complex_bi cg_her_bi pcg_her \
sub_low_ev cg_her_nd poly_precon \
generate_dfl_subspace dfl_projector \
cg_mms_tm solver_field sumr mixed_cg_her index_jd \
dirac_operator_eigenvectors spectral_proj \
jdher_su3vect cg_her_su3vect eigenvalues_Jacobi
libsolver_OBJECTS = $(addsuffix .o, ${libsolver_TARGETS})
# default rule
all: Makefile dep libsolver.a
# rules for debugging
debug all-debug: CFLAGS := $(CFLAGS) @DEBUG_FLAG@
debug all-debug: all
# rules for profiling information
profile all-profile: CFLAGS := $(filter-out -fomit-frame-pointer,${CFLAGS}) @PROFILE_FLAG@
profile all-profile: all
#include dep rules
-include $(addsuffix .d,${libsolver_TARGETS})
include ${top_srcdir}/Makefile.global
# rule to compile objects
%.o: ${srcdir}/%.c %.d Makefile ${abs_top_builddir}/config.h
$(COMPILE) -c $<
# rule to make liblinalg
libsolver.a: ${libsolver_OBJECTS} Makefile
@rm -f libsolver.a
@${AR} cru libsolver.a $(libsolver_OBJECTS)
@$(RANLIB) libsolver.a
@cp libsolver.a ${top_builddir}/lib/libsolver.a
# rule to generate .d files
$(addsuffix .d,$(libsolver_TARGETS)): %.d: ${srcdir}/%.c Makefile
@$(CCDEP) ${DEFS} ${DEPFLAGS} ${INCLUDES} $< > $@
# rule to make dependencies
dep: ${addsuffix .d, ${libsolver_TARGETS}}
# rules to clean
compile-clean: Makefile
rm -f ${$(addsuffix _OBJECTS, ${LIBRARIES})} *.d
clean: compile-clean
rm -f $(addsuffix .a, ${LIBRARIES})
rm -f ../lib/libsolver.a
distclean: clean
rm -f Makefile
.PHONY: all dep clean compile-clean distclean debug all-debug profile all-profile
Jump to Line
Something went wrong with that request. Please try again.