1
# mac_mpi = Apple laptop, gcc 4.6, gfortran, Open MPI 1.4.3, FFTW 2.1.5, QUIP
5
# ---------------------------------------------------------------------
6
# compiler/linker settings
7
# generally no need to edit this section
8
# unless additional compiler/linker flags or libraries needed for your machine
10
CC = ${MPI_GCC46_PATH}/mpic++
15
LINK = ${MPI_GCC46_PATH}/mpic++
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 -DQUIP_GFORTRAN -DLAMMPS_JPEG
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 = -DOMPI_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
54
FFT_INC = -DFFT_FFTW -I${FFTW}/include
55
FFT_PATH = -L${FFTW}/lib
58
# JPEG and/or PNG library, OPTIONAL
59
# see discussion in doc/Section_start.html#2_2 (step 7)
60
# only needed if -DLAMMPS_JPEG or -DLAMMPS_PNG listed with LMP_INC
61
# INC = path(s) for jpeglib.h and/or png.h
62
# PATH = path(s) for JPEG library and/or PNG library
63
# LIB = name(s) of JPEG library and/or PNG library
65
JPG_INC = -I/opt/local/include
66
JPG_PATH = -L/opt/local/lib
69
# ---------------------------------------------------------------------
70
# build rules and dependencies
71
# no need to edit this section
73
include Makefile.package.settings
74
include Makefile.package
76
EXTRA_INC = $(LMP_INC) $(PKG_INC) $(MPI_INC) $(FFT_INC) $(JPG_INC) $(PKG_SYSINC)
77
EXTRA_PATH = $(PKG_PATH) $(MPI_PATH) $(FFT_PATH) $(JPG_PATH) $(PKG_SYSPATH)
78
EXTRA_LIB = $(PKG_LIB) $(MPI_LIB) $(FFT_LIB) $(JPG_LIB) $(PKG_SYSLIB)
88
$(LINK) $(LINKFLAGS) $(EXTRA_PATH) $(OBJ) $(EXTRA_LIB) $(LIB) -o $(EXE)
94
$(ARCHIVE) $(ARFLAGS) $(EXE) $(OBJ)
97
$(CC) $(CCFLAGS) $(SHFLAGS) $(SHLIBFLAGS) $(EXTRA_PATH) -o $(EXE) \
98
$(OBJ) $(EXTRA_LIB) $(LIB)
103
$(CC) $(CCFLAGS) $(SHFLAGS) $(EXTRA_INC) -c $<
106
$(CC) $(CCFLAGS) $(EXTRA_INC) $(DEPFLAGS) $< > $@
108
# Individual dependencies
110
DEPENDS = $(OBJ:.o=.d)