2009-04-08 05:59: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.glory
|
|
|
|
|
2009-04-08 05:59:58 +08:00
|
|
|
# ------ 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
|
2016-05-04 00:11:34 +08:00
|
|
|
OBJ = $(SRC:.F=.o) fm_exp.o
|
2009-04-08 05:59:58 +08:00
|
|
|
|
|
|
|
# ------ SETTINGS ------
|
|
|
|
|
|
|
|
F90 = mpif90
|
2012-08-14 22:21:56 +08:00
|
|
|
F90FLAGS = -O -fPIC
|
2009-04-08 05:59:58 +08:00
|
|
|
ARCHIVE = ar
|
|
|
|
ARCHFLAG = -rc
|
|
|
|
LINK = g++
|
|
|
|
LINKFLAGS = -O
|
|
|
|
USRLIB =
|
|
|
|
SYSLIB =
|
|
|
|
|
|
|
|
# ------ MAKE PROCEDURE ------
|
|
|
|
|
|
|
|
lib: $(OBJ)
|
|
|
|
$(ARCHIVE) $(ARFLAGS) $(LIB) $(OBJ)
|
2013-05-31 03:43:25 +08:00
|
|
|
@cp $(EXTRAMAKE) Makefile.lammps
|
2009-04-08 05:59: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
|
2009-04-08 05:59:58 +08:00
|
|
|
# ------ CLEAN ------
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm *.o *.mod *~ $(LIB)
|
|
|
|
|
|
|
|
tar:
|
|
|
|
-tar -cvf ../MEAM.tar $(FILES)
|