[0b990d] | 1 | #
|
---|
| 2 | # Makefile
|
---|
| 3 | #
|
---|
| 4 | # Copyright (C) 1996 Limit Point Systems, Inc.
|
---|
| 5 | #
|
---|
| 6 | # Author: Curtis Janssen <cljanss@ca.sandia.gov>
|
---|
| 7 | # Maintainer: LPS
|
---|
| 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 | default::
|
---|
| 34 |
|
---|
| 35 | clean:: clean-components
|
---|
| 36 |
|
---|
| 37 | BABEL_PACKAGES = MPQC
|
---|
| 38 |
|
---|
| 39 | BABEL_CLASSES = \
|
---|
| 40 | MPQC.Chemistry_MoleculeViewer \
|
---|
| 41 | MPQC.Chemistry_QC_Model \
|
---|
| 42 | MPQC.Chemistry_QC_ModelFactory \
|
---|
| 43 | MPQC.Physics_Units \
|
---|
| 44 | MPQC.GaussianBasis_Shell \
|
---|
| 45 | MPQC.GaussianBasis_Atomic \
|
---|
| 46 | MPQC.GaussianBasis_Molecular \
|
---|
| 47 | MPQC.IntegralEvaluatorFactory \
|
---|
| 48 | MPQC.IntegralEvaluator2 \
|
---|
| 49 | MPQC.IntegralEvaluator3 \
|
---|
| 50 | MPQC.IntegralEvaluator4 \
|
---|
| 51 | MPQC.ChemistryOpt_CoordinateModel \
|
---|
| 52 | MPQC.ComponentClassDescription \
|
---|
| 53 | MPQC.ComponentFactory \
|
---|
| 54 | MPQC.SimpleDriver
|
---|
| 55 |
|
---|
| 56 | EXTRA_CXX_SRCS = socket.cc except.cc basis_cca_to_sc.cc
|
---|
| 57 | EXTRA_INCLUDES = socket.h except.h ccaiter.h
|
---|
| 58 |
|
---|
| 59 | include $(SRCDIR)/$(TOPDIR)/lib/GlobalMakefile
|
---|
| 60 | DEFINES += -DSRCDIR=\"$(SRCDIR)\"
|
---|
| 61 |
|
---|
| 62 | SIDL_FILES=$(SRCTOPDIR)/lib/cca/sidl/chemistry-mpqc.sidl
|
---|
| 63 | REPO = $(TOPDIR)/lib/cca/repo
|
---|
| 64 | BABEL_ARGS = -E --suppress-timestamp -R$(CCA_SPEC_BABEL_SHARE)/xml -R$(CCA_CHEM_REPO) -R$(REPO) --server=C++
|
---|
| 65 |
|
---|
| 66 | ## so we don't have to include babel.make
|
---|
| 67 | PACKAGE_BASES := $(shell echo $(BABEL_PACKAGES) | sed s/\\./\\_/g )
|
---|
| 68 | STUBHDRS = $(PACKAGE_BASES:%=%.hh)
|
---|
| 69 | IORHDRS = $(PACKAGE_BASES:%=%_IOR.h)
|
---|
| 70 |
|
---|
| 71 | ENUM_BASES := $(shell echo $(BABEL_ENUMS) | sed s/\\./\\_/g )
|
---|
| 72 | STUBHDRS += $(ENUM_BASES:%=%.hh)
|
---|
| 73 | IORHDRS += $(ENUM_BASES:%=%_IOR.h)
|
---|
| 74 | IORSRCS = $(ENUM_BASES:%=%_IOR.c)
|
---|
| 75 |
|
---|
| 76 | CLASS_BASES := $(shell echo $(BABEL_CLASSES) | sed s/\\./\\_/g )
|
---|
| 77 | IORHDRS += $(CLASS_BASES:%=%_IOR.h)
|
---|
| 78 | IORSRCS += $(CLASS_BASES:%=%_IOR.c)
|
---|
| 79 | STUBHDRS += $(CLASS_BASES:%=%.hh)
|
---|
| 80 | STUBSRCS = $(CLASS_BASES:%=%.cc)
|
---|
| 81 | IMPLHDRS = $(CLASS_BASES:%=%_Impl.hh)
|
---|
| 82 | IMPLSRCS = $(CLASS_BASES:%=%_Impl.cc)
|
---|
| 83 | SKELSRCS = $(CLASS_BASES:%=%_Skel.cc)
|
---|
| 84 |
|
---|
| 85 | GEN_SRCS = $(IORHDRS) $(IORSRCS) $(STUBHDRS) $(STUBSRCS) \
|
---|
| 86 | $(IMPLHDRS) $(IMPLSRCS) $(SKELSRCS)
|
---|
| 87 | CCA_CXX_SRCS = $(IMPLSRCS) $(SKELSRCS) $(STUBSRCS) $(EXTRA_CXX_SRCS)
|
---|
| 88 | CCA_CC_SRCS = $(IORSRCS)
|
---|
| 89 | CCA_OBJS = $(CCA_CXX_SRCS:%.cc=%.$(OBJSUF)) $(CCA_CC_SRCS:%.c=%.$(OBJSUF))
|
---|
| 90 | CCA_INCLUDES = $(STUBHDRS) $(IORHDRS) $(EXTRA_INCLUDES)
|
---|
| 91 | ###
|
---|
| 92 |
|
---|
| 93 | BIN_OR_LIB = LIB
|
---|
| 94 | TARGET_TO_MAKE = cca/libSCchemistry
|
---|
| 95 |
|
---|
| 96 | LIBOBJ = $(CCA_OBJS)
|
---|
| 97 | CPPFLAGS += -I./ -I$(SRCDIR) -I$(CCA_SPEC_CLASSIC_INCLUDE)
|
---|
| 98 | ifeq ($(HAVE_LIBINT),yes)
|
---|
| 99 | DEFINES += -DHAVE_CINTS
|
---|
| 100 | endif
|
---|
| 101 | ifeq ($(INTV3_ORDER),yes)
|
---|
| 102 | DEFINES += -DINTV3_ORDER
|
---|
| 103 | endif
|
---|
| 104 | tmp_libdir := $(libdir)
|
---|
| 105 | SCLIBS = $(shell echo `ls ../../../../lib/*.$(LIBSUF)`)
|
---|
| 106 | SCLINK = $(SCLIBS:lib%.$(LIBSUF)=-l%)
|
---|
| 107 | LTLINKLIBOPTS += -L$(CCA_CHEM_LIB) -R$(CCA_CHEM_LIB) -lccachem_cxx_client -lccachem_cxx_server -L$(tmp_libdir) -R$(tmp_libdir) $(SCLINK) $(SYSLIBS)
|
---|
| 108 | libdir = $(tmp_libdir)/cca
|
---|
| 109 |
|
---|
| 110 | include $(SRCDIR)/$(TOPDIR)/lib/GlobalRules
|
---|
| 111 |
|
---|
| 112 | $(LIBOBJ:.$(OBJSUF)=.d): $(DEPENDINCLUDE)
|
---|
| 113 | ifneq ($(DODEPEND),no)
|
---|
| 114 | include $(LIBOBJ:.$(OBJSUF)=.d)
|
---|
| 115 | endif
|
---|