forked from lijiext/lammps
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
# *
|
|
# *_________________________________________________________________________*
|
|
# * 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
|
|
|
|
# which file will be copied to Makefile.lammps
|
|
|
|
EXTRAMAKE = Makefile.lammps.ifort
|
|
|
|
# ------ FILES ------
|
|
|
|
SRC = reax_connect.F reax_inout.F reax_lammps.F reax_poten.F reax_reac.F reax_charges.F
|
|
|
|
HEADERFILES = reax_defs.h *.blk
|
|
|
|
# ------ DEFINITIONS ------
|
|
|
|
LIB = libreax.a
|
|
OBJ = $(SRC:.F=.o)
|
|
|
|
# ------ SETTINGS ------
|
|
|
|
F90 = ifort
|
|
F90FLAGS = -O -fPIC
|
|
ARCHIVE = ar
|
|
ARCHFLAG = -rc
|
|
USRLIB =
|
|
SYSLIB =
|
|
|
|
# ------ MAKE PROCEDURE ------
|
|
|
|
lib: $(OBJ)
|
|
$(ARCHIVE) $(ARFLAGS) $(LIB) $(OBJ)
|
|
@cp $(EXTRAMAKE) Makefile.lammps
|
|
|
|
# ------ COMPILE RULES ------
|
|
|
|
%.o:%.F $(HEADERFILES)
|
|
$(F90) $(F90FLAGS) -c $<
|
|
|
|
# ------ CLEAN ------
|
|
|
|
clean:
|
|
-rm *.o $(LIB)
|