summaryrefslogtreecommitdiff
path: root/t
blob: 78daeab4c5e7ed66c1022e0617070c0ec41d3dd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
args="-threaded -fwarn-unused-binds -fwarn-unused-imports -rtsopts -DRENDERFLUSH -optP-include -optPdist/build/autogen/cabal_macros.h"

cfiles="dotlock.c"

root=${0%/*}
cd "$root"

me=${0##*/}
me=${me%.*}
ghc                                  \
    -hidir build/$me -odir build/$me \
    -iPresence                       \
    $cfiles                          \
    $args                            \
    "$@"