git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@2560 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2009-02-06 18:30:45 +00:00
parent 46fb40130c
commit 1c4252c00e
3 changed files with 115 additions and 0 deletions

View File

@ -0,0 +1,41 @@
# g++_reax = RedHat Linux box, g++, MPICH2, FFTW, REAX lib
SHELL = /bin/sh
# System-specific settings
CC = g++
CCFLAGS = -g -O -I../../lib/reax \
-DFFT_FFTW -DLAMMPS_GZIP -DMPICH_IGNORE_CXX_SEEK
DEPFLAGS = -M
LINK = g++
LINKFLAGS = -g -O -L../../lib/reax -L/opt/intel/fce/10.0.023/lib
USRLIB = -lfftw -lmpich -lreax
SYSLIB = -lpthread -lifcore -lsvml -lompstub -limf
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)

View File

@ -0,0 +1,42 @@
# linux_reax = RedHat Linux box, Intel icc, MPICH2, FFTW, REAX lib
SHELL = /bin/sh
# System-specific settings
CC = icc
CCFLAGS = -O -I../../lib/reax \
-DFFT_FFTW -DLAMMPS_GZIP -DMPICH_IGNORE_CXX_SEEK
DEPFLAGS = -M
LINK = icc
LINKFLAGS = -O -L../../lib/reax \
-L/opt/intel/fce/10.0.023/lib
USRLIB = -lfftw -lmpich -lreax
SYSLIB = -lpthread -lstdc++ -lifcore -lsvml -lompstub -limf
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)

32
src/MAKE/Makefile.mac_reax Executable file
View File

@ -0,0 +1,32 @@
# mac_reax = Apple PowerBook G4 laptop, Finked LAM/MPI, Finked FFTW 2.1.5, REAX lib
SHELL = /bin/sh
# System-specific settings
FFTW = /sw
CC = mpic++
CCFLAGS = -O -MMD -MG -DFFT_FFTW -I../../lib/reax -I${FFTW}/include \
-DOMPI_SKIP_MPICXX
LINK = mpic++
LINKFLAGS = -O -L${FFTW}/lib -L../../lib/reax -L/sw/lib/gcc4.2/lib
USRLIB = -lfftw -lreax
SYSLIB = -lgfortran
SIZE = size
# Link rule
$(EXE): $(OBJ)
$(LINK) $(LINKFLAGS) $(OBJ) $(USRLIB) $(SYSLIB) -o $(EXE)
$(SIZE) $(EXE)
# Compilation rules
%.o:%.cpp
$(CC) $(CCFLAGS) -c $<
# Individual dependencies
DEPENDS = $(OBJ:.o=.d)
-include $(DEPENDS)