diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2020-12-02 09:27:30 +0100 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2020-12-02 09:27:30 +0100 |
commit | a9983e2f6ce4f444b5adeeb909ecc70bc568c3f4 (patch) | |
tree | 4ca52e897d6b323408c9bafaf38b7fa17dcbc235 /2020/Makefile | |
parent | ec5353f4018c7e1ad56d521e38ec06af8d938d97 (diff) |
Day 2
Diffstat (limited to '2020/Makefile')
-rw-r--r-- | 2020/Makefile | 5 |
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 $@ |