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

« back to all changes in this revision

Viewing changes to src/MAKE/Makefile.storm

  • 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
 
# storm = Cray Red Storm XT3, Cray CC, native MPI, FFTW
2
 
 
3
 
SHELL = /bin/sh
4
 
.SUFFIXES: .cpp .d
5
 
 
6
 
# ---------------------------------------------------------------------
7
 
# compiler/linker settings
8
 
# specify flags and libraries needed for your compiler
9
 
 
10
 
CC =            CC
11
 
CCFLAGS =       -fastsse
12
 
SHFLAGS =       -fPIC
13
 
DEPFLAGS =      -M
14
 
 
15
 
LINK =          CC
16
 
LINKFLAGS =     -O
17
 
LIB =           -lstdc++
18
 
SIZE =          size
19
 
 
20
 
ARCHIVE =       ar
21
 
ARFLAGS =       -rc
22
 
SHLIBFLAGS =    -shared
23
 
 
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"
28
 
 
29
 
# LAMMPS ifdef settings, OPTIONAL
30
 
# see possible settings in doc/Section_start.html#2_2 (step 4)
31
 
 
32
 
LMP_INC =       -DLAMMPS_GZIP
33
 
 
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
40
 
 
41
 
MPI_INC =       -DMPICH_SKIP_MPICXX 
42
 
MPI_PATH = 
43
 
MPI_LIB =       
44
 
 
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
51
 
 
52
 
FFT_INC =       -DFFT_FFTW -I/projects/fftw/fftw-2.1.5/include
53
 
FFT_PATH = 
54
 
FFT_LIB =       -lfftw
55
 
 
56
 
# JPEG and/or PNG library, OPTIONAL
57
 
# see discussion in doc/Section_start.html#2_2 (step 7)
58
 
# only needed if -DLAMMPS_JPEG or -DLAMMPS_PNG listed with LMP_INC
59
 
# INC = path(s) for jpeglib.h and/or png.h
60
 
# PATH = path(s) for JPEG library and/or PNG library
61
 
# LIB = name(s) of JPEG library and/or PNG library
62
 
 
63
 
JPG_INC =       
64
 
JPG_PATH =      
65
 
JPG_LIB =       
66
 
 
67
 
# ---------------------------------------------------------------------
68
 
# build rules and dependencies
69
 
# no need to edit this section
70
 
 
71
 
include Makefile.package.settings
72
 
include Makefile.package
73
 
 
74
 
EXTRA_INC = $(LMP_INC) $(PKG_INC) $(MPI_INC) $(FFT_INC) $(JPG_INC) $(PKG_SYSINC)
75
 
EXTRA_PATH = $(PKG_PATH) $(MPI_PATH) $(FFT_PATH) $(JPG_PATH) $(PKG_SYSPATH)
76
 
EXTRA_LIB = $(PKG_LIB) $(MPI_LIB) $(FFT_LIB) $(JPG_LIB) $(PKG_SYSLIB)
77
 
 
78
 
# Path to src files
79
 
 
80
 
vpath %.cpp ..
81
 
vpath %.h ..
82
 
 
83
 
# Link target
84
 
 
85
 
$(EXE): $(OBJ)
86
 
        $(LINK) $(LINKFLAGS) $(EXTRA_PATH) $(OBJ) $(EXTRA_LIB) $(LIB) -o $(EXE)
87
 
        $(SIZE) $(EXE)
88
 
 
89
 
# Library targets
90
 
 
91
 
lib:    $(OBJ)
92
 
        $(ARCHIVE) $(ARFLAGS) $(EXE) $(OBJ)
93
 
 
94
 
shlib:  $(OBJ)
95
 
        $(CC) $(CCFLAGS) $(SHFLAGS) $(SHLIBFLAGS) $(EXTRA_PATH) -o $(EXE) \
96
 
        $(OBJ) $(EXTRA_LIB) $(LIB)
97
 
 
98
 
# Compilation rules
99
 
 
100
 
.cpp.o:
101
 
        $(CC) $(CCFLAGS) $(EXTRA_INC) -c $<
102
 
 
103
 
# Individual dependencies
104
 
 
105
 
$(OBJ):      $(INC)