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