2007-01-31 05:53:58 +08:00
|
|
|
# *
|
|
|
|
# *_________________________________________________________________________*
|
|
|
|
# * MEAM: MODEFIED EMBEDDED ATOM METHOD *
|
|
|
|
# * DESCRIPTION: SEE READ-ME *
|
|
|
|
# * FILE NAME: Makefile *
|
|
|
|
# * AUTHORS: Greg Wagner, Sandia National Laboratories *
|
|
|
|
# * CONTACT: gjwagne@sandia.gov *
|
|
|
|
# *_________________________________________________________________________*/
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
2013-05-31 03:43:25 +08:00
|
|
|
# which file will be copied to Makefile.lammps
|
|
|
|
|
|
|
|
EXTRAMAKE = Makefile.lammps.ifort
|
|
|
|
|
2007-01-31 05:53:58 +08:00
|
|
|
# ------ FILES ------
|
|
|
|
|
2007-03-22 23:21:09 +08:00
|
|
|
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
|
2007-01-31 05:53:58 +08:00
|
|
|
|
|
|
|
FILES = $(SRC) Makefile
|
|
|
|
|
|
|
|
# ------ DEFINITIONS ------
|
|
|
|
|
|
|
|
LIB = libmeam.a
|
|
|
|
OBJ = $(SRC:.F=.o)
|
|
|
|
|
|
|
|
# ------ SETTINGS ------
|
|
|
|
|
|
|
|
F90 = ifort
|
2012-08-14 22:21:56 +08:00
|
|
|
F90FLAGS = -O -fPIC
|
2007-01-31 05:53:58 +08:00
|
|
|
ARCHIVE = ar
|
|
|
|
ARCHFLAG = -rc
|
|
|
|
USRLIB =
|
|
|
|
SYSLIB =
|
|
|
|
|
|
|
|
# ------ MAKE PROCEDURE ------
|
|
|
|
|
|
|
|
lib: $(OBJ)
|
|
|
|
$(ARCHIVE) $(ARFLAGS) $(LIB) $(OBJ)
|
2013-05-31 03:43:25 +08:00
|
|
|
@cp $(EXTRAMAKE) Makefile.lammps
|
2007-01-31 05:53:58 +08:00
|
|
|
|
|
|
|
# ------ COMPILE RULES ------
|
|
|
|
|
|
|
|
%.o:%.F
|
|
|
|
$(F90) $(F90FLAGS) -c $<
|
|
|
|
|
|
|
|
# ------ CLEAN ------
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm *.o *.mod *~ $(LIB)
|
|
|
|
|
|
|
|
tar:
|
2008-03-01 08:09:49 +08:00
|
|
|
-tar -cvf ../MEAM.tar $(FILES)
|