-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
35 lines (25 loc) · 923 Bytes
/
Makefile
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
# Use the following to install ghc with mtl and network libs on debian:
# apt install ghc libghc-network-dev libghc-regex-posix-dev libghc-unix-time-dev libghc-random-dev
HIRC = Hirc.hs Utf8Conv.hs Calculator.hs HircBot.hs
all: hirc acrogrep convert-conf
hirc: $(HIRC) initenv.o
ghc -o $@ -W -O2 -XBangPatterns -XForeignFunctionInterface -split-sections --make $+ -L.
strip $@
hirc-prof: $(HIRC)
ghc -o $@ -W -O2 -XBangPatterns --make $+\
-prof -auto-all -caf-all -fforce-recomp
# This can be used to convert old databases into utf-8
utf8-recode: Utf8Conv.hs Utf8Recode.hs
ghc -o $@ -W -O2 --make $+
strip $@
calc: Calculator.hs CalcTest.hs
ghc -o $@ -W -O2 --make $+
strip $@
convert-conf: ConvertConf.hs
ghc -o $@ -W -O2 -XBangPatterns --make $+
acrogrep: acrogrep.c
cc -o $@ -W -O2 $+
seen: seen.nim
nim c -d:release --gc:none --panics:on seen.nim
clean:
rm -f hirc *.hi *.o acrogrep convert-conf