mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1318 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
3398db7c51
commit
6e3815741d
|
@ -7,12 +7,14 @@ SHELL = /bin/sh
|
|||
|
||||
# Note: this Makefile builds LAMMPS according to what modules you've loaded
|
||||
# by default this is openmpi MPI
|
||||
# if you want to build with mpich MPI instead, do the following:
|
||||
# (1) put these lines in your .cshrc
|
||||
# module switch mpi mpi/mpich-mx-1.2.7..4_intel-10.0-f025-c025
|
||||
# module load libraries/fftw-2.1.5_mpich-mx-1.2.7..4_intel-9.1-f040-c046
|
||||
# (2) your qsub environment also needs these same modules
|
||||
# this will occur if you use qsub -V to inherit from your login shell
|
||||
# you still need this line in your .cshrc to load FFTW
|
||||
# module load libraries/fftw-2.1.5_openmpi-1.2.3_mx_intel-8.1-f034-c038
|
||||
# if you want to build with mpich MPI instead, put this in your .cshrc
|
||||
# module switch mpi mpi/mpich-mx-1.2.7..4_intel-10.0-f025-c025
|
||||
# module load libraries/fftw-2.1.5_mpich-mx-1.2.7..4_intel-9.1-f040-c046
|
||||
# whichever mode you build LAMMPS (openmpi or mpich),
|
||||
# your qsub environment needs these same modules
|
||||
# this will occur if you use qsub -V to inherit from your login shell
|
||||
|
||||
#FFTW = /home/sjplimp/fftw/fftw_liberty
|
||||
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
# serial = RedHat Linux box, icc, no MPI, no FFTs
|
||||
# serial = RedHat Linux box, g++, no MPI, no FFTs
|
||||
|
||||
SHELL = /bin/sh
|
||||
|
||||
# System-specific settings
|
||||
|
||||
CC = icc
|
||||
CC = g++
|
||||
CCFLAGS = -O -I../STUBS -DFFT_NONE
|
||||
DEPFLAGS = -M
|
||||
LINK = icc
|
||||
LINK = g++
|
||||
LINKFLAGS = -O -L../STUBS
|
||||
USRLIB = -lmpi
|
||||
SYSLIB = -lstdc++
|
||||
USRLIB = -lmpich
|
||||
SYSLIB =
|
||||
ARCHIVE = ar
|
||||
ARFLAGS = -rc
|
||||
SIZE = size
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
# serial_icc = RedHat Linux box, icc, no MPI, no FFTs
|
||||
|
||||
SHELL = /bin/sh
|
||||
|
||||
# System-specific settings
|
||||
|
||||
CC = icc
|
||||
CCFLAGS = -O -I../STUBS -DFFT_NONE
|
||||
DEPFLAGS = -M
|
||||
LINK = icc
|
||||
LINKFLAGS = -O -L../STUBS
|
||||
USRLIB = -lmpi
|
||||
SYSLIB = -lstdc++
|
||||
ARCHIVE = ar
|
||||
ARFLAGS = -rc
|
||||
SIZE = size
|
||||
|
||||
# Link target
|
||||
|
||||
$(EXE): $(OBJ)
|
||||
$(LINK) $(LINKFLAGS) $(OBJ) $(USRLIB) $(SYSLIB) -o $(EXE)
|
||||
$(SIZE) $(EXE)
|
||||
|
||||
# Library target
|
||||
|
||||
lib: $(OBJ)
|
||||
$(ARCHIVE) $(ARFLAGS) $(EXE) $(OBJ)
|
||||
|
||||
# Compilation rules
|
||||
|
||||
%.o:%.cpp
|
||||
$(CC) $(CCFLAGS) -c $<
|
||||
|
||||
%.d:%.cpp
|
||||
$(CC) $(CCFLAGS) $(DEPFLAGS) $< > $@
|
||||
|
||||
# Individual dependencies
|
||||
|
||||
DEPENDS = $(OBJ:.o=.d)
|
||||
include $(DEPENDS)
|
Loading…
Reference in New Issue