From: simonm Date: Tue, 3 Feb 1998 10:17:19 +0000 (+0000) Subject: [project @ 1998-02-03 10:17:19 by simonm] X-Git-Tag: Approx_2487_patches~1014 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=6e390184965d5b8decdcd2e6af94129371a455a1;p=ghc-hetmet.git [project @ 1998-02-03 10:17:19 by simonm] take into account $(GhcLibsWithReadline). --- diff --git a/ghc/lib/misc/Makefile b/ghc/lib/misc/Makefile index b2bfe19..c45bfbd 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