Commit 13187481 authored by athomps's avatar athomps
Browse files

Cleaned up Makefiles and added include dependencies

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4733 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent df352c4f
Loading
Loading
Loading
Loading
+19 −8
Original line number Diff line number Diff line
@@ -8,13 +8,28 @@
# *      CONTACT: hansohl@mit.edu, athompson@sandia.gov, gjwagne@sandia.gov *
# *_________________________________________________________________________*/

# To compile and link LAMMPS to the reax library generated by this Makefile,
# you need to first install the reax package (make yes-reax), after which the
# file Makefile.package should look something like:

# PKG_INC =  -I../../lib/reax
# PKG_PATH = -L../../lib/reax
# PKG_LIB =  -lreax 

# PKG_SYSPATH = $(reax_SYSPATH) 
# PKG_SYSLIB =  $(reax_SYSLIB) 
 
# The reax_SYSPATH and reax_SYSLIB variables contain compiler options
# giving the paths of needed FORTRAN libraries, and their names, respectively
#

SHELL = /bin/sh

# ------ FILES ------

SRC = reax_connect.F reax_inout.F reax_lammps.F reax_poten.F reax_reac.F reax_charges.F

FILES = $(SRC) Makefile 
HEADERFILES = reax_defs.h *.blk 

# ------ DEFINITIONS ------

@@ -24,7 +39,7 @@ OBJ = $(SRC:.F=.o)
# ------ SETTINGS ------

F90 =           g77
F90FLAGS =      -O -g
F90FLAGS =      -O 
ARCHIVE =	ar
ARCHFLAG =	-rc
USRLIB =
@@ -37,14 +52,10 @@ lib: $(OBJ)

# ------ COMPILE RULES ------

%.o:%.F
%.o:%.F $(HEADERFILES)
	$(F90) $(F90FLAGS) -c $<

# ------ CLEAN ------

clean:
	-rm *.o *.mod *~ $(LIB)

tar:
	-tar -cvf ../REAX.tar $(FILES)
	-rm *.o $(LIB)
+18 −7
Original line number Diff line number Diff line
@@ -8,13 +8,28 @@
# *      CONTACT: hansohl@mit.edu, athompson@sandia.gov, gjwagne@sandia.gov *
# *_________________________________________________________________________*/

# To compile and link LAMMPS to the reax library generated by this Makefile,
# you need to first install the reax package (make yes-reax), after which the
# file Makefile.package should look something like:

# PKG_INC =  -I../../lib/reax
# PKG_PATH = -L../../lib/reax
# PKG_LIB =  -lreax 

# PKG_SYSPATH = $(reax_SYSPATH) 
# PKG_SYSLIB =  $(reax_SYSLIB) 
 
# The reax_SYSPATH and reax_SYSLIB variables contain compiler options
# giving the paths of needed FORTRAN libraries, and their names, respectively
#

SHELL = /bin/sh

# ------ FILES ------

SRC = reax_connect.F reax_inout.F reax_lammps.F reax_poten.F reax_reac.F reax_charges.F

FILES = $(SRC) Makefile 
HEADERFILES = reax_defs.h *.blk 

# ------ DEFINITIONS ------

@@ -37,14 +52,10 @@ lib: $(OBJ)

# ------ COMPILE RULES ------

%.o:%.F
%.o:%.F $(HEADERFILES)
	$(F90) $(F90FLAGS) -c $<

# ------ CLEAN ------

clean:
	-rm *.o *.mod *~ $(LIB)

tar:
	-tar -cvf ../REAX.tar $(FILES)
	-rm *.o $(LIB)
+20 −12
Original line number Diff line number Diff line
@@ -9,11 +9,23 @@
# *_________________________________________________________________________*/

# To compile and link LAMMPS to the reax library generated by this Makefile,
# try appending the following definitions to the standard definitions in
# whatever LAMMPS Makefile your are using.  
# CCFLAGS =      -I../../lib/reax
# LINKFLAGS =    -L../../lib/reax
# USRLIB =       -lreax -lgfortran
# you need to first install the reax package (make yes-reax), after which the
# file Makefile.package should look something like:

# PKG_INC =  -I../../lib/reax
# PKG_PATH = -L../../lib/reax
# PKG_LIB =  -lreax 

# PKG_SYSPATH = $(reax_SYSPATH) 
# PKG_SYSLIB =  $(reax_SYSLIB) 
 
