From 79c3c6fe57f79f85e464c49499ca14de0b8d6e5e Mon Sep 17 00:00:00 2001 From: sjplimp Date: Mon, 9 Jun 2008 19:46:17 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1893 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/MAKE/Makefile.encanto | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/MAKE/Makefile.encanto diff --git a/src/MAKE/Makefile.encanto b/src/MAKE/Makefile.encanto new file mode 100644 index 0000000000..a73a4096f0 --- /dev/null +++ b/src/MAKE/Makefile.encanto @@ -0,0 +1,43 @@ +# encanto = NM cluster with dual quad-core Xeons, mpicxx, native MPI, FFTW + +SHELL = /bin/sh +.IGNORE: + +# System-specific settings + +CC = mpicxx +CCFLAGS = -O -DFFT_FFTW -I/home/jlane/fftw-2.1.5/fftw +DEPFLAGS = -M +LINK = mpicxx +LINKFLAGS = -O -L/home/jlane/fftw-2.1.5/fftw/.libs +USRLIB = -lstdc++ -lfftw +SYSLIB = -lm +SIZE = size + +ARCHIVE = ar +ARFLAGS = -rc + +# Link rule + +$(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)