~ubuntu-branches/ubuntu/vivid/psicode/vivid

« back to all changes in this revision

Viewing changes to .pc/09_system_libint.patch/src/bin/cints/Makefile.in

  • Committer: Package Import Robot
  • Author(s): Michael Banck
  • Date: 2012-03-29 01:26:55 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120329012655-8lnngrup9p40ow4z
Tags: 3.4.0-3
* debian/control: Add CC3, MRCCSD and SCS-MP2 energies, RHF hessian and
  closed-shell MP2 gradient to features, clarify that MP2-R12 is an
  explicitly correlated method.
* debian/patches/09_system_libint.dpatch: New patch, modifies the build
  system to use the system libint and not compile and link in the shipped
  libint codes.
* debian/control (Build-Depends): Added libint-dev.
* debian/rules (DEB_MAKE_CHECK_TARGET): Run quicktests target to invoke the
  test suite.
* debian/rules: Rewritten for dh.
* debian/control (Build-Depends): Bumped debhelper version to 8, removed
  cdbs and dpatch.
* debian/patches: Moved to source version 3.0 (quilt).
* debian/source/format: New file.
* debian/rules (override_dh_auto_install): Install some test suite input
  files as examples.
* debian/dirs: Added examples directory.
* debian/TODO: Updated.
* debian/control (Standards-Version): Bumped to 3.9.3.
* debian/rules (override_dh_auto_test): Do not abort build on test suite
  failure.
* debian/rules (override_dh_auto_build): New rule, build the user manual in
  addition to the main code.
* debian/control (Build-Depends): Added texlive-latex-recommended.
* debian/patches/10_makerules_doc.patch: New patch, build the postscript
  file by default and deletes some more generated files on realclean.
* debian/rules (override_dh_auto_install): Install postscript user manual
  into documentation directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# CINTS Makefile
 
3
#
 
4
# Edward Valeev, Eve-of-the-Fake-New-Millenium
 
5
#
 
6
# Edit this list of subdirectories whose content
 
7
# to be included in CINTS to suit your needs. Valid subdirs are:
 
8
# 1. Default_Ints
 
9
# 2. OEProp_Ints
 
10
# 3. Fock
 
11
# 4. MP2
 
12
# 5. Default_Deriv1
 
13
# 6. Default_Deriv2
 
14
# 7. MP2R12
 
15
# 8. R12_Ints (8/30/03 EFV - doesn't work anymore, transqt needs to be fixed)
 
16
# 9. CC
 
17
# 10. GIAO_Deriv
 
18
# 11. MkPT2
 
19
#
 
20
SUBDIRS = Default_Ints OEProp_Ints Fock MP2 Default_Deriv1 Default_Deriv2 CC \
 
21
MP2R12 GIAO_Deriv MkPT2
 
22
 
 
23
#
 
24
# Some subdirectories are not completely independent - need to perform
 
25
# additional "dependency" checks:
 
26
# 1. if R12_Ints included - make sure MP2R12 is included also.
 
27
# 2. if Fock (DFT) is included - include DFT (Fock) as well.
 
28
#
 
29
ifeq ($(findstring R12_Ints,$(SUBDIRS)),R12_Ints)
 
30
  ifeq ($(findstring MP2R12,$(SUBDIRS)),)
 
31
    SUBDIRS += MP2R12
 
32
  endif
 
33
endif
 
34
ifeq ($(findstring Fock,$(SUBDIRS)),Fock)
 
35
  ifeq ($(findstring DFT,$(SUBDIRS)),)
 
36
     SUBDIRS += DFT
 
37
  endif
 
38
else
 
39
  ifeq ($(findstring DFT,$(SUBDIRS)),DFT)
 
40
     SUBDIRS += Fock
 
41
  endif
 
42
endif
 
43
ifeq ($(findstring Default_Deriv2,$(SUBDIRS)),Default_Deriv2)
 
44
  ifeq ($(findstring Default_Deriv1,$(SUBDIRS)),)
 
45
    SUBDIRS += Default_Deriv1
 
46
  endif
 
47
endif
 
48
 
 
49
#
 
50
# Most subdirectories include code that requires some "integrals"
 
51
# library, like the notorious libint, which is always included.
 
52
# Here we test SUBDIRS for presence of such
 
53
# and form the list of the libraries. Remember that libderiv and libr12
 
54
# depend on libint, and hence need to come first for GNU ld to work.
 
55
#
 
56
INTLIBS := -lPSI_int
 
57
ifeq ($(findstring MP2R12,$(SUBDIRS)),MP2R12)
 
58
  ifneq ($(findstring -lPSI_r12,$(INTLIBS)),-lPSI_r12)
 
59
    INTLIBS := -lPSI_r12 $(INTLIBS)
 
