[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 | include $(SRCDIR)/$(TOPDIR)/lib/GlobalMakefile
|
---|
| 34 | DEFINES += -DSRCDIR=\"$(SRCDIR)\"
|
---|
| 35 |
|
---|
| 36 | CXXSRC = molecule.cc molsymm.cc \
|
---|
| 37 | simple.cc stre.cc bend.cc out.cc tors.cc stors.cc linip.cc linop.cc \
|
---|
| 38 | energy.cc coor.cc imcoor.cc symmcoor.cc redund.cc cartcoor.cc \
|
---|
| 39 | molshape.cc taylor.cc hess.cc fdhess.cc \
|
---|
| 40 | molrender.cc atominfo.cc molfreq.cc formula.cc
|
---|
| 41 |
|
---|
| 42 | LIBOBJ = $(CXXSRC:%.cc=%.$(OBJSUF))
|
---|
| 43 |
|
---|
| 44 | INC = molecule.h \
|
---|
| 45 | simple.h localdef.h \
|
---|
| 46 | coor.h energy.h molshape.h taylor.h hess.h fdhess.h \
|
---|
| 47 | molrender.h atominfo.h molfreq.h formula.h
|
---|
| 48 |
|
---|
| 49 | DEPENDINCLUDE = $(INC)
|
---|
| 50 |
|
---|
| 51 | BIN_OR_LIB = LIB
|
---|
| 52 | TARGET_TO_MAKE = libSCmolecule
|
---|
| 53 |
|
---|
| 54 | TESTSRC = moltest.cc
|
---|
| 55 | TESTOBJ = $(TESTSRC:%.cc=%.$(OBJSUF))
|
---|
| 56 | TESTFILES = moltest.in
|
---|
| 57 |
|
---|
| 58 | symmetrize.testrun: TESTRUN_ARGS=$(SRCDIR)/moltest.in molecule
|
---|
| 59 |
|
---|
| 60 | TESTPROGS = moltest symmetrize
|
---|
| 61 |
|
---|
| 62 | DISTFILES = $(CXXSRC) $(INC) Makefile $(TESTSRC) $(TESTFILES)
|
---|
| 63 |
|
---|
| 64 | default:: $(DEPENDINCLUDE)
|
---|
| 65 |
|
---|
| 66 | interface:: $(DEPENDINCLUDE)
|
---|
| 67 |
|
---|
| 68 | LIBS = $(shell $(LISTLIBS) $(INCLUDE) $(SRCDIR)/LIBS.h)
|
---|
| 69 |
|
---|
| 70 | LD = $(CXX)
|
---|
| 71 |
|
---|
| 72 | moltest: $(TESTOBJ) $(LIBS)
|
---|
| 73 | $(LTLINK) $(LD) $(LDFLAGS) -o moltest $^ $(SYSLIBS) $(LTLINKBINOPTS)
|
---|
| 74 |
|
---|
| 75 | symmetrize: symmetrize.$(OBJSUF) $(LIBS)
|
---|
| 76 | $(LTLINK) $(LD) $(LDFLAGS) -o symmetrize $^ $(SYSLIBS) $(LTLINKBINOPTS)
|
---|
| 77 |
|
---|
| 78 | include $(SRCDIR)/$(TOPDIR)/lib/GlobalRules
|
---|
| 79 |
|
---|
| 80 | $(LIBOBJ:.$(OBJSUF)=.d): $(DEPENDINCLUDE)
|
---|
| 81 | ifneq ($(DODEPEND),no)
|
---|
| 82 | include $(LIBOBJ:.$(OBJSUF)=.d) $(TESTOBJ:%.$(OBJSUF)=%.d)
|
---|
| 83 | endif
|
---|