diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-12-21 20:23:40 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-12-21 20:23:40 +0000 |
commit | 27a6fbeab4d6d900435e506cccd2db3bbaa4af5e (patch) | |
tree | 912207efac5596b5167610a839d3beece556c1fa /lang/nhc98/files | |
parent | Update module "man" (important: security fix!). (diff) |
add nhc98 1.08
A fully-fledged compiler for Haskell 98
PR: 31039
Submitted by: Oliver Braun <obraun@informatik.unibw-muenchen.de>
Diffstat (limited to 'lang/nhc98/files')
-rw-r--r-- | lang/nhc98/files/patch-Makefile | 109 | ||||
-rw-r--r-- | lang/nhc98/files/patch-src::greencard::Makefile | 12 | ||||
-rw-r--r-- | lang/nhc98/files/patch-src::hmake::Makefile | 12 | ||||
-rw-r--r-- | lang/nhc98/files/patch-src::hp2graph::Makefile | 12 | ||||
-rw-r--r-- | lang/nhc98/files/patch-src::prelude::Makefile | 24 | ||||
-rw-r--r-- | lang/nhc98/files/patch-src::runtime::Makefile | 21 |
6 files changed, 190 insertions, 0 deletions
diff --git a/lang/nhc98/files/patch-Makefile b/lang/nhc98/files/patch-Makefile new file mode 100644 index 000000000000..e963ec7aca8e --- /dev/null +++ b/lang/nhc98/files/patch-Makefile @@ -0,0 +1,109 @@ +--- Makefile.orig Thu Oct 4 10:21:53 2001 ++++ Makefile Thu Oct 4 10:22:02 2001 +@@ -148,14 +148,14 @@ + + TARGDIR= targets + TARGETS= runtime prelude greencard hp2graph hattools \ +- profruntime profprelude profprelude-$(CC) \ +- timeruntime timeprelude timeprelude-$(CC) \ ++ profruntime profprelude profprelude-gcc \ ++ timeruntime timeprelude timeprelude-gcc \ + timetraceruntime timetraceprelude \ +- traceruntime traceprelude traceprelude-$(CC) \ +- compiler-nhc compiler-hbc compiler-ghc compiler-$(CC) \ +- hmake-nhc hmake-hbc hmake-ghc hmake-$(CC) \ +- greencard-nhc greencard-hbc greencard-ghc greencard-$(CC) \ +- prelude-$(CC) pragma-$(CC) ++ traceruntime traceprelude traceprelude-gcc \ ++ compiler-nhc compiler-hbc compiler-ghc compiler-gcc \ ++ hmake-nhc hmake-hbc hmake-ghc hmake-gcc \ ++ greencard-nhc greencard-hbc greencard-ghc greencard-gcc \ ++ prelude-gcc pragma-gcc + + .PHONY: default basic all tracer compiler help config install hattools + +@@ -188,8 +188,8 @@ + basic-nhc: $(PRAGMA) runtime hmake-nhc greencard-nhc compiler-nhc prelude + basic-hbc: $(PRAGMA) runtime hmake-hbc greencard-hbc compiler-hbc prelude + basic-ghc: $(PRAGMA) runtime hmake-ghc greencard-ghc compiler-ghc prelude +-basic-$(CC): runtime prelude-$(CC) pragma-$(CC) compiler-$(CC) \ +- greencard-$(CC) hmake-$(CC) ++basic-gcc: runtime prelude-gcc pragma-gcc compiler-gcc \ ++ greencard-gcc hmake-gcc + + all-$(BUILDCOMP): basic-$(BUILDCOMP) heapprofile timeprofile tracer lib/hood.jar + +@@ -209,9 +209,9 @@ + compiler-ghc traceruntime traceprelude hattools + tracer-hbc: $(PRAGMA) runtime hmake-hbc greencard-hbc \ + compiler-hbc traceruntime traceprelude hattools +-tracer-$(CC): runtime prelude-$(CC) pragma-$(CC) compiler-$(CC) \ +- greencard-$(CC) hmake-$(CC) \ +- traceruntime traceprelude-$(CC) hattools ++tracer-gcc: runtime prelude-gcc pragma-gcc compiler-gcc \ ++ greencard-gcc hmake-gcc \ ++ traceruntime traceprelude-gcc hattools + timetraceprofile: timetraceruntime timetraceprelude + + $(TARGETS): % : $(TARGDIR)/$(MACHINE)/% +@@ -324,44 +324,44 @@ + touch $(TARGDIR)/$(MACHINE)/timeprelude + + +-$(TARGDIR)/$(MACHINE)/prelude-$(CC): $(PRELUDEC) ++$(TARGDIR)/$(MACHINE)/prelude-gcc: $(PRELUDEC) + cd src/prelude; $(MAKE) fromC relink +- touch $(TARGDIR)/$(MACHINE)/prelude-$(CC) ++ touch $(TARGDIR)/$(MACHINE)/prelude-gcc + touch $(TARGDIR)/$(MACHINE)/prelude +-$(TARGDIR)/$(MACHINE)/traceprelude-$(CC): $(PRELUDEC) ++$(TARGDIR)/$(MACHINE)/traceprelude-gcc: $(PRELUDEC) + cd src/prelude; $(MAKE) CFG=T fromC + cd src/prelude/$(MACHINE); $(MAKE) CFG=T clean all + cd src/prelude; $(MAKE) CFG=T relink +- touch $(TARGDIR)/$(MACHINE)/traceprelude-$(CC) ++ touch $(TARGDIR)/$(MACHINE)/traceprelude-gcc + touch $(TARGDIR)/$(MACHINE)/traceprelude +-$(TARGDIR)/$(MACHINE)/timeprelude-$(CC): $(PRELUDEC) ++$(TARGDIR)/$(MACHINE)/timeprelude-gcc: $(PRELUDEC) + cd src/prelude; $(MAKE) CFG=z fromC + cd src/prelude/$(MACHINE); $(MAKE) CFG=z clean all + cd src/prelude; $(MAKE) CFG=z relink +- touch $(TARGDIR)/$(MACHINE)/timeprelude-$(CC) ++ touch $(TARGDIR)/$(MACHINE)/timeprelude-gcc + touch $(TARGDIR)/$(MACHINE)/timeprelude +-$(TARGDIR)/$(MACHINE)/profprelude-$(CC): $(PRELUDEC) ++$(TARGDIR)/$(MACHINE)/profprelude-gcc: $(PRELUDEC) + cd src/prelude; $(MAKE) CFG=p fromC + cd src/prelude/$(MACHINE); $(MAKE) CFG=p clean all + cd src/prelude; $(MAKE) CFG=p relink +- touch $(TARGDIR)/$(MACHINE)/profprelude-$(CC) ++ touch $(TARGDIR)/$(MACHINE)/profprelude-gcc + touch $(TARGDIR)/$(MACHINE)/profprelude +-$(TARGDIR)/$(MACHINE)/compiler-$(CC): $(COMPILERC) ++$(TARGDIR)/$(MACHINE)/compiler-gcc: $(COMPILERC) + cd src/compiler98; $(MAKE) fromC + cd src/prelude/$(MACHINE); $(MAKE) clean all # Patch machine-specific parts. + cd src/prelude; $(MAKE) relink + cd src/compiler98; $(MAKE) relink +- touch $(TARGDIR)/$(MACHINE)/compiler-$(CC) +-$(TARGDIR)/$(MACHINE)/greencard-$(CC): $(GREENCARDC) ++ touch $(TARGDIR)/$(MACHINE)/compiler-gcc ++$(TARGDIR)/$(MACHINE)/greencard-gcc: $(GREENCARDC) + cd src/greencard; $(MAKE) fromC +- touch $(TARGDIR)/$(MACHINE)/greencard $(TARGDIR)/$(MACHINE)/greencard-$(CC) +-$(TARGDIR)/$(MACHINE)/pragma-$(CC): script/hmake-PRAGMA.hc ++ touch $(TARGDIR)/$(MACHINE)/greencard $(TARGDIR)/$(MACHINE)/greencard-gcc ++$(TARGDIR)/$(MACHINE)/pragma-gcc: script/hmake-PRAGMA.hc + script/nhc98 -o $(PRAGMA) script/hmake-PRAGMA.hc +- touch $(TARGDIR)/$(MACHINE)/pragma-$(CC) +-$(TARGDIR)/$(MACHINE)/hmake-$(CC): $(HMAKEC) ++ touch $(TARGDIR)/$(MACHINE)/pragma-gcc ++$(TARGDIR)/$(MACHINE)/hmake-gcc: $(HMAKEC) + cd src/hmake; $(MAKE) fromC + cd src/interpreter; $(MAKE) fromC +- touch $(TARGDIR)/$(MACHINE)/hmake-$(CC) ++ touch $(TARGDIR)/$(MACHINE)/hmake-gcc + + + script/errnogen.c: script/GenerateErrNo.hs diff --git a/lang/nhc98/files/patch-src::greencard::Makefile b/lang/nhc98/files/patch-src::greencard::Makefile new file mode 100644 index 000000000000..090ba9b4bfea --- /dev/null +++ b/lang/nhc98/files/patch-src::greencard::Makefile @@ -0,0 +1,12 @@ +diff -ruN src.bak/greencard/Makefile src/greencard/Makefile +--- src.bak/greencard/Makefile Tue May 29 16:22:46 2001 ++++ src/greencard/Makefile Mon Jun 18 16:31:45 2001 +@@ -34,7 +34,7 @@ + + + $(OBJDIR): +- mkdir -p $(OBJDIR) || /bin/true ++ mkdir -p $(OBJDIR) || /usr/bin/true + $(TARGET): $(OBJDIR) $(OBJDIR)/GreenCard$(EXE) + mv $(OBJDIR)/GreenCard$(EXE) $(TARGET) + strip $(TARGET) diff --git a/lang/nhc98/files/patch-src::hmake::Makefile b/lang/nhc98/files/patch-src::hmake::Makefile new file mode 100644 index 000000000000..26c10028866e --- /dev/null +++ b/lang/nhc98/files/patch-src::hmake::Makefile @@ -0,0 +1,12 @@ +diff -ruN src.bak/hmake/Makefile src/hmake/Makefile +--- src.bak/hmake/Makefile Tue May 29 16:29:07 2001 ++++ src/hmake/Makefile Mon Jun 18 16:32:21 2001 +@@ -48,7 +48,7 @@ + strip $@ + + $(OBJDIR): +- mkdir -p $(OBJDIR) || /bin/true ++ mkdir -p $(OBJDIR) || /usr/bin/true + $(OBJS): $(OBJDIR)/%.$O : %.hs + $(HC) $(HFLAGS) -c -o $@ $< + $(CPPOBJS) $(OBJDIR)/Older.$O: $(OBJDIR)/%.$O : %.hs diff --git a/lang/nhc98/files/patch-src::hp2graph::Makefile b/lang/nhc98/files/patch-src::hp2graph::Makefile new file mode 100644 index 000000000000..218c9a0c12b3 --- /dev/null +++ b/lang/nhc98/files/patch-src::hp2graph::Makefile @@ -0,0 +1,12 @@ +diff -ruN src.bak/hp2graph/Makefile src/hp2graph/Makefile +--- src.bak/hp2graph/Makefile Mon Oct 11 13:50:38 1999 ++++ src/hp2graph/Makefile Mon Jun 18 16:32:04 2001 +@@ -31,7 +31,7 @@ + + + $(OBJDIR): +- mkdir -p $(OBJDIR) || /bin/true ++ mkdir -p $(OBJDIR) || /usr/bin/true + + $(OBJS): $(OBJDIR)/%.o: %.c + $(CC) -c $(CFLAGS) -o $@ $< diff --git a/lang/nhc98/files/patch-src::prelude::Makefile b/lang/nhc98/files/patch-src::prelude::Makefile new file mode 100644 index 000000000000..4c18f7422a2a --- /dev/null +++ b/lang/nhc98/files/patch-src::prelude::Makefile @@ -0,0 +1,24 @@ +diff -ruN src.bak/prelude/Makefile src/prelude/Makefile +--- src.bak/prelude/Makefile Mon Jun 4 12:40:41 2001 ++++ src/prelude/Makefile Mon Jun 18 16:31:24 2001 +@@ -80,7 +80,7 @@ + mkdir -p ${OBJDIR} + + ${OBJDIRS}: ${OBJDIR}/% : +- mkdir -p $@ || /bin/true ++ mkdir -p $@ || /usr/bin/true + + + ifeq "${TPROF}" "" +@@ -326,9 +326,9 @@ + + + ${OBJDIR}: +- mkdir -p ${OBJDIR} || /bin/true ++ mkdir -p ${OBJDIR} || /usr/bin/true + ${OBJDIRS}: ${OBJDIR}/% : +- mkdir -p $@ || /bin/true ++ mkdir -p $@ || /usr/bin/true + + ${ARCHIVE}: ${OBJDIR} ${OBJDIRS} ${SUBDIRSMK} + rm -f $@ diff --git a/lang/nhc98/files/patch-src::runtime::Makefile b/lang/nhc98/files/patch-src::runtime::Makefile new file mode 100644 index 000000000000..46b71c9c6ad8 --- /dev/null +++ b/lang/nhc98/files/patch-src::runtime::Makefile @@ -0,0 +1,21 @@ +diff -ruN src.bak/runtime/Makefile src/runtime/Makefile +--- src.bak/runtime/Makefile Thu Dec 16 11:58:42 1999 ++++ src/runtime/Makefile Mon Jun 18 16:30:56 2001 +@@ -9,7 +9,7 @@ + + LD = ld + LDFLAGS = -r +-TRUE = /bin/true ++TRUE = /usr/bin/true + CC = gcc + AR = ar + ARFLAGS = r +@@ -48,7 +48,7 @@ + mkdir -p ${OBJDIR} + + ${OBJDIRS}: ${OBJDIR}/% : +- mkdir -p $@ || /bin/true ++ mkdir -p $@ || /usr/bin/true + + objdir: ${OBJDIR} + cd Kernel; $(MAKE) objdir |