summaryrefslogtreecommitdiff
path: root/2020/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '2020/Makefile')
-rw-r--r--2020/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/2020/Makefile b/2020/Makefile
index b48727b..b05b096 100644
--- a/2020/Makefile
+++ b/2020/Makefile
@@ -1,5 +1,6 @@
GHC = ghc
-GHCFLAGS = -Wall -O2 -threaded
+GHCBASEFLAGS = -package parsec
+GHCFLAGS = $(GHCBASEFLAGS) -Wall -O2 -threaded
CXX = g++
CXXFLAGS = -Wall -Wextra -std=c++17 -O2
@@ -34,7 +35,7 @@ $(OBJDIR)/%:
.depend_hs: $(HASKELL_SRC) $(HASKELL_AUX)
- ghc -dep-suffix '' -dep-makefile $@ -M $(HASKELL_SRC)
+ ghc -dep-suffix '' -dep-makefile $@ -M $(GHCBASEFLAGS) $(HASKELL_SRC)
rm -f .depend_hs.bak
sed 's/\.o *:/:/; s/\.hi$$/.hs/g; s/\.hi[ \t]/.hs/g' <$@ >$@.tmp
mv $@.tmp $@