-
Notifications
You must be signed in to change notification settings - Fork 0
/
makedepend.sh
executable file
·58 lines (51 loc) · 1.82 KB
/
makedepend.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env bash
#
# This scripts generates the dependencies for SCIP
#
LPSS=(cpx spx spx1 xprs msk clp grb qso none)
OPTS=(opt dbg prf opt-gccold)
TPIS=(omp tny none)
EXPRINTS=(none cppad)
for OPT in ${OPTS[@]}
do
# dependencies of main SCIP source and objscip library
# with ZIMPL disabled
make OPT=$OPT ZIMPL=false LPS=none SYM=none scipdepend
# dependencies of cmain and cppmain
make OPT=$OPT ZIMPL=false LPS=none LINKER=C maindepend
make OPT=$OPT ZIMPL=false LPS=none LINKER=CPP maindepend
for LPS in ${LPSS[@]}
do
# check if the header for the LP solver are available,
# or we are in the special case "none"
# in the case "qso", the include directory is called qsinc
if [ -e lib/include/$LPS"inc" ] || [ "$LPS" == "none" ] || [ "${LPS:0:3}" == "spx" -a -e lib/include/spxinc ] || [ "$LPS" == "qso" -a -e lib/include/qsinc ] || [ "$LPS" == "clp" -a -e lib/static/clp.*.opt ]
then
make LPS=$LPS OPT=$OPT lpidepend
fi
done
# dependencies of nlpi libraries
for EXPRINT in ${EXPRINTS[@]}
do
if test "$EXPRINT" == "none" -o "$EXPRINT" == "cppad" -o -e lib/include/$EXPRINT -o -e lib/include/$EXPRINT"inc"
then
make OPT=$OPT LPS=none EXPRINT=$EXPRINT IPOPT=false nlpidepend
for libtype in shared static
do
for ipoptopt in opt dbg
do
if ls lib/$libtype/ipopt.*.$ipoptopt > /dev/null 2>&1;
then
[ $libtype = "shared" ] && shared=true || shared=false
make OPT=$OPT LPS=none EXPRINT=$EXPRINT IPOPT=true SHARED=$shared IPOPTOPT=$ipoptopt nlpidepend
break 2
fi
done
done
fi
done
for TPI in ${TPIS[@]}
do
make OPT=$OPT ZIMPL=false LPS=none TPI=$TPI tpidepend
done
done