[project @ 2002-10-09 16:55:30 by malcolm]
authormalcolm <unknown>
Wed, 9 Oct 2002 16:55:30 +0000 (16:55 +0000)
committermalcolm <unknown>
Wed, 9 Oct 2002 16:55:30 +0000 (16:55 +0000)
Add a little infrastructure for building the hierarchical libraries
with nhc98.

Makefile.inc [new file with mode: 0644]
Makefile.nhc98 [new file with mode: 0644]

diff --git a/Makefile.inc b/Makefile.inc
new file mode 100644 (file)
index 0000000..91ac818
--- /dev/null
@@ -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 (file)
index 0000000..48772da
--- /dev/null
@@ -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