select-0.4: example/build.sh
#!/bin/bash
p=$(pwd)
cobjs="../src/System/Posix/IO/Select/FdSet/cbits.o ../src/System/Posix/IO/Select/cbits.o"
cd ../src/System/Posix/IO/Select/FdSet/
hsc2hs Internal.hsc
gcc -DNDEBUG -Wall -std=c99 -c cbits.c
cd ..
gcc -Wall -std=c99 -lrt -c cbits.c
hsc2hs Types.hsc
cd $p
ghc -fforce-recomp -threaded -o stdin-test --make TestStdin.hs -i../src $cobjs
ghc -fforce-recomp -threaded -o fdset-example --make FdSetExample.hs -i../src $cobjs
ghc -fforce-recomp -threaded -o select-example --make SelectExample.hs -i../src $cobjs
ghc -fforce-recomp -threaded -o select-example2 --make SelectExample2.hs -i../src $cobjs