1
# ubuntu_simple = Ubuntu Linux box, g++, openmpi, KISS FFT
3
# you have to install the packages g++, mpi-default-bin and mpi-default-dev
4
# to compile LAMMPS with this makefile
8
# ---------------------------------------------------------------------
9
# compiler/linker settings
10
# specify flags and libraries needed for your compiler
13
CCFLAGS = -g -O3 # -Wunused
26
# ---------------------------------------------------------------------
27
# LAMMPS-specific settings, all OPTIONAL
28
# specify settings for LAMMPS features you will use
29
# if you change any -D setting, do full re-compile after "make clean"
31
# LAMMPS ifdef settings
32
# see possible settings in Section 2.2 (step 4) of manual
34
LMP_INC = -DLAMMPS_GZIP
37
# see discussion in Section 2.2 (step 5) of manual
38
# MPI wrapper compiler/linker can provide this info
39
# can point to dummy MPI library in src/STUBS as in Makefile.serial
40
# use -D MPICH and OMPI settings in INC to avoid C++ lib conflicts
41
# INC = path for mpi.h, MPI compiler settings
42
# PATH = path for MPI library
43
# LIB = name of MPI library
50
# see discussion in Section 2.2 (step 6) of manaul
51
# can be left blank to use provided KISS FFT library
52
# INC = -DFFT setting, e.g. -DFFT_FFTW, FFT compiler settings
53
# PATH = path for FFT library
54
# LIB = name of FFT library
60
# JPEG and/or PNG library
61
# see discussion in Section 2.2 (step 7) of manual
62
# only needed if -DLAMMPS_JPEG or -DLAMMPS_PNG listed with LMP_INC
63
# INC = path(s) for jpeglib.h and/or png.h
64
# PATH = path(s) for JPEG library and/or PNG library
65
# LIB = name(s) of JPEG library and/or PNG library
71
# ---------------------------------------------------------------------
72
# build rules and dependencies
73
# do not edit this section
75
include Makefile.package.settings
76
include Makefile.package
78
EXTRA_INC = $(LMP_INC) $(PKG_INC) $(MPI_INC) $(FFT_INC) $(JPG_INC) $(PKG_SYSINC)
79
EXTRA_PATH = $(PKG_PATH) $(MPI_PATH) $(FFT_PATH) $(JPG_PATH) $(PKG_SYSPATH)
80
EXTRA_LIB = $(PKG_LIB) $(MPI_LIB) $(FFT_LIB) $(JPG_LIB) $(PKG_SYSLIB)
90
$(LINK) $(LINKFLAGS) $(EXTRA_PATH) $(OBJ) $(EXTRA_LIB) $(LIB) -o $(EXE)
96
$(ARCHIVE) $(ARFLAGS) $(EXE) $(OBJ)
99
$(CC) $(CCFLAGS) $(SHFLAGS) $(SHLIBFLAGS) $(EXTRA_PATH) -o $(EXE) \
100
$(OBJ) $(EXTRA_LIB) $(LIB)
105
$(CC) $(CCFLAGS) $(SHFLAGS) $(EXTRA_INC) -c $<
108
$(CC) $(CCFLAGS) $(EXTRA_INC) $(DEPFLAGS) $< > $@
111
$(CC) $(CCFLAGS) $(SHFLAGS) $(EXTRA_INC) -c $<
113
# Individual dependencies
115
DEPENDS = $(OBJ:.o=.d)