# * # *_________________________________________________________________________* # * Minimal BLAS/LAPACK Library for ATC # To compile and link LAMMPS to the linalg library generated by this Makefile, # try appending the following definitions to the standard definitions in # whatever LAMMPS Makefile your are using. # CCFLAGS = -I../../lib/linalg # LINKFLAGS = -L../../lib/libalg # USRLIB = -llinalg -lgfortran SHELL = /bin/sh # ------ FILES ------ SRC = dasum.f daxpy.f dcopy.f ddot.f dgecon.f dgemm.f dgemv.f dger.f dgetf2.f dgetrf.f dgetri.f dlabad.f dlamch.f dlacn2.f dlange.f dlassq.f dlaswp.f dlatrs.f drscl.f dscal.f dswap.f dtrmm.f dtrmv.f dtrsm.f dtrsv.f dtrti2.f dtrtri.f idamax.f ieeeck.f ilaenv.f iparmq.f lsame.f xerbla.f FILES = $(SRC) Makefile.* # ------ DEFINITIONS ------ LIB = liblinalg.a OBJ = $(SRC:.f=.o) # ------ SETTINGS ------ FC = gfortran #FFLAGS = -O3 -march=native -mpc64 \ -ffast-math -funroll-loops -fstrict-aliasing -Wall -W -Wno-uninitialized -fno-second-underscore FFLAGS = -O3 \ -ffast-math -funroll-loops -fstrict-aliasing -Wall -W -Wno-uninitialized -fno-second-underscore #FFLAGS0 = -O0 -march=native -mpc64 \ -Wall -W -Wno-uninitialized -fno-second-underscore FFLAGS0 = -O0 \ -Wall -W -Wno-uninitialized -fno-second-underscore ARCHIVE = ar AR = ar ARCHFLAG = -rcs USRLIB = SYSLIB = # ------ MAKE PROCEDURE ------ lib: $(OBJ) $(ARCHIVE) $(ARFLAGS) $(LIB) $(OBJ) # ------ COMPILE RULES ------ %.o:%.F $(F90) $(F90FLAGS) -c $< %.o:%.f $(FC) $(FFLAGS) -c $< dlamch.o: dlamch.f $(FC) $(FFLAGS0) -c $< # ------ CLEAN ------ clean: -rm *.o *.mod *~ $(LIB) tar: -tar -czvf ../linalg.tar.gz $(FILES)