forked from lijiext/lammps
58 lines
1.3 KiB
Makefile
58 lines
1.3 KiB
Makefile
# *
|
|
# *_________________________________________________________________________*
|
|
# * 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
|
|
|
|
# which file will be copied to Makefile.lammps
|
|
|
|
EXTRAMAKE = Makefile.lammps.ifort
|
|
|
|
# ------ 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
|
|
OBJ = $(SRC:.F=.o) fm_exp.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
|
|
$(F90) $(F90FLAGS) -c $<
|
|
|
|
%.o:%.c
|
|
$(CC) $(F90FLAGS) -c $<
|
|
|
|
include .depend
|
|
# ------ CLEAN ------
|
|
|
|
clean:
|
|
-rm *.o *.mod *~ $(LIB)
|
|
|
|
tar:
|
|
-tar -cvf ../MEAM.tar $(FILES)
|