# SPBLASTK v. x.x # ########################################################### # # Makefile.def for Sparse BLAS Toolkit (Basic) # ########################################################### EXENAME = -o OBJ_EXT = o LIB_EXT = a EXE_EXT = SHELL = /bin/sh ARCHIVE = ar rv TOOLKIT_A = ../lib/libsbtk.$(LIB_EXT) INCLUDES = -I../include/ # Edit this file according to available compilers/architecture. # 1) Choose C compiler # 2) Indicate availability of a Fortran compiler, and choose if available # 3) Indicate availability of ranlib # # # 1) Choose appropriate C compiler: # (Last listed will be chosen.) # # Cray and Various: # # cc (Unix) # CC = cc CFLAGS = -O3 LDFLAGS = $(TOOLKIT_A) -lm # IBM: # # xlc # CC = xlc CFLAGS = -O LDFLAGS = $(TOOLKIT_A) -lm # Sun: # # acc # CC = acc CFLAGS = -O3 -unroll=4 LDFLAGS = $(TOOLKIT_A) -lm # Various: # # gcc v. 2.7.0 # CC = gcc CFLAGS = -O3 -funroll-loops LDFLAGS = $(TOOLKIT_A) -lm # # 2) Indicate availability of Fortran compiler and, if available, # choose appropriate Fortran compiler: # (Last listed will be chosen.) # If Fortran compiler is not available, set HASFORTRAN to 'f' # HASFORTRAN = t # Cray and Various: # # f90 # FC = f90 FFLAGS = -O3 LDFLAGS = $(TOOLKIT_A) -lm # IBM: # # xlf # FC = xlf FFLAGS = -O -qextname # Various: # # f77 # FC = f77 FFLAGS = -O LDFLAGS = $(TOOLKIT_A) -lm # # ranlib is available on this system? 't' or 'f' # # for example, Sun solaris and Cray set to 'f' HASRANLIB = t ########################################################### # Do not edit beyond this line. ########################################################### .SUFFIXES: .c .cc .$(OBJ_EXT) .c.$(OBJ_EXT): $(CC) $(CFLAGS) $(INCLUDES) -c $? .o: $(CC) $(CFLAGS) $(INCLUDES) -o $@ $@.o $(LDFLAGS)