2009-04-08 06:03:00 +08:00
|
|
|
# *
|
|
|
|
# *_________________________________________________________________________*
|
|
|
|
# * Fortran Library for Reactive Force Field *
|
|
|
|
# * DESCRIPTION: SEE READ-ME *
|
|
|
|
# * FILE NAME: Makefile *
|
|
|
|
# * CONTRIBUTING AUTHORS: Hansohl Cho(MIT), Aidan Thompson(SNL) *
|
|
|
|
# * and Greg Wagner(SNL) *
|
|
|
|
# * CONTACT: hansohl@mit.edu, athompson@sandia.gov, gjwagne@sandia.gov *
|
|
|
|
# *_________________________________________________________________________*/
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
2013-05-31 03:53:03 +08:00
|
|
|
# which file will be copied to Makefile.lammps
|
|
|
|
|
|
|
|
EXTRAMAKE = Makefile.lammps.ifort
|
|
|
|
|
2009-04-08 06:03:00 +08:00
|
|
|
# ------ FILES ------
|
|
|
|
|
|
|
|
SRC = reax_connect.F reax_inout.F reax_lammps.F reax_poten.F reax_reac.F reax_charges.F
|
|
|
|
|
2010-09-08 03:56:20 +08:00
|
|
|
HEADERFILES = reax_defs.h *.blk
|
2009-04-08 06:03:00 +08:00
|
|
|
|
|
|
|
# ------ DEFINITIONS ------
|
|
|
|
|
|
|
|
LIB = libreax.a
|
|
|
|
OBJ = $(SRC:.F=.o)
|
|
|
|
|
|
|
|
# ------ SETTINGS ------
|
|
|
|
|
|
|
|
F90 = mpif90
|
2012-08-14 22:22:56 +08:00
|
|
|
F90FLAGS = -O -fPIC
|
2009-04-08 06:03:00 +08:00
|
|
|
ARCHIVE = ar
|
|
|
|
ARCHFLAG = -rc
|
|
|
|
USRLIB =
|
|
|
|
SYSLIB =
|
|
|
|
|
|
|
|
# ------ MAKE PROCEDURE ------
|
|
|
|
|
|
|
|
lib: $(OBJ)
|
|
|
|
$(ARCHIVE) $(ARFLAGS) $(LIB) $(OBJ)
|
2013-05-31 03:53:03 +08:00
|
|
|
@cp $(EXTRAMAKE) Makefile.lammps
|
2009-04-08 06:03:00 +08:00
|
|
|
|
|
|
|
# ------ COMPILE RULES ------
|
|
|
|
|
2010-09-08 03:56:20 +08:00
|
|
|
%.o:%.F $(HEADERFILES)
|
2009-04-08 06:03:00 +08:00
|
|
|
$(F90) $(F90FLAGS) -c $<
|
|
|
|
|
|
|
|
# ------ CLEAN ------
|
|
|
|
|
|
|
|
clean:
|
2010-09-08 03:56:20 +08:00
|
|
|
-rm *.o $(LIB)
|