implemented Setup.hs to build boehm cpp libs and install them;
[hs-boehmgc.git] / gc-7.2 / build_atomic_ops.sh.cygwin
1 #!/bin/sh
2 # We install through the temporary directory in case pwd contains spaces,
3 # which otherwise breaks the build machinery.
4 # This is a gross hack and probably breaks incremental rebuilds
5 mkdir libatomic_ops-install
6 P=`pwd`
7 Q=`mktemp -d`
8 ln -s "$P" $Q/dir
9 cd $Q/dir/libatomic_ops
10 ./configure --prefix=$Q/dir/libatomic_ops-install
11 $MAKE CC=$CC install
12 cd /
13 rm $Q/dir
14 rmdir $Q