~ubuntu-branches/ubuntu/trusty/nwchem/trusty-proposed

« back to all changes in this revision

Viewing changes to src/tools/ga-5-2/cca/ga_cca_classic/Makefile

  • Committer: Package Import Robot
  • Author(s): Michael Banck, Daniel Leidert, Andreas Tille, Michael Banck
  • Date: 2013-07-04 12:14:55 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130704121455-5tvsx2qabor3nrui
Tags: 6.3-1
* New upstream release.
* Fixes anisotropic properties (Closes: #696361).
* New features include:
  + Multi-reference coupled cluster (MRCC) approaches
  + Hybrid DFT calculations with short-range HF 
  + New density-functionals including Minnesota (M08, M11) and HSE hybrid
    functionals
  + X-ray absorption spectroscopy (XAS) with TDDFT
  + Analytical gradients for the COSMO solvation model
  + Transition densities from TDDFT 
  + DFT+U and Electron-Transfer (ET) methods for plane wave calculations
  + Exploitation of space group symmetry in plane wave geometry optimizations
  + Local density of states (LDOS) collective variable added to Metadynamics
  + Various new XC functionals added for plane wave calculations, including
    hybrid and range-corrected ones
  + Electric field gradients with relativistic corrections 
  + Nudged Elastic Band optimization method
  + Updated basis sets and ECPs 

[ Daniel Leidert ]
* debian/watch: Fixed.

[ Andreas Tille ]
* debian/upstream: References

[ Michael Banck ]
* debian/upstream (Name): New field.
* debian/patches/02_makefile_flags.patch: Refreshed.
* debian/patches/06_statfs_kfreebsd.patch: Likewise.
* debian/patches/07_ga_target_force_linux.patch: Likewise.
* debian/patches/05_avoid_inline_assembler.patch: Removed, no longer needed.
* debian/patches/09_backported_6.1.1_fixes.patch: Likewise.
* debian/control (Build-Depends): Added gfortran-4.7 and gcc-4.7.
* debian/patches/10_force_gcc-4.7.patch: New patch, explicitly sets
  gfortran-4.7 and gcc-4.7, fixes test suite hang with gcc-4.8 (Closes:
  #701328, #713262).
* debian/testsuite: Added tests for COSMO analytical gradients and MRCC.
* debian/rules (MRCC_METHODS): New variable, required to enable MRCC methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# CCAFE_HOME= To be set as an Environment variable:
 
2
# Eg: export CCAFE_HOME=/msrc/proj/cca/manoj/dccafe/cxx
 
3
 
 
4
# Here we must contend with two kinds of .o file --
 
5
# those built normally and those built for use in
 
6
# dynamic libraries. To that end we delete .o files
 
7
# built for DL as soon as we've converted them to .so.
 
8
 
 
9
zeroth: first
 
10
 
 
11
EG_ROOT=$(CCA_ROOT)/cxx/eg
 
12
 
 
13
include $(CCAFE_HOME)/Makefile.Rules
 
14
include $(CCAFE_HOME)/MakeIncl.CCAFE_Component
 
15
include $(EG_ROOT)/ccaComponent/MakeIncl.EGComponent
 
16
 
 
17
#OTHERFLAGS = -D_DBG_ILOOP -D_DBG_PLATE1
 
18
 
 
19
ifdef LINUX64_QUADRICS
 
20
  EXTRA_LIBS = -lshmem -lelan3 -lelan -lpthread
 
21
endif
 
22
 
 
23
GA_INC  = -I$(GA_HOME)/include
 
24
GA_LIBS = -L$(GA_HOME)/lib/$(TARGET) -L$(MPI_LIB) -ldl -lc -lglobal\
 
25
        -lma -llinalg -larmci -ltcgmsg-mpi $(LIBMPI)\
 
26
        -lg2c -lnsl $(EXTRA_LIBS) -lm
 
27
 
 
28
LOCALFLAGS= $(OTHERFLAGS) $(EG_INC) $(GA_INC) -I$(MPI_INCLUDE) -I.
 
29
WRAPPERFLAGS= -w
 
30
WRAPPERFLAGS= 
 
31
 
 
32
SHARED_FLAGS = -fpic
 
33
 
 
34
%.o : %.C
 
35
        $(CXX) -c $(SHARED_FLAGS) $(CXXFLAGS)  $<
 
36
 
 
37
%.o : %.cxx
 
38
        $(CXX) -c $(SHARED_FLAGS) $(CXXFLAGS) $(LOCALFLAGS) $<
 
39
 
 
40
%.i : %.cxx
 
41
        -$(RM) $@
 
42
        $(CXX) $(CPPFLAGS) $(LOCALFLAGS) $< | egrep -v ^$$ |egrep -v '^# ' > $@
 
43
 
 
44
 
 
45
%.class : %.java
 
46
        $(JAVAC)  $(JAVAFLAGS)  $<
 
47
%.h : %.class
 
48
        $(JAVAH) $(JAVAHFLAGS) $(<:%.class=%)
 
49
 
 
50
JAVASRC = 
 
51
 
 
52
# dl stuff that is not ccaffeine dependent
 
53
CXXDLSTRICTSRC= \
 
54
GAServices.cxx
 
55
 
 
56
# dl stuff that is ccaffeine dependent
 
57
CXXDLLOOSESRC= 
 
58
 
 
59
# static link stuff
 
60
CXXDLNONESRC=
 
61
 
 
62
# stuff built with or without a parallel environment.
 
63
CXXSRC = $(CXXDLSTRICTSRC) $(CXXDLLOOSESRC) $(CXXDLNONESRC)
 
64
 
 
65
NEWSRC = \
 
66
GlobalArray.cxx \
 
67
overload.cxx \
 
68
GAServices_DADF.cxx \
 
69
GA_DADFArray.cxx \
 
70
DADFAxisInfo.cxx \
 
71
DADFTemplate.cxx \
 
72
DADFDescriptor.cxx \
 
73
DADFRegionInfo.cxx
 
74
 
 
75
CXXOBJ = $(CXXSRC:%.cxx=%.o)
 
76
CXXDSSOBJ = $(CXXDLSTRICTSRC:%.cxx=%.so)
 
77
CXXDLSOBJ = $(CXXDLLOOSESRC:%.cxx=%.so)
 
78
NEWOBJ = $(NEWSRC:%.cxx=%.o)
 
79
 
 
80
$(CXXDSSOBJ) : %$(CCAFE_SHLIB_SUFFIX) : %.cxx  allobj
 
81
        -$(RM) $@ $*.o 
 
82
        #$(CCAFE_HOME)/dc/component/genDLWrapperStrict $* > $*_wrapper.cxx
 
83
        #$(CCAFE_HOME)/dc/component/genDLIndex $@ create_$* $* > $*.cca
 
84
        $(CXX) -c $(CXXFLAGS) $(LOCALFLAGS) $(CCAFE_SHLIB_CFLAGS) $< 
 
85
        $(CXX) -c $(CXXFLAGS) $(LOCALFLAGS) $(CCAFE_SHLIB_CFLAGS) \
 
86
                $(WRAPPERFLAGS) $*_wrapper.cxx
 
87
        $(CCAFE_SHLIB_LD) $(CCAFE_SHLIB_LDFLAGS) -o $@ $*.o $*_wrapper.o \
 
88
                $(NEWOBJ) $(GA_LIBS)
 
89
        -$(RM) $*.o $(NEWOBJ) $*_wrapper.o
 
90
 
 
91
LIB= libcomponent.a
 
92
 
 
93
first all: lib dllib
 
94
        @echo done $(CXXOBJ) $(JAVACLS) $(JNIHDR)
 
95
 
 
96
lib : allobj
 
97
        ar $(ARFLAGS) $(LIB) $(CXXOBJ) $(NEWOBJ)
 
98
        $(RANLIB) $(LIB)
 
99
 
 
100
dllib: $(CXXDSSOBJ) $(CXXDLSOBJ)
 
101
 
 
102
allobj : $(CXXOBJ) $(JAVACLS) $(JNIHDR) $(NEWOBJ)
 
103
 
 
104
new: $(NEWOBJ)
 
105
 
 
106
$(CXXOBJ) : $(CXXSRC)
 
107
 
 
108
 
 
109
clean:
 
110
        $(RM) -f $(CXXOBJ) $(LIB) $(JAVACLS) $(JNIHDR) $(NEWOBJ) *.so *_wrapper.o *.i *~
 
111
 
 
112
depend:
 
113
        $(DEPEND) $(CXXFLAGS) $(LOCALFLAGS) $(CXXSRC) $(NEWSRC)
 
114
 
 
115
depend-sys:
 
116
        $(DEPENDSYS) $(CXXFLAGS) $(LOCALFLAGS) $(CXXSRC) $(NEWSRC)
 
117
 
 
118
#include Makefile.depends