# The reax_SYSPATH and reax_SYSLIB variables contain compiler options
# giving the paths of needed FORTRAN libraries, and their names, respectively
#
# For Makefile.gfortran, try
#
# reax_SYSPATH = -L/usr/lib
# reax_SYSLIB = -lgfortran 

SHELL = /bin/sh

@@ -21,7 +33,7 @@ SHELL = /bin/sh

SRC = reax_connect.F reax_inout.F reax_lammps.F reax_poten.F reax_reac.F reax_charges.F

FILES = $(SRC) Makefile 
HEADERFILES = reax_defs.h *.blk 

# ------ DEFINITIONS ------

@@ -44,14 +56,10 @@ lib: $(OBJ)

# ------ COMPILE RULES ------

%.o:%.F
%.o:%.F $(HEADERFILES)
	$(F90) $(F90FLAGS) -c $<

# ------ CLEAN ------

clean:
	-rm *.o *.mod *~ $(LIB)

tar:
	-tar -cvf ../REAX.tar $(FILES)
	-rm *.o $(LIB)
+22 −7
Original line number Diff line number Diff line
@@ -8,13 +8,32 @@
# *      CONTACT: hansohl@mit.edu, athompson@sandia.gov, gjwagne@sandia.gov *
# *_________________________________________________________________________*/

# To compile and link LAMMPS to the reax library generated by this Makefile,
# you need to first install the reax package (make yes-reax), after which the
# file Makefile.package should look something like:

# PKG_INC =  -I../../lib/reax
# PKG_PATH = -L../../lib/reax
# PKG_LIB =  -lreax 

# PKG_SYSPATH = $(reax_SYSPATH) 
# PKG_SYSLIB =  $(reax_SYSLIB) 
 
# The reax_SYSPATH and reax_SYSLIB variables contain compiler options
# giving the paths of needed FORTRAN libraries, and their names, respectively
#
# For Makefile.ifort, try
#
# reax_SYSPATH = -L/opt/intel/fce/10.0.023/lib
# reax_SYSLIB = -lifcore -lsvml -lompstub -limf

SHELL = /bin/sh

# ------ FILES ------

SRC = reax_connect.F reax_inout.F reax_lammps.F reax_poten.F reax_reac.F reax_charges.F

FILES = $(SRC) Makefile 
HEADERFILES = reax_defs.h *.blk 

# ------ DEFINITIONS ------

@@ -37,14 +56,10 @@ lib: $(OBJ)

# ------ COMPILE RULES ------

%.o:%.F
%.o:%.F $(HEADERFILES)
	$(F90) $(F90FLAGS) -c $<

# ------ CLEAN ------

clean:
	-rm *.o *.mod *~ $(LIB)

tar:
	-tar -cvf ../REAX.tar $(FILES)
	-rm *.o $(LIB)
+18 −7
Original line number Diff line number Diff line
@@ -8,13 +8,28 @@
# *      CONTACT: hansohl@mit.edu, athompson@sandia.gov, gjwagne@sandia.gov *
# *_________________________________________________________________________*/

# To compile and link LAMMPS to the reax library generated by this Makefile,
# you need to first install the reax package (make yes-reax), after which the
# file Makefile.package should look something like:

# PKG_INC =  -I../../lib/reax
# PKG_PATH = -L../../lib/reax
# PKG_LIB =  -lreax 

# PKG_SYSPATH = $(reax_SYSPATH) 
# PKG_SYSLIB =  $(reax_SYSLIB) 
 
# The reax_SYSPATH and reax_SYSLIB variables contain compiler options
# giving the paths of needed FORTRAN libraries, and their names, respectively
#

SHELL = /bin/sh

# ------ FILES ------

SRC = reax_connect.F reax_inout.F reax_lammps.F reax_poten.F reax_reac.F reax_charges.F

FILES = $(SRC) Makefile 
HEADERFILES = reax_defs.h *.blk 

# ------ DEFINITIONS ------

@@ -37,14 +52,10 @@ lib: $(OBJ)

# ------ COMPILE RULES ------

%.o:%.F
%.o:%.F $(HEADERFILES)
	$(F90) $(F90FLAGS) -c $<

# ------ CLEAN ------

clean:
	-rm *.o *.mod *~ $(LIB)

tar:
	-tar -cvf ../REAX.tar $(FILES)
	-rm *.o $(LIB)
Loading