source: trunk/build_rules.am @ 1822

Revision 1636, 2.5 KB checked in by Pete Jemian, 7 months ago (diff)

point to current WWW site in license text, refs #281

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1##====================================================================
2##  NeXus - Neutron & X-ray Common Data Format
3## 
4##  $Id$
5##
6##  This file is included by Makefile.am when automake is run
7##  to produce the Makefile.in - it includes extra make build rules
8##  needed to e.g. build Fortran 90 files
9##
10##  Copyright (C) 2004 Freddie Akeroyd
11## 
12##  This library is free software; you can redistribute it and/or
13##  modify it under the terms of the GNU Lesser General Public
14##  License as published by the Free Software Foundation; either
15##  version 2 of the License, or (at your option) any later version.
16##
17##  This library is distributed in the hope that it will be useful,
18##  but WITHOUT ANY WARRANTY; without even the implied warranty of
19##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20##  Lesser General Public License for more details.
21##
22##  You should have received a copy of the GNU Lesser General Public
23##  License along with this library; if not, write to the Free
24##  Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25##  MA  02111-1307  USA
26##             
27##  For further information, see <http://www.nexusformat.org>
28##
29##====================================================================
30
31#SUFFIXES = .f90 .o .java .i
32
33FCCOMPILE = $(FC) $(AM_FCFLAGS) $(FCFLAGS)
34LTFCCOMPILE = $(LIBTOOL) --mode=compile --tag=F77 $(FC) $(AM_FCFLAGS) $(FCFLAGS)
35FCLD = $(FC)
36FCLINK = $(LIBTOOL) --mode=link --tag=CC $(FCLD) $(AM_FCFLAGS) $(FCFLAGS) \
37        $(AM_LDFLAGS) $(LDFLAGS) -o $@
38
39.f90.o:
40        $(FCCOMPILE) -c $<
41.f90.lo:
42        $(LTFCCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
43
44#F77LINK = $(LIBTOOL) --mode=link --tag=CC $(F77LD) $(AM_FFLAGS) \
45#       $(FFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
46#
47#.java.class:
48#       $(JAVAC) $<
49#
50#.i.c:
51#       $(SWIG) $(SWIGFLAGS) -o $@ $<
52#
53#F90COMPILE = $(F90) $(AM_F90FLAGS) $(F90FLAGS)
54#LTF90COMPILE = $(LIBTOOL) --mode=compile @LTF90COMPILETAG@ $(F90) $(AM_FFLAGS) $(F90FLAGS)
55#F90LD = $(F90)
56#F90LINK = $(LIBTOOL) --mode=link @LTF90LINKTAG@ $(F90LD) $(AM_F90FLAGS) $(F90FLAGS) \
57#        $(AM_LDFLAGS) $(LDFLAGS) -o $@ $(LIBG2C)
58#
59#       -cpp $(AM_CPPFLAGS) -C -P $< > $*_cpp.f90
60#.f90.o :
61#       -cpp $(AM_CPPFLAGS) -C $< > $*_cpp.f90
62#       perl -p -i.bak -e 's/^\s+(\w)/$$1/' $*_cpp.f90
63#       $(FC) $(AM_FCFLAGS) $(FCFLAGS) -c $*_cpp.f90 -o $@
64#       $(RM) $*_cpp.f90.bak
65#
66#.f90.lo :
67#       -cpp $(AM_CPPFLAGS) -C $< > $*_cpp.f90
68#       perl -p -i.bak -e 's/^\s+(\w)/$$1/' $*_cpp.f90
69#       $(LTFCCOMPILE) -c -o $@ `test -f '$*_cpp.f90' || echo '$(srcdir)/'`$*_cpp.f90
70#       $(RM) $*_cpp.f90.bak
Note: See TracBrowser for help on using the repository browser.