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.gfortran
|
|
|
|
|
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
|
2016-05-04 00:11:34 +08:00
|
|
|
OBJ = $(SRC:.F=.o) fm_exp.o
|
2007-01-31 05:53:58 +08:00
|
|
|
|
|
|
|
# ------ SETTINGS ------
|
|
|
|
|
|
|
|
F90 = g95
|
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 $<
|
|
|
|
|
2016-05-04 00:11:34 +08:00
|
|
|
%.o:%.c
|
|
|
|
$(CC) $(F90FLAGS) -c $<
|
|
|
|
|
2016-04-14 06:25:46 +08:00
|
|
|
include .depend
|
2007-01-31 05:53:58 +08:00
|
|
|
# ------ CLEAN ------
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm *.o *.mod *~ $(LIB)
|
|
|
|
|
|
|
|
tar:
|
2008-03-01 08:09:49 +08:00
|
|
|
-tar -cvf ../MEAM.tar $(FILES)
|