62 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
63 |
|
|
64 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
|
# The asc_include variable is (directory) path to the ascend4 |
|
|
# SOURCE directory relative to the immediate subdirectories of |
|
|
# the ascend4 OBJECT directory. |
|
65 |
##AWW |
##AWW |
66 |
##AWW We put the .o files when compiling into a tree structure |
##AWW We put the .o files when compiling into a tree structure |
67 |
##AWW relative to the directory in which we currently reside, |
##AWW relative to the directory in which we currently reside, |
71 |
##AWW compiling for different operating systems. |
##AWW compiling for different operating systems. |
72 |
##AWW |
##AWW |
73 |
##AWW Example 1 (same directories) |
##AWW Example 1 (same directories) |
74 |
##AWW Current directory one is in: /home/me/a4/asc4 |
##AWW Current directory one is in: /home/me/trunk/base/unixAC213 |
75 |
##AWW Directory containing configure: /home/me/a4/asc4 |
##AWW Directory containing configure: /home/me/trunk/base/unixAC213 |
76 |
##AWW Command to invoke configure: ./configure |
##AWW Command to invoke configure: ./configure |
77 |
##AWW $ascpwd will be: /home/me/a4/asc4 |
##AWW $ascpwd will be: /home/me/trunk/base/unixAC213 |
78 |
##AWW $srcdir will be: . |
##AWW $srcdir will be: . |
79 |
##AWW |
##AWW |
80 |
##AWW Example 2 (different directories, abs path for command) |
##AWW Example 2 (different directories, abs path for command) |
81 |
##AWW Current directory one is in: /home/me/a4/tmp |
##AWW Current directory one is in: /home/me/trunk/base/newTree |
82 |
##AWW Directory containing configure: /home/me/a4/asc4 |
##AWW Directory containing configure: /home/me/trunk/base/unixAC213 |
83 |
##AWW Command to invoke configure: /home/me/a4/asc4/configure |
##AWW Command to invoke configure: /home/me/trunk/base/unixAC213/configure |
84 |
##AWW $ascpwd will be: /home/me/a4/tmp |
##AWW $ascpwd will be: /home/me/trunk/base/newTree |
85 |
##AWW $srcdir will be: /home/me/a4/asc4 |
##AWW $srcdir will be: /home/me/trunk/base/unixAC213 |
86 |
##AWW |
##AWW |
87 |
##AWW Example 3 (different directories, rel path for command) |
##AWW Example 3 (different directories, rel path for command) |
88 |
##AWW Same as Example 2 |
##AWW Same as Example 2 |
89 |
##AWW Command to invoke configure: ../asc4/configure |
##AWW Command to invoke configure: ../unixAC213/configure |
90 |
##AWW $ascpwd will be: /home/me/a4/tmp (same as in Example 2) |
##AWW $ascpwd will be: /home/me/trunk/base/newTree (same as in Example 2) |
91 |
##AWW $srcdir will be: ../asc4 |
##AWW $srcdir will be: ../unixAC213 |
92 |
##AWW |
##AWW |
93 |
##AWW Key elements of the source tree are: |
##AWW Key elements of the source tree are: |
94 |
##AWW base/unixAC213/configure |
##AWW code/trunk/trunk/base/unixAC213/configure |
95 |
##AWW base/generic |
##AWW code/trunk/trunk/base/generic |
96 |
##AWW tcltk98 |
##AWW code/trunk/tcltk98 |
97 |
##AWW where $ascdir is pointing to base/unixAC213, the folder |
##AWW where $srcdir is pointing to /home/me/trunk/base/unixAC213, the folder |
98 |
##AWW containing "configure" |
##AWW containing "configure" |
99 |
##AWW |
##AWW |
100 |
##AWW Configure is located at: |
##AWW Configure is located at: |
118 |
##AWW any other of them. The following paths should do it. |
##AWW any other of them. The following paths should do it. |
119 |
##AWW |
##AWW |
120 |
##AWW If in compiler, general, packages, solver, utilities |
##AWW If in compiler, general, packages, solver, utilities |
121 |
##AWW .. for general, packages, etc |
##AWW .. for general, packages, etc |
122 |
##AWW ../../../tcltk98 for interface |
##AWW ../../../tcltk98/generic for interface |
123 |
##AWW If in interface |
##AWW If in interface |
124 |
##AWW .. for interface |
##AWW .. for interface |
125 |
##AWW ../../base/generic for compiler, general, packages, ... |
##AWW ../../../base/generic for compiler, general, .. |
126 |
##AWW |
##AWW |
127 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
128 |
|
# The asc_include variable is (directory) path to the ascend4 |
129 |
|
# SOURCE directory relative to the immediate subdirectories of |
130 |
|
# the ascend4 OBJECT directory. --rewrite - not clear. |
131 |
|
#AWW To compile a new ASCEND executable, one should move into the |
132 |
|
#AWW directory in which one wants the ASCEND object/executable |
133 |
|
#AWW to reside (call this objTree) and from there run |
134 |
|
#AWW ../base/unixAC213/configure. |
135 |
|
#AWW In the following code asc_include is set to the path from |
136 |
|
|
137 |
ascpwd=`pwd` |
ascpwd=`pwd` |
138 |
fullpathsrcdir=`cd $srcdir ; pwd` |
fullpathsrcdir=`cd $srcdir ; pwd` |
147 |
;; |
;; |
148 |
*) |
*) |
149 |
#AWW20041113: asc_include="../../$srcdir/ascend4" |
#AWW20041113: asc_include="../../$srcdir/ascend4" |
150 |
asc_include="../../$srcdir/../generic" |
asc_include="$srcdir/../generic" |
151 |
;; |
;; |
152 |
esac |
esac |
153 |
|
|
1788 |
# $fullpathsrcdir is the full path to the source directory. If |
# $fullpathsrcdir is the full path to the source directory. If |
1789 |
# that file exists, we |
# that file exists, we |
1790 |
# * Set <package>_dir_root to ../$subdir_root. The "../" is |
# * Set <package>_dir_root to ../$subdir_root. The "../" is |
1791 |
# needed since this value is used in the `ascend4' directory |
#AWW20041208:# needed since this value is used in the `ascend4' directory |
1792 |
# and $subdir_root is relative to the parent of `ascend4'. |
# needed since this value is used in the `generic' directory |
1793 |
|
#AWW20041208:# and $subdir_root is relative to the parent of `ascend4'. |
1794 |
|
# and $subdir_root is relative to the parent of `generic'. |
1795 |
# * Substitute the value of $subdir_root into `subdir_output' |
# * Substitute the value of $subdir_root into `subdir_output' |
1796 |
# and set the result to <package>_makefiles: the list of |
# and set the result to <package>_makefiles: the list of |
1797 |
# Makefiles for configure to generate. |
# Makefiles for configure to generate. |
1817 |
subdir_file_exists='AscendRC' |
subdir_file_exists='AscendRC' |
1818 |
#AWW20041117: FIXME next line |
#AWW20041117: FIXME next line |
1819 |
#AWW20041206: subdir_locations='ascend4/TK' |
#AWW20041206: subdir_locations='ascend4/TK' |
1820 |
subdir_locations='../tcltk98/TK' |
subdir_locations='../../tcltk98/TK' |
1821 |
subdir_output=' |
subdir_output=' |
1822 |
$subdir_root/Makefile |
$subdir_root/Makefile |
1823 |
$subdir_root/Makefile.Rules:$subdir_root/Makefile.Rules.in |
$subdir_root/Makefile.Rules:$subdir_root/Makefile.Rules.in |
1826 |
' |
' |
1827 |
for subdir_root in $subdir_locations ; do |
for subdir_root in $subdir_locations ; do |
1828 |
if test -f $fullpathsrcdir/$subdir_root/$subdir_file_exists ; then |
if test -f $fullpathsrcdir/$subdir_root/$subdir_file_exists ; then |
1829 |
tkdir_root="../$subdir_root" |
#AWW20041208: tkdir_root="../$subdir_root" |
1830 |
|
tkdir_root="$subdir_root" |
1831 |
tkdir_makefiles=`eval echo $subdir_output` |
tkdir_makefiles=`eval echo $subdir_output` |
1832 |
tkdir_topbuilddir=`echo "$subdir_root" | sed 's,[[^/][^/]]*,..,g'` |
tkdir_topbuilddir=`echo "$subdir_root" | sed 's,[[^/][^/]]*,..,g'` |
1833 |
break |
break |
1862 |
## $subdir_root/pending/libraries/Makefile |
## $subdir_root/pending/libraries/Makefile |
1863 |
for subdir_root in $subdir_locations ; do |
for subdir_root in $subdir_locations ; do |
1864 |
if test -f $fullpathsrcdir/$subdir_root/$subdir_file_exists ; then |
if test -f $fullpathsrcdir/$subdir_root/$subdir_file_exists ; then |
1865 |
models_dir_root="../$subdir_root" |
#AWW20041208: models_dir_root="../$subdir_root" |
1866 |
|
models_dir_root="$subdir_root" |
1867 |
models_makefiles=`eval echo $subdir_output` |
models_makefiles=`eval echo $subdir_output` |
1868 |
models_topbuilddir=`echo "$subdir_root" | sed 's,[[^/][^/]]*,..,g'` |
models_topbuilddir=`echo "$subdir_root" | sed 's,[[^/][^/]]*,..,g'` |
1869 |
break |
break |
1985 |
#AWW20041117: $conoptlib_makefile |
#AWW20041117: $conoptlib_makefile |
1986 |
#AWW20041117: $minoslib_makefile |
#AWW20041117: $minoslib_makefile |
1987 |
|
|
1988 |
|
#AWW20041216: Mark suggested using the following - except for last |
1989 |
|
#AWW20041216: except for last six items. Do they matter? |
1990 |
AC_OUTPUT( |
AC_OUTPUT( |
1991 |
../../base/generic/ConfigAscend:../../base/generic/ConfigAscend.in |
ConfigAscend:../../base/generic/ConfigAscend.in |
1992 |
../../base/generic/Makefile |
Makefile:../../base/generic/Makefile.in |
1993 |
../../base/generic/bin/ascend4.sh |
bin/ascend4.sh:../../base/generic/bin/ascend4.sh.in |
1994 |
../../base/generic/Makefile.Rules:../../base/generic/Makefile.Rules.in |
Makefile.Rules:../../base/generic/Makefile.Rules.in |
1995 |
../../base/generic/archive/Makefile |
archive/Makefile:../../base/generic/archive/Makefile.in |
1996 |
../../base/generic/bin/Makefile |
bin/Makefile:../../base/generic/bin/Makefile.in |
1997 |
../../base/generic/compiler/Makefile |
compiler/Makefile:../../base/generic/compiler/Makefile.in |
1998 |
../../base/generic/general/Makefile |
general/Makefile:../../base/generic/general/Makefile.in |
1999 |
../../tcltk98/generic/interface/Makefile |
interface/Makefile:../../tcltk98/generic/interface/Makefile.in |
2000 |
../../base/generic/lib/Makefile |
lib/Makefile:../../base/generic/lib/Makefile.in |
2001 |
../../base/generic/packages/Makefile |
packages/Makefile:../../base/generic/packages/Makefile.in |
2002 |
../../base/generic/solver/Makefile |
solver/Makefile:../../base/generic/solver/Makefile.in |
2003 |
../../base/generic/utilities/Makefile |
utilities/Makefile:../../base/generic/utilities/Makefile.in |
2004 |
$tkdir_makefiles |
$tkdir_makefiles |
2005 |
$models_makefiles |
$models_makefiles |
2006 |
$help_makefiles |
$help_makefiles |
2007 |
$blaslib_makefile |
$blaslib_makefile |
2008 |
$lpaklib_makefile |
$lpaklib_makefile |
2009 |
$lsodlib_makefile |
$lsodlib_makefile |
2010 |
) |
) |
2011 |
|
|
2012 |
|
#AC_OUTPUT( |
2013 |
|
# ../../base/generic/ConfigAscend:../../base/generic/ConfigAscend.in |
2014 |
|
# ../../base/generic/Makefile |
2015 |
|
# ../../base/generic/bin/ascend4.sh |
2016 |
|
# ../../base/generic/Makefile.Rules:../../base/generic/Makefile.Rules.in |
2017 |
|
# ../../base/generic/archive/Makefile |
2018 |
|
# ../../base/generic/bin/Makefile |
2019 |
|
# ../../base/generic/compiler/Makefile |
2020 |
|
# ../../base/generic/general/Makefile |
2021 |
|
# ../../tcltk98/generic/interface/Makefile |
2022 |
|
# ../../base/generic/lib/Makefile |
2023 |
|
# ../../base/generic/packages/Makefile |
2024 |
|
# ../../base/generic/solver/Makefile |
2025 |
|
# ../../base/generic/utilities/Makefile |
2026 |
|
# $tkdir_makefiles |
2027 |
|
# $models_makefiles |
2028 |
|
# $help_makefiles |
2029 |
|
# $blaslib_makefile |
2030 |
|
# $lpaklib_makefile |
2031 |
|
# $lsodlib_makefile |
2032 |
|
# ) |