1
# storm = Cray Red Storm XT3, Cray CC, native MPI, FFTW
6
# ---------------------------------------------------------------------
7
# compiler/linker settings
8
# specify flags and libraries needed for your compiler
24
# ---------------------------------------------------------------------
25
# LAMMPS-specific settings
26
# specify settings for LAMMPS features you will use
27
# if you change any -D setting, do full re-compile after "make clean"
29
# LAMMPS ifdef settings, OPTIONAL
30
# see possible settings in doc/Section_start.html#2_2 (step 4)
32
LMP_INC = -DLAMMPS_GZIP
34
# MPI library, REQUIRED
35
# see discussion in doc/Section_start.html#2_2 (step 5)
36
# can point to dummy MPI library in src/STUBS as in Makefile.serial
37
# INC = path for mpi.h, MPI compiler settings
38
# PATH = path for MPI library
39
# LIB = name of MPI library
41
MPI_INC = -DMPICH_SKIP_MPICXX
45
# FFT library, OPTIONAL
46
# see discussion in doc/Section_start.html#2_2 (step 6)
47
# can be left blank to use provided KISS FFT library
48
# INC = -DFFT setting, e.g. -DFFT_FFTW, FFT compiler settings
49
# PATH = path for FFT library
50
# LIB = name of FFT library
52
FFT_INC = -DFFT_FFTW -I/projects/fftw/fftw-2.1.5/include
56
# JPEG and/or PNG library, OPTIONAL
57
# see discussion in doc/Section_start.html#2_2 (step 7)
58
# only needed if -DLAMMPS_JPEG or -DLAMMPS_PNG listed with LMP_INC
59
# INC = path(s) for jpeglib.h and/or png.h
60
# PATH = path(s) for JPEG library and/or PNG library
61
# LIB = name(s) of JPEG library and/or PNG library
67
# ---------------------------------------------------------------------
68
# build rules and dependencies
69
# no need to edit this section
71
include Makefile.package.settings
72
include Makefile.package
74
EXTRA_INC = $(LMP_INC) $(PKG_INC) $(MPI_INC) $(FFT_INC) $(JPG_INC) $(PKG_SYSINC)
75
EXTRA_PATH = $(PKG_PATH) $(MPI_PATH) $(FFT_PATH) $(JPG_PATH) $(PKG_SYSPATH)
76
EXTRA_LIB = $(PKG_LIB) $(MPI_LIB) $(FFT_LIB) $(JPG_LIB) $(PKG_SYSLIB)
86
$(LINK) $(LINKFLAGS) $(EXTRA_PATH) $(OBJ) $(EXTRA_LIB) $(LIB) -o $(EXE)
92
$(ARCHIVE) $(ARFLAGS) $(EXE) $(OBJ)
95
$(CC) $(CCFLAGS) $(SHFLAGS) $(SHLIBFLAGS) $(EXTRA_PATH) -o $(EXE) \
96
$(OBJ) $(EXTRA_LIB) $(LIB)
101
$(CC) $(CCFLAGS) $(EXTRA_INC) -c $<
103
# Individual dependencies