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

« back to all changes in this revision

Viewing changes to lib/awpmd/Makefile.openmpi

  • 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
 
SHELL = /bin/sh
2
 
 
3
 
# which file will be copied to Makefile.lammps
4
 
 
5
 
EXTRAMAKE = Makefile.lammps.installed
6
 
 
7
 
# ------ FILES ------
8
 
 
9
 
SRC = \
10
 
    ivutils/src/logexc.cpp \
11
 
    systems/interact/TCP/wpmd.cpp \
12
 
    systems/interact/TCP/wpmd_split.cpp
13
 
 
14
 
INC = \
15
 
    cerf.h \
16
 
    cerf2.h \
17
 
    cerf_octave.h \
18
 
    cvector_3.h \
19
 
    lapack_inter.h \
20
 
    logexc.h \
21
 
    pairhash.h \
22
 
    refobj.h \
23
 
    tcpdefs.h \
24
 
    vector_3.h \
25
 
    wavepacket.h \
26
 
    wpmd.h \
27
 
    wpmd_split.h
28
 
 
29
 
# ------ DEFINITIONS ------
30
 
 
31
 
LIB = libawpmd.a
32
 
OBJ =   $(SRC:.cpp=.o)
33
 
 
34
 
# ------ SETTINGS ------
35
 
 
36
 
# include any MPI settings needed for the ATC library to build with
37
 
# the same MPI library that LAMMPS is built with
38
 
 
39
 
CC =        mpic++ 
40
 
CCFLAGS = -O -fPIC -Isystems/interact/TCP/ -Isystems/interact -Iivutils/include
41
 
ARCHIVE =       ar
42
 
ARCHFLAG =      -rc
43
 
DEPFLAGS =  -M
44
 
#LINK =         
45
 
#LINKFLAGS =    
46
 
USRLIB =
47
 
SYSLIB =
48
 
 
49
 
# ------ MAKE PROCEDURE ------
50
 
 
51
 
lib:    $(OBJ)
52
 
        $(ARCHIVE) $(ARFLAGS) $(LIB) $(OBJ)
53
 
        @cp $(EXTRAMAKE) Makefile.lammps
54
 
 
55
 
# ------ COMPILE RULES ------
56
 
 
57
 
%.o:%.cpp
58
 
        $(CC) $(CCFLAGS) -c $< -o $@
59
 
%.d:%.cpp
60
 
        $(CC) $(CCFLAGS) $(DEPFLAGS) $< > $@            
61
 
 
62
 
# ------ DEPENDENCIES ------
63
 
 
64
 
DEPENDS = $(OBJ:.o=.d)
65
 
 
66
 
# ------ CLEAN ------
67
 
 
68
 
clean:
69
 
        rm *.d *~ $(OBJ) $(LIB)