/[ascend]/trunk/lsod/jam/Jamfile
ViewVC logotype

Annotation of /trunk/lsod/jam/Jamfile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 57 - (hide annotations) (download)
Sat Oct 1 01:38:26 2005 UTC (17 years, 5 months ago) by jds
File size: 3145 byte(s)
Minor jam updates.
1 jds 40 #
2     # Jamfile to build generic Ascend4 lsode library
3     # (see http://www.freetype.org/jam/index.html)
4     #
5     # This file is part of the Ascend Build System.
6     #
7     # Copyright (C) 2005 Jerry D. St.Clair
8     #
9     # The Ascend Build System is free software; you can redistribute
10     # it and/or modify it under the terms of the GNU General Public
11     # License as published by the Free Software Foundation; either
12     # version 2 of the License, or (at your option) any later version.
13     #
14     # This program is distributed in hope that it will be useful,
15     # but WITHOUT ANY WARRANTY; without even the implied warranty of
16     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17     # GNU General Public License for more details.
18     #
19     # You should have received a copy of the GNU General Public License
20     # along with the program; if not, write to the Free Software
21     # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139 USA.
22     # Check the file named COPYING.
23     #---------------------------------------------------------------------------
24 jds 56 #
25 jds 40 # UNDER CONSTRUCTION
26     #
27     # This Jamfile builds the generic Ascend lsode functionality as a
28     # static library.
29     #
30     # The Ascend jam build system currently supports building the library
31     # under Linux with gcc/g77, and under Windows with the MinGW and
32     # Watcom FORTRAN compilers. With use of the included Jambase file,
33     # it should work with both the original (http://www.perforce.com) and
34     # ftjam (http://www.freetype.org/jam/index.html) variants of jam.
35     # The system was developed primarily using ftjam.
36     #
37     # The library is built in ./CONFIGTYPE/COMPILER where
38     # CONFIGTYPE = Debug, Release
39     # COMPILER = mingw, watcom, linux
40     #
41     # Installation of the library or headers is not supported at this time.
42     #-------------------------------------------------------------------------
43     #
44     # Build Instructions
45     #
46     # 1. jam must be installed and configured for the OS/compiler in use.
47     #
48     # 2. If necessary, manually edit ../../jam/Jamrules_general and this
49     # Jamfile to set configuration and local directory options.
50     #
51     # 3. Run jam from using the provided Jambase:
52     # jam -f ../../jam/Jambase_general lsode
53     #
54     #---------------------------------------------------------------------------
55    
56     # TODO: remove if end up using SubDir rules
57     JAM_GENERAL_DIR = ..$(SLASH)..$(SLASH)jam ;
58     include $(JAM_GENERAL_DIR)$(SLASH)Jamrules_general ;
59    
60     srcdir = .. ;
61    
62     DEPENDS all : libs lsode ;
63     NOTFILE libs lsode ;
64    
65     #=========================================================================
66     # lsode module
67     #=========================================================================
68     if $(FORTRAN)
69     {
70     ASC_LSODE_SOURCES =
71     lsode.f
72     ;
73    
74     LOCATE_TARGET = $(BUILD_DIR)$(SLASH)lsode ;
75     SEARCH_SOURCE = $(srcdir) ;
76    
77 jds 57 Library $(ASC_LSOD_LIBROOT) : $(ASC_LSODE_SOURCES) ;
78     MakeLocate $(ASC_LSOD_LIB) : $(BUILD_DIR) ;
79     Echo $(ASC_LSOD_LIBROOT) ;
80     Echo $(ASC_LSODE_SOURCES) ;
81     Echo $(ASC_LSOD_LIB) ;
82     Echo $(BUILD_DIR) ;
83    
84     DEPENDS libs lsod lsode : $(ASC_LSOD_LIB) ;
85 jds 40 }
86     else
87     {
88     Echo ERROR bulding lsode - FORTRAN is required but not defined. ;
89     }

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22