source: branches/dev/Apps/CUTErInterface/Makefile.am @ 568

Last change on this file since 568 was 568, checked in by andreasw, 15 years ago

added dummy ipoma.f file in case CUTEr is not installed

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1# Copyright (C) 2003, International Business Machines and others.
2# All Rights Reserved.
3# This file is distributed under the Common Public License.
4
5## $Id: Makefile.am 568 2005-11-01 23:28:48Z andreasw $
6
7AUTOMAKE_OPTIONS = foreign
8
9EXTRA_DIST = \
10        CUTErInterface.f \
11        ipo.pro \
12        sdipo.pro
13
14noinst_LIBRARIES = libdummy.a
15
16libdummy_a_SOURCES = ipoma.f
17
18ipoma.f: CUTErInterface.f
19        if test -z "$$MYCUTER" -o -z "$$CUTER"; then \
20          $(LN_S) ipoma-dummy.f ipoma.f; \
21        else \
22          sed "/#{sizing}/r $$MYCUTER/double/config/tools.siz" $< | sed -f $$MYCUTER/double/config/cast.sed > ipoma.f; \
23        fi
24
25ipo: ipo.pro
26        sed -f $$MYCUTER/double/config/script.sed $< > $@
27        chmod a+x $@
28
29sdipo: sdipo.pro
30        sed -f $$MYCUTER/double/config/script.sed $< > $@
31        chmod a+x $@
32
33IPADDLIBS = @IPADDLIBS@
34
35CLEANFILES = ipoma.f ipo sdipo
36
37cuter:  ipoma.o ipo sdipo
38        if test -z "$$MYCUTER" -o -z "$$CUTER"; then \
39          echo CUTEr environment variables not set - cannot install ipoma.f; \
40        else \
41          echo "-L$(libdir) -lipopt $(IPADDLIBS) $(CXXLIBS)" >$$MYCUTER/double/lib/ipo.liblist ;\
42          cp ipoma.o $(MYCUTER)/double/bin/ipoma.o; \
43          cp ipo $(MYCUTER)/bin/ipo ;\
44          cp sdipo $(MYCUTER)/bin/sdipo ;\
45        fi
Note: See TracBrowser for help on using the repository browser.