~ubuntu-branches/debian/sid/lammps/sid

« back to all changes in this revision

Viewing changes to src/MAKE/Makefile.sdsc

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2015-04-29 23:44:49 UTC
  • mfrom: (5.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20150429234449-mbhy9utku6hp6oq8
Tags: 0~20150313.gitfa668e1-1
Upload into unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# sdsc = SDSC BG/L machine, xlC, native MPI, FFTW
2
 
 
3
 
SHELL = /bin/sh
4
 
.SUFFIXES: .cpp .u 
5
 
 
6
 
# ---------------------------------------------------------------------
7
 
# compiler/linker settings
8
 
# specify flags and libraries needed for your compiler
9
 
 
10
 
CC =            blrts_xlC
11
 
CCFLAGS =       -I/bgl/BlueLight/ppcfloor/bglsys/include \
12
 
                -O2 -qarch=440 -qtune=440
13
 
SHFLAGS =       -fPIC
14
 
DEPFLAGS =      -M -qmakedep=gcc
15
 
 
16
 
LINK =          blrts_xlC
17
 
LINKFLAGS =     -O \
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
21
 
LIB =           -lm
22
 
SIZE =          size
23
 
 
24
 
ARCHIVE =       ar
25
 
ARFLAGS =       -rc
26
 
SHLIBFLAGS =    -shared
27
 
 
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"
32
 
 
33
 
# LAMMPS ifdef settings, OPTIONAL
34
 
# see possible settings in doc/Section_start.html#2_2 (step 4)
35
 
 
36
 
LMP_INC =       -DLAMMPS_GZIP -DLAMMPS_XDR
37
 
 
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
44
 
 
45
 
MPI_INC =       -DMPICH_SKIP_MPICXX 
46
 
MPI_PATH = 
47
 
MPI_LIB =       -lmpich.rts -lmsglayer.rts -lrts.rts -ldevices.rts 
48
 
 
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
55
 
 
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
58
 
FFT_LIB =       -lfftw
59
 
 
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
66
 
 
67
 
JPG_INC =       
68
 
JPG_PATH =      
69
 
JPG_LIB =       
70
 
 
71
 
# ---------------------------------------------------------------------
72
 
# build rules and dependencies
73
 
# no need to edit this section
74
 
 
75
 
include Makefile.package.settings
76
 
include Makefile.package
77
 
 
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)
81
 
 
82
 
# Path to src files
83
 
 
84
 
vpath %.cpp ..
85
 
vpath %.h ..
86
 
 
87
 
# Link target
88
 
 
89
 
$(EXE): $(OBJ)
90
 
        $(LINK) $(LINKFLAGS) $(EXTRA_PATH) $(OBJ) $(EXTRA_LIB) $(LIB) -o $(EXE)
91
 
        $(SIZE) $(EXE)
92
 
 
93
 
# Library targets
94
 
 
95
 
lib:    $(OBJ)
96
 
        $(ARCHIVE) $(ARFLAGS) $(EXE) $(OBJ)
97
 
 
98
 
shlib:  $(OBJ)
99
 
        $(CC) $(CCFLAGS) $(SHFLAGS) $(SHLIBFLAGS) $(EXTRA_PATH) -o $(EXE) \
100
 
        $(OBJ) $(EXTRA_LIB) $(LIB)
101
 
 
102
 
# Compilation rules
103
 
 
104
 
%.o:%.cpp
105
 
        $(CC) $(CCFLAGS) $(SHFLAGS) $(EXTRA_INC) -c $<
106
 
 
107
 
%.d:%.cpp
108
 
        $(CC) $(CCFLAGS) $(EXTRA_INC) $(DEPFLAGS) $< > $@
109
 
 
110
 
# Individual dependencies
111
 
 
112
 
DEPENDS = $(OBJ:.o=.d)
113
 
sinclude $(DEPENDS)