[project @ 1999-04-27 17:26:09 by keithw]
[ghc-hetmet.git] / ghc / lib / misc / Makefile
index c45bfbd..2483768 100644 (file)
@@ -1,6 +1,8 @@
+# $Id: Makefile,v 1.11 1999/02/03 16:54:01 simonm Exp $
 #
-# Makefile for hslibs subdir
+# Makefile for miscellaneous libraries.
 #
+
 TOP = ../..
 include $(TOP)/mk/boilerplate.mk
 
@@ -16,25 +18,26 @@ endif
 #      Setting the standard variables
 #
 
-LIBRARY = libHS$(_way).a
+LIBRARY = libHSmisc$(_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))
+  HS_SRCS := $(filter-out 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
+HS_IFACES= $(HS_SRCS:.lhs=.$(way_)hi)
+SRC_MKDEPENDHS_OPTS += -optdep--include-prelude
 
 
 #-----------------------------------------------------------------------------
 #      Setting the GHC compile options
 
-SRC_HC_OPTS += -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing $(GhcLibHcOpts)
+SRC_HC_OPTS += -i../concurrent -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing $(GhcLibHcOpts)
 
 #
 # Profiling options
@@ -51,14 +54,15 @@ endif
 #
 # Specific flags
 #
-BSD_HC_OPTS        += -syslib posix -optc-DNON_POSIX_SOURCE
-Socket_HC_OPTS     += -I../std/cbits -optc-DNON_POSIX_SOURCE
-SocketPrim_HC_OPTS += -I../std/cbits -H10m -syslib posix -optc-DNON_POSIX_SOURCE
+BSD_HC_OPTS          += -I../std/cbits -optc-DNON_POSIX_SOURCE
+Socket_HC_OPTS       += -I../std/cbits -optc-DNON_POSIX_SOURCE
+SocketPrim_HC_OPTS   += -I../std/cbits -H10m -optc-DNON_POSIX_SOURCE
+PackedString_HC_OPTS += -H12m
 
 #-----------------------------------------------------------------------------
 #      Dependency generation
 
-SRC_MKDEPENDHS_OPTS += -syslib posix -I$(GHC_INCLUDE_DIR)
+SRC_MKDEPENDHS_OPTS += -I$(GHC_INCLUDE_DIR)
 
 #-----------------------------------------------------------------------------
 #      Installation; need to install .hi files as well as libraries