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

This commit is contained in:
sjplimp 2008-12-16 18:25:40 +00:00
parent 0c6c7f0cf2
commit 3b9310594d
1 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,40 @@
# opensuse = openSUSE linux, g++, MPICH, FFTW
SHELL = /bin/sh
# System-specific settings
CC = g++
CCFLAGS = -O3 -I /opt/mpich/include/ -DFFT_FFTW -DLAMMPS_GZIP
DEPFLAGS = -M
LINK = g++
LINKFLAGS = -O3 -L /opt/mpich/ch-p4/lib64
USRLIB = -ldfftw -lmpich
SYSLIB =
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)