[project @ 1998-02-03 10:17:19 by simonm]
authorsimonm <unknown>
Tue, 3 Feb 1998 10:17:19 +0000 (10:17 +0000)
committersimonm <unknown>
Tue, 3 Feb 1998 10:17:19 +0000 (10:17 +0000)
take into account $(GhcLibsWithReadline).

ghc/lib/misc/Makefile

index b2bfe19..c45bfbd 100644 (file)
@@ -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