From 6e390184965d5b8decdcd2e6af94129371a455a1 Mon Sep 17 00:00:00 2001 From: simonm <unknown> Date: Tue, 3 Feb 1998 10:17:19 +0000 Subject: [PATCH] [project @ 1998-02-03 10:17:19 by simonm] take into account $(GhcLibsWithReadline). --- ghc/lib/misc/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ghc/lib/misc/Makefile b/ghc/lib/misc/Makefile index b2bfe1983af3..c45bfbd15968 100644 --- a/ghc/lib/misc/Makefile +++ b/ghc/lib/misc/Makefile @@ -18,6 +18,14 @@ endif LIBRARY = libHS$(_way).a HS_SRCS = $(wildcard *.lhs) + +# Remove Readline.lhs if readline.h isn't available. +ifneq "$(GhcLibsWithReadline)" "YES" + HS_SRCS := $(filter-out src/Readline.lhs,$(HS_SRCS)) +else + SRC_HC_OPTS += -I$(ReadlineIncludePath) +endif + HS_OBJS = $(HS_SRCS:.lhs=.$(way_)o) LIBOBJS = $(HS_OBJS) HS_IFACES= $(HS_SRCS:.lhs=.$(way_)hi) GHC.$(way_)hi -- GitLab