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

Annotation of /trunk/lsod/jam/Jamfile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 40 - (hide annotations) (download)
Sat Jan 22 14:22:13 2005 UTC (19 years, 8 months ago) by jds
File size: 3073 byte(s)
Initial commit of WinVC7 and jam build files.  jam builds Ascend base libs and tcltk98 executable on Windows using msvc, borland, mingw, and watcom (watcom can't yet link executable due to lack of isnan() and copysign() functions).

Also includes minor source updates to compile & run on Windows.
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     #
25     # 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     ASC_LSODE_LIBNAME = liblsode ;
63     ASC_LSODE_LIB = $(ASC_LSODE_LIBNAME)$(SUFLIB) ;
64    
65     DEPENDS all : libs lsode ;
66     NOTFILE libs lsode ;
67    
68     #=========================================================================
69     # lsode module
70     #=========================================================================
71     if $(FORTRAN)
72     {
73     ASC_LSODE_SOURCES =
74     lsode.f
75     ;
76    
77     LOCATE_TARGET = $(BUILD_DIR)$(SLASH)lsode ;
78     SEARCH_SOURCE = $(srcdir) ;
79    
80     Library $(ASC_LSODE_LIBNAME) : $(ASC_LSODE_SOURCES) ;
81     MakeLocate $(ASC_LSODE_LIB) : $(BUILD_DIR) ;
82    
83     DEPENDS libs lsode : $(ASC_LSODE_LIB) ;
84     }
85     else
86     {
87     Echo ERROR bulding lsode - FORTRAN is required but not defined. ;
88     }

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