From 287cb2518241bf72c16862213e55d67223ead555 Mon Sep 17 00:00:00 2001 From: athomps Date: Tue, 7 Apr 2009 21:59:58 +0000 Subject: [PATCH] Added lib/meam/Makefile.tbird git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@2738 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- lib/meam/Makefile.tbird | 60 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100755 lib/meam/Makefile.tbird diff --git a/lib/meam/Makefile.tbird b/lib/meam/Makefile.tbird new file mode 100755 index 0000000000..da0430e5bb --- /dev/null +++ b/lib/meam/Makefile.tbird @@ -0,0 +1,60 @@ +# * +# *_________________________________________________________________________* +# * MEAM: MODEFIED EMBEDDED ATOM METHOD * +# * DESCRIPTION: SEE READ-ME * +# * FILE NAME: Makefile * +# * AUTHORS: Greg Wagner, Sandia National Laboratories * +# * CONTACT: gjwagne@sandia.gov * +# *_________________________________________________________________________*/ + +# As of April 2009, you can compile and link LAMMPS to the library +# created by this file, using the following changes to the +# standard version of src/MAKE/Makefile.tbird +# +# CCFLAGS = -O -DFFT_FFTW -I$(FFTW_INCLUDE) -I../../lib/reax -I../../lib/meam +# LINKFLAGS = -O -L../../lib/reax -L../../lib/meam -L/projects/global/x86_64/compilers/intel/intel-11.0-cprof-074/lib/intel64 +# USRLIB = $(BLASLIB) $(FFTW_LINK_LINE) -lstdc++ -lreax -lmeam +# SYSLIB = -lm -lsvml -lifport -lifcore +# + +SHELL = /bin/sh + +# ------ FILES ------ + +SRC = meam_data.F meam_setup_done.F meam_setup_global.F meam_setup_param.F meam_dens_init.F meam_dens_final.F meam_force.F meam_cleanup.F + +FILES = $(SRC) Makefile + +# ------ DEFINITIONS ------ + +LIB = libmeam.a +OBJ = $(SRC:.F=.o) + +# ------ SETTINGS ------ + +F90 = mpif90 +F90FLAGS = -O +ARCHIVE = ar +ARCHFLAG = -rc +LINK = g++ +LINKFLAGS = -O +USRLIB = +SYSLIB = + +# ------ MAKE PROCEDURE ------ + +lib: $(OBJ) + $(ARCHIVE) $(ARFLAGS) $(LIB) $(OBJ) + +# ------ COMPILE RULES ------ + +%.o:%.F + $(F90) $(F90FLAGS) -c $< + +# ------ CLEAN ------ + +clean: + -rm *.o *.mod *~ $(LIB) + +tar: + -tar -cvf ../MEAM.tar $(FILES)