1
# kokkos_omp = KOKKOS package with OMP support, MPI compiler, default MPI
5
# ---------------------------------------------------------------------
6
# compiler/linker settings
7
# specify flags and libraries needed for your compiler
24
# ---------------------------------------------------------------------
25
# LAMMPS-specific settings, all OPTIONAL
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
30
# see possible settings in Section 2.2 (step 4) of manual
32
LMP_INC = -DLAMMPS_GZIP
35
# see discussion in Section 2.2 (step 5) of manual
36
# MPI wrapper compiler/linker can provide this info
37
# can point to dummy MPI library in src/STUBS as in Makefile.serial
38
# use -D MPICH and OMPI settings in INC to avoid C++ lib conflicts
39
# INC = path for mpi.h, MPI compiler settings
40
# PATH = path for MPI library
41
# LIB = name of MPI library
43
MPI_INC = -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1
48
# see discussion in Section 2.2 (step 6) of manual
49
# can be left blank to use provided KISS FFT library
50
# INC = -DFFT setting, e.g. -DFFT_FFTW, FFT compiler settings
51
# PATH = path for FFT library
52
# LIB = name of FFT library
58
# JPEG and/or PNG library
59
# see discussion in Section 2.2 (step 7) of manual
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
69
# ---------------------------------------------------------------------
70
# build rules and dependencies
71
# do not 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) $< > $@
109
$(CC) $(CCFLAGS) $(SHFLAGS) $(EXTRA_INC) -c $<
111
# Individual dependencies
113
DEPENDS = $(OBJ:.o=.d)