60
  endif
 
61
endif
 
62
ifeq ($(findstring R12_Ints,$(SUBDIRS)),R12_Ints)
 
63
  ifneq ($(findstring -lPSI_r12,$(INTLIBS)),-lPSI_r12)
 
64
    INTLIBS := -lPSI_r12 $(INTLIBS)
 
65
  endif
 
66
endif
 
67
ifeq ($(findstring Default_Deriv1,$(SUBDIRS)),Default_Deriv1)
 
68
  ifneq ($(findstring -lPSI_deriv,$(INTLIBS)),-lPSI_deriv)
 
69
    INTLIBS := -lPSI_deriv $(INTLIBS)
 
70
  endif
 
71
endif
 
72
ifeq ($(findstring Default_Deriv2,$(SUBDIRS)),Default_Deriv2)
 
73
  ifneq ($(findstring -lderiv,$(INTLIBS)),-lPSI_deriv)
 
74
    INTLIBS := -lPSI_deriv $(INTLIBS)
 
75
  endif
 
76
endif
 
77
 
 
78
#
 
79
# These preprocessor defines will tell main.c and parsing.c what 
 
80
#  sections of code to include
 
81
#
 
82
OPTIONS = $(SUBDIRS:%=-DINCLUDE_%)
 
83
 
 
84
#
 
85
# Tools will always be included
 
86
#
 
87
DIRS = Tools $(SUBDIRS)
 
88
 
 
89
srcdir = @srcdir@
 
90
VPATH = @srcdir@
 
91
VPATH += $(DIRS:%=$(srcdir)/%)
 
92
 
 
93
include ../MakeVars
 
94
 
 
95
CFLAGS = $(CDBG) $(COPT) $(CDEF) $(COTH) $(CINC)
 
96
CINC += -I$(srcdir) $(DIRS:%=-I$(srcdir)/%)
 
97
CDEF += $(OPTIONS)
 
98
 
 
99
CXXFLAGS = $(CXXDBG) $(CXXOPT) $(CXXDEF) $(CXXOTH) $(CXXINC)
 
100
CXXINC += -I$(srcdir) $(DIRS:%=-I$(srcdir)/%)
 
101
CXXDEF += $(OPTIONS)
 
102
 
 
103
LDLIBS += $(BLAS) -lpthread
 
104
PSILIBS = -lPSI_qt -lPSI_chkpt $(INTLIBS) -lPSI_iwl \
 
105
          -lPSI_psio -lPSI_ciomr -lPSI_ipv1
 
106
ifeq ($(findstring CC,$(SUBDIRS)),CC)
 
107
  ifneq ($(findstring -lPSI_dpd,$(PSILIBS)),-lPSI_dpd)
 
108
    PSILIBS := -lPSI_dpd $(PSILIBS)
 
109
  endif
 
110
endif
 
111
 
 
112
CXXSRC = $(DIRS:%=%/*.cc) *.cc
 
113
TRUECXXSRC = $(notdir $(shell echo `ls $(CXXSRC:%=$(srcdir)/%)`))
 
114
 
 
115
BINOBJ = $(TRUECXXSRC:%.cc=%.o)
 
116
 
 
117
include ../MakeRules
 
118
 
 
119
# DEC/Compaq Alpha systems apparently require this for threaded code
 
120
ifneq (,$(findstring osf, $(target)))
 
121
  COPT += -pthread
 
122
  CXXOPT += -pthread
 
123
  LDFLAGS += -pthread
 
124
endif
 
125
 
 
126
install:: install_html
 
127
 
 
128
install_man:: cints.1
 
129
        $(MKDIRS) $(DESTDIR)$(mandir)/man1
 
130
        $(INSTALL_INCLUDE) $^ $(DESTDIR)$(mandir)/man1
 
131
 
 
132
install_html:: install_index install_htmlsrc
 
133
 
 
134
install_index:: cints.html
 
135
        $(MKDIRS) $(DESTDIR)$(htmldir)
 
136
        $(INSTALL_INCLUDE) $^ $(DESTDIR)$(htmldir)
 
137
 
 
138
HTMLSRC = $(shell echo `ls $(srcdir)/Documentation/*.html`)
 
139
install_htmlsrc: $(HTMLSRC)
 
140
        $(MKDIRS) $(DESTDIR)$(htmldir)/CINTS
 
141
        $(INSTALL_INCLUDE) $(HTMLSRC) $(DESTDIR)$(htmldir)/CINTS
 
142
 
 
143
ifneq ($(DODEPEND),no)
 
144
$(BINOBJ:%.o=%.d): $(DEPENDINCLUDE)
 
145
include $(BINOBJ:%.o=%.d)
 
146
endif