1
# g++3 = RedHat Linux box, g++ (v3), MPICH2, FFTW
5
# ---------------------------------------------------------------------
6
# compiler/linker settings
7
# specify flags and libraries needed for your compiler
23
# ---------------------------------------------------------------------
24
# LAMMPS-specific settings
25
# specify settings for LAMMPS features you will use
26
# if you change any -D setting, do full re-compile after "make clean"
28
# LAMMPS ifdef settings, OPTIONAL
29
# see possible settings in doc/Section_start.html#2_2 (step 4)
31
LMP_INC = -DLAMMPS_GZIP
33
# MPI library, REQUIRED
34
# see discussion in doc/Section_start.html#2_2 (step 5)
35
# can point to dummy MPI library in src/STUBS as in Makefile.serial
36
# INC = path for mpi.h, MPI compiler settings
37
# PATH = path for MPI library
38
# LIB = name of MPI library
40
MPI_INC = -DMPICH_SKIP_MPICXX
42
MPI_LIB = -lmpich -lpthread
44
# FFT library, OPTIONAL
45
# see discussion in doc/Section_start.html#2_2 (step 6)
46
# can be left blank to use provided KISS FFT library
47
# INC = -DFFT setting, e.g. -DFFT_FFTW, FFT compiler settings
48
# PATH = path for FFT library
49
# LIB = name of FFT library
55
# JPEG and/or PNG library, OPTIONAL
56
# see discussion in doc/Section_start.html#2_2 (step 7)
57
# only needed if -DLAMMPS_JPEG or -DLAMMPS_PNG listed with LMP_INC
58
# INC = path(s) for jpeglib.h and/or png.h
59
# PATH = path(s) for JPEG library and/or PNG library
60
# LIB = name(s) of JPEG library and/or PNG library
66
# ---------------------------------------------------------------------
67
# build rules and dependencies
68
# no need to edit this section
70
include Makefile.package.settings
71
include Makefile.package
73
EXTRA_INC = $(LMP_INC) $(PKG_INC) $(MPI_INC) $(FFT_INC) $(JPG_INC) $(PKG_SYSINC)
74
EXTRA_PATH = $(PKG_PATH) $(MPI_PATH) $(FFT_PATH) $(JPG_PATH) $(PKG_SYSPATH)
75
EXTRA_LIB = $(PKG_LIB) $(MPI_LIB) $(FFT_LIB) $(JPG_LIB) $(PKG_SYSLIB)
85
$(LINK) $(LINKFLAGS) $(EXTRA_PATH) $(OBJ) $(EXTRA_LIB) $(LIB) -o $(EXE)
91
$(ARCHIVE) $(ARFLAGS) $(EXE) $(OBJ)
94
$(CC) $(CCFLAGS) $(SHFLAGS) $(SHLIBFLAGS) $(EXTRA_PATH) -o $(EXE) \
95
$(OBJ) $(EXTRA_LIB) $(LIB)
100
$(CC) $(CCFLAGS) $(SHFLAGS) $(EXTRA_INC) -c $<
103
$(CC) $(CCFLAGS) $(EXTRA_INC) $(DEPFLAGS) $< > $@
105
# Individual dependencies
107
DEPENDS = $(OBJ:.o=.d)