~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/TestComponent/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
TestComponent.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
 
 
67
 
 
68
CXXOBJ = $(CXXSRC:%.cxx=%.o)
 
69
CXXDSSOBJ = $(CXXDLSTRICTSRC:%.cxx=%.so)
 
70
CXXDLSOBJ = $(CXXDLLOOSESRC:%.cxx=%.so)
 
71
NEWOBJ = $(NEWSRC:%.cxx=%.o)
 
72
 
 
73
$(CXXDSSOBJ) : %$(CCAFE_SHLIB_SUFFIX) : %.cxx
 
74
        -$(RM) $@ $*.o 
 
75
        #$(CCAFE_HOME)/dc/component/genDLWrapperStrict $* > $*_wrapper.cxx
 
76
        #$(CCAFE_HOME)/dc/component/genDLIndex $@ create_$* $* > $*.cca
 
77
        $(CXX) -c $(CXXFLAGS) $(LOCALFLAGS) $(CCAFE_SHLIB_CFLAGS) $< 
 
78
        $(CXX) -c $(CXXFLAGS) $(LOCALFLAGS) $(CCAFE_SHLIB_CFLAGS) \
 
79
                $(WRAPPERFLAGS) $*_wrapper.cxx
 
80
        $(CCAFE_SHLIB_LD) $(CCAFE_SHLIB_LDFLAGS) -o $@ $*.o $*_wrapper.o \
 
81
                $(NEWOBJ) $(GA_LIBS)
 
82
        -$(RM) $*.o $(NEWOBJ) $*_wrapper.o
 
83
 
 
84
LIB= libcomponent.a
 
85
 
 
86
first all: lib dllib
 
87
        @echo done $(CXXOBJ) $(JAVACLS) $(JNIHDR)
 
88
 
 
89
lib : allobj
 
90
        ar $(ARFLAGS) $(LIB) $(CXXOBJ) $(NEWOBJ)
 
91
        $(RANLIB) $(LIB)
 
92
 
 
93
dllib: $(CXXDSSOBJ) $(CXXDLSOBJ)
 
94
 
 
95
allobj : $(CXXOBJ) $(JAVACLS) $(JNIHDR) $(NEWOBJ)
 
96
 
 
97
new: $(NEWOBJ)
 
98
 
 
99
$(CXXOBJ) : $(CXXSRC)
 
100
 
 
101
 
 
102
clean:
 
103
        $(RM) -f $(CXXOBJ) $(LIB) $(JAVACLS) $(JNIHDR) $(NEWOBJ) *.so *_wrapper.o *.i *~
 
104
 
 
105
depend:
 
106
        $(DEPEND) $(CXXFLAGS) $(LOCALFLAGS) $(CXXSRC) $(NEWSRC)
 
107
 
 
108
depend-sys:
 
109
        $(DEPENDSYS) $(CXXFLAGS) $(LOCALFLAGS) $(CXXSRC) $(NEWSRC)
 
110
 
 
111
#include Makefile.depends