diff options
Diffstat (limited to 'g')
-rwxr-xr-x | g | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -0,0 +1,25 @@ | |||
1 | #!/bin/bash | ||
2 | warn="-freverse-errors -fwarn-unused-imports -Wmissing-signatures -fdefer-typed-holes" | ||
3 | exts="-XOverloadedStrings -XRecordWildCards" | ||
4 | defs="-DBENCODE_AESON -DTHREAD_DEBUG" | ||
5 | hide="-hide-package crypto-random -hide-package crypto-api -hide-package crypto-numbers -hide-package cryptohash -hide-package prettyclass" | ||
6 | |||
7 | root=${0%/*} | ||
8 | cd "$root" | ||
9 | |||
10 | me=${0##*/} | ||
11 | me=${me%.*} | ||
12 | ghc \ | ||
13 | $hide \ | ||
14 | $exts \ | ||
15 | $defs \ | ||
16 | -hidir build/$me -odir build/$me \ | ||
17 | -iPresence \ | ||
18 | -iArchive \ | ||
19 | -isrc \ | ||
20 | -icryptonite-backport \ | ||
21 | build/b/Presence/monitortty.o \ | ||
22 | build/b/cbits/cryptonite_salsa.o \ | ||
23 | build/b/cbits/cryptonite_xsalsa.o\ | ||
24 | $warn \ | ||
25 | "$@" | ||