[0b990d] | 1 | #
|
---|
| 2 | # Makefile
|
---|
| 3 | #
|
---|
| 4 | # Copyright (C) 2001 Edward Valeev
|
---|
| 5 | #
|
---|
| 6 | # Author: Edward Valeev <edward.valeev@chemistry.gatech.edu>
|
---|
| 7 | # Maintainer: EV
|
---|
| 8 | #
|
---|
| 9 | # This file is part of the SC Toolkit.
|
---|
| 10 | #
|
---|
| 11 | # The SC Toolkit is free software; you can redistribute it and/or modify
|
---|
| 12 | # it under the terms of the GNU Library General Public License as published by
|
---|
| 13 | # the Free Software Foundation; either version 2, or (at your option)
|
---|
| 14 | # any later version.
|
---|
| 15 | #
|
---|
| 16 | # The SC Toolkit is distributed in the hope that it will be useful,
|
---|
| 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 19 | # GNU Library General Public License for more details.
|
---|
| 20 | #
|
---|
| 21 | # You should have received a copy of the GNU Library General Public License
|
---|
| 22 | # along with the SC Toolkit; see the file COPYING.LIB. If not, write to
|
---|
| 23 | # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
| 24 | #
|
---|
| 25 | # The U.S. Government is granted a limited license as per AL 91-7.
|
---|
| 26 | #
|
---|
| 27 |
|
---|
| 28 | TOPDIR=../../../../..
|
---|
| 29 | ifndef SRCDIR
|
---|
| 30 | SRCDIR=$(shell pwd)
|
---|
| 31 | endif
|
---|
| 32 |
|
---|
| 33 | include $(SRCDIR)/$(TOPDIR)/lib/GlobalMakefile
|
---|
| 34 |
|
---|
| 35 | TARGET_TO_MAKE = libSCmbptr12
|
---|
| 36 | BIN_OR_LIB = LIB
|
---|
| 37 |
|
---|
| 38 | CXXSRCS = mbptr12.cc \
|
---|
| 39 | r12ia.cc r12ia_memgrp.cc \
|
---|
| 40 | r12ia_node0file.cc \
|
---|
| 41 | vxb_eval_info.cc \
|
---|
| 42 | compute_energy_a.cc mp2r12_energy.cc \
|
---|
| 43 | multipole_ints.cc ri_basis.cc \
|
---|
| 44 | moindexspace.cc pairiter.cc \
|
---|
| 45 | transform_factory.cc transform_tbint.cc \
|
---|
| 46 | transform_ijxy.cc transform_ixjy.cc transform_ikjy.cc \
|
---|
| 47 | transform_123inds.cc transform_13inds.cc transform_12inds.cc \
|
---|
| 48 | compute_ixjy.cc compute_ikjy.cc compute_ijxy.cc \
|
---|
| 49 | r12int_eval.cc compute_a_gebc.cc compute_a_gebc_abs1.cc \
|
---|
| 50 | coulomb.cc exchange.cc fock.cc ebc_contribs.cc gbc_contribs.cc \
|
---|
| 51 | compute_a_gebc_vbs.cc compute_vxb_a_symm.cc compute_vxb_a_asymm.cc \
|
---|
| 52 | dualbasis_mp2.cc r12_amps.cc compute_amps.cc \
|
---|
| 53 | twobodygrid.cc svd.cc
|
---|
| 54 |
|
---|
| 55 | ifeq ($(HAVE_MPIIO),yes)
|
---|
| 56 | CXXSRCS += r12ia_mpiiofile.cc
|
---|
| 57 | endif
|
---|
| 58 |
|
---|
| 59 | LIBOBJ= $(CXXSRCS:%.cc=%.$(OBJSUF)) $(CSRCS:%.c=%.$(OBJSUF))
|
---|
| 60 |
|
---|
| 61 | default:: $(DEPENDINCLUDE)
|
---|
| 62 |
|
---|
| 63 | include $(SRCDIR)/$(TOPDIR)/lib/GlobalRules
|
---|
| 64 |
|
---|
| 65 | $(LIBOBJ:.$(OBJSUF)=.d): $(DEPENDINCLUDE)
|
---|
| 66 | ifneq ($(DODEPEND),no)
|
---|
| 67 | include $(LIBOBJ:.$(OBJSUF)=.d)
|
---|
| 68 | endif
|
---|
| 69 |
|
---|
| 70 | LIBS = $(shell $(LISTLIBS) $(INCLUDE) $(SRCDIR)/LIBS.h)
|
---|
| 71 |
|
---|
| 72 | mbptr12test:: mbptr12test.$(OBJSUF) $(LIBS)
|
---|
| 73 | $(LTLINK) $(CXX) $(LDFLAGS) -o mbptr12test $^ $(SYSLIBS) $(LTLINKBINOPTS)
|
---|
| 74 |
|
---|
| 75 | mbptr12test.$(OBJSUF): mbptr12test.cc
|
---|
| 76 | $(LTCOMP) $(CXX) $(CXXFLAGS) $(CPPFLAGS) -DSRCDIR=\"$(SRCDIR)\" -c $<
|
---|
| 77 |
|
---|
| 78 |
|
---|
| 79 | transform_123inds.$(OBJSUF) transform_123inds.d: f77sym.h
|
---|
| 80 |
|
---|
| 81 | f77sym.h: f77sym.in
|
---|
| 82 | $(MKF77SYM) $< $@
|
---|
| 83 |
|
---|
| 84 | distclean::
|
---|
| 85 | /bin/rm -f f77sym.h
|
---|