1
# sdsc = SDSC BG/L machine, xlC, native MPI, FFTW
6
# ---------------------------------------------------------------------
7
# compiler/linker settings
8
# specify flags and libraries needed for your compiler
11
CCFLAGS = -I/bgl/BlueLight/ppcfloor/bglsys/include \
12
-O2 -qarch=440 -qtune=440
14
DEPFLAGS = -M -qmakedep=gcc
18
-L/bgl/BlueLight/ppcfloor/bglsys/lib \
19
-L/opt/ibmcmp/xlf/bg/10.1/blrts_lib \
20
-L/opt/ibmcmp/vacpp/bg/8.0/blrts_lib
28
# ---------------------------------------------------------------------
29
# LAMMPS-specific settings
30
# specify settings for LAMMPS features you will use
31
# if you change any -D setting, do full re-compile after "make clean"
33
# LAMMPS ifdef settings, OPTIONAL
34
# see possible settings in doc/Section_start.html#2_2 (step 4)
36
LMP_INC = -DLAMMPS_GZIP -DLAMMPS_XDR
38
# MPI library, REQUIRED
39
# see discussion in doc/Section_start.html#2_2 (step 5)
40
# can point to dummy MPI library in src/STUBS as in Makefile.serial
41
# INC = path for mpi.h, MPI compiler settings
42
# PATH = path for MPI library
43
# LIB = name of MPI library
45
MPI_INC = -DMPICH_SKIP_MPICXX
47
MPI_LIB = -lmpich.rts -lmsglayer.rts -lrts.rts -ldevices.rts
49
# FFT library, OPTIONAL
50
# see discussion in doc/Section_start.html#2_2 (step 6)
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
56
FFT_INC = -DFFT_FFTW -I//usr/local/apps/V1R3/fftw-2.1.5d/include
57
FFT_PATH = -L/usr/local/apps/V1R3/fftw-2.1.5d/lib
60
# JPEG and/or PNG library, OPTIONAL
61
# see discussion in doc/Section_start.html#2_2 (step 7)
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
# no need to 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) $< > $@
110
# Individual dependencies
112
DEPENDS = $(OBJ:.o=.d)