Commit 6e381574 authored by sjplimp's avatar sjplimp
Browse files

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1318 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent 3398db7c
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -7,11 +7,13 @@ 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
#     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
#   (2) your qsub environment also needs these same modules
#   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
+5 −5
Original line number Diff line number Diff line
# 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
+40 −0
Original line number Diff line number Diff line
# 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)