blob: 51231375092378e8383bc3aba5d3d9a9c9fd6655 (
plain)
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
|
#!/bin/sh
#
# Install script to w32dlib
#
# $Id$
#
if [ "$2" == "" ] ; then
echo usage: $0 install-dir script-flag
exit 1
fi
incbase=$1/include
incdir=$incbase/w32dlib
libdir=$1/lib
mkinfo=$2
conf=/usr/local/bin/w32dlib-config
echo ==== Copying header files to $incdir ====
mkdir -p $incdir
cp --verbose --force w32dlib/*.h $incdir
echo ==== Copying library files to $libdir ====
mkdir -p $libdir
cp --verbose --force libw32dlib.a $libdir
if [ $mkinfo == "1" ] ; then
echo ==== Creating $conf ====
cat << EOF > $conf
#!/bin/sh
if [ "\$1" == "--libs" ] ; then
echo -L$libdir -lw32dlib -lcomctl32 -lcomdlg32 -lole32
elif [ "\$1" == "--cflags" ] ; then
echo -I$incbase
elif [ "\$1" == "--archive" ] ; then
echo $libdir/libw32dlib.a
else
echo usage: \$0 [--libs\|--cflags\|-archive]
fi
EOF
fi
exit 0
|