summaryrefslogtreecommitdiff
path: root/ghc/lib/compat/Makefile
diff options
context:
space:
mode:
authorsimonmar <unknown>2004-11-09 17:22:01 +0000
committersimonmar <unknown>2004-11-09 17:22:01 +0000
commit120f14425699fc0d6fb9f024c928c8596d00f914 (patch)
tree80d06345c2bd49e52b5044f742957a58a5c01c6f /ghc/lib/compat/Makefile
parent7331a887f634652f9d28ccbe0384cabb779c7ba3 (diff)
downloadhaskell-120f14425699fc0d6fb9f024c928c8596d00f914.tar.gz
[project @ 2004-11-09 17:21:58 by simonmar]
Add a compatibility library, which will mean that we can make use of brand new libraries directly in GHC and the tools even when compiling with older versions of GHC. The library just consists of stubs that #include code from fptools/libraries. This isn't wired up to the build yet.
Diffstat (limited to 'ghc/lib/compat/Makefile')
-rw-r--r--ghc/lib/compat/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/ghc/lib/compat/Makefile b/ghc/lib/compat/Makefile
new file mode 100644
index 0000000000..c3f080b6e7
--- /dev/null
+++ b/ghc/lib/compat/Makefile
@@ -0,0 +1,25 @@
+#
+# This library contains modules only available in versions of GHC
+# newer than the current one. They are implemented as stubs that
+# #include the actual code from fptools/libraries.
+#
+# The idea is to ease the task of writing portable code in GHC and its
+# tools: the client can link with libghccompat.a and assume that all
+# the modules are available. In this way we can add modules to the library
+# and start using them right away in GHC, as long as the new library modules
+# can be compiled using older versions of GHC.
+#
+
+TOP=../..
+include $(TOP)/mk/boilerplate.mk
+
+ALL_DIRS = \
+ Data \
+ Distribution \
+ Distribution/Compat
+
+LIBRARY = libghccompat.a
+
+SRC_HC_OPTS += -I$(FPTOOLS_TOP)/libraries -fglasgow-exts
+
+include $(TOP)/mk/target.mk