From cbfbac0617770abfb8a0c740bba7e0ca7f6e861d Mon Sep 17 00:00:00 2001 From: malcolm Date: Wed, 9 Oct 2002 16:55:30 +0000 Subject: [PATCH] [project @ 2002-10-09 16:55:30 by malcolm] Add a little infrastructure for building the hierarchical libraries with nhc98. --- Makefile.inc | 7 +++++++ Makefile.nhc98 | 29 +++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 Makefile.inc create mode 100644 Makefile.nhc98 diff --git a/Makefile.inc b/Makefile.inc new file mode 100644 index 0000000..91ac818 --- /dev/null +++ b/Makefile.inc @@ -0,0 +1,7 @@ +ifeq "" "${MKDIR}" +MKDIR:=$(shell pwd) +#MKDIR:=$(PWD) +else +MKDIR:=$(patsubst %/$(notdir ${MKDIR}),%, ${MKDIR}) +endif +include ${MKDIR}/Makefile.inc diff --git a/Makefile.nhc98 b/Makefile.nhc98 new file mode 100644 index 0000000..48772da --- /dev/null +++ b/Makefile.nhc98 @@ -0,0 +1,29 @@ +THISPKG = base +SEARCH = + +DIRS = Data Control Debug System System/IO + +SRCS = \ + Data/Bits.hs Data/Bool.hs Data/Char.hs Data/Complex.hs \ + Data/Either.hs Data/FiniteMap.hs Data/IORef.hs Data/Int.hs \ + Data/Ix.hs Data/List.hs Data/Maybe.hs Data/PackedString.hs \ + Data/Set.hs Data/Tuple.hs Data/Word.hs \ + Control/Monad.hs \ + System/IO.hs System/IO/Error.hs System/IO/Unsafe.hs + +# Debug/Trace.hs Debug/QuickCheck.hs + + +# Here are the main rules. +include ../Makefile.common + + +# Here are the dependencies. +$(OBJDIR)/Data/FiniteMap.$O: $(OBJDIR)/Data/Maybe.$O +$(OBJDIR)/Data/Set.$O: $(OBJDIR)/Data/Maybe.$O $(OBJDIR)/Data/FiniteMap.$O +$(OBJDIR)/System/IO.$O: $(OBJDIR)/System/IO/Error.$O + +# C-files dependencies. +Data/FiniteMap.$C: Data/Maybe.$C +Data/Set.$C: Data/Maybe.$C Data/FiniteMap.$C +System/IO.$C: System/IO/Error.$C -- 1.7.10.4