From 0e62156dd96cfb965918f3b76f5202a831e28217 Mon Sep 17 00:00:00 2001
From: simonm <unknown>
Date: Tue, 7 Jan 1997 13:20:35 +0000
Subject: [PATCH] [project @ 1997-01-07 13:20:35 by simonm] use mk/lib.mk, and
 remove some junk.

---
 ghc/lib/Makefile.libHS | 32 +++++++-------------------------
 1 file changed, 7 insertions(+), 25 deletions(-)

diff --git a/ghc/lib/Makefile.libHS b/ghc/lib/Makefile.libHS
index 2c24affec771..d112d45cd231 100644
--- a/ghc/lib/Makefile.libHS
+++ b/ghc/lib/Makefile.libHS
@@ -1,5 +1,5 @@
 #-----------------------------------------------------------------------------
-# $Id: Makefile.libHS,v 1.5 1997/01/07 01:17:38 simonpj Exp $
+# $Id: Makefile.libHS,v 1.6 1997/01/07 13:20:35 simonm Exp $
 
 TOP = ../..
 include $(TOP)/ghc/mk/ghc.mk
@@ -25,13 +25,6 @@ GHC_OPTS = \
   -recomp -cpp -fglasgow-exts -fvia-C \
   $(HcMaxHeapFlag) $(EXTRA_HC_OPTS)
 
-SRCS = $(wildcard ghc/*.lhs required/*.lhs glaExts/*.lhs concurrent/*.lhs)
-ifeq ($(suffix), norm)
-OBJS = $(SRCS:.lhs=.o)
-else
-OBJS = $(SRCS:.lhs=.$(suffix)_o)
-endif
-
 #-----------------------------------------------------------------------------
 # Rules for building various types of objects from HS files
 
@@ -61,27 +54,16 @@ endif
 # build the library itself...
 
 ifeq ($(suffix), norm)
-LIB = libHS.a	 		# this one is special
+ARCHIVE = libHS.a	 		# this one is special
 else
-LIB = libHS_$(suffix).a
+ARCHIVE = libHS_$(suffix).a
 endif
 
-$(LIB) : $(OBJS)
-	@$(RM) $@
-	$(AR) $@ $^
-
-all :: $(LIB)
-
-clean ::
-	$(RM) $(LIB)
-	$(RM) $(OBJS)
-
-install :: $(LIB)
-	$(INSTALL) $(INSTLIBFLAGS) $(LIB) $(INSTLIBDIR_GHC)
-	$(RANLIB) $(INSTLIBDIR_GHC)/$(LIB)
+SRCS 	= $(wildcard prelude/*.hs required/*.hs concurrent/*.hs)
+LIBOBJS = $(SRCS:.hs=.$(suffix)_o)
+DESTDIR = $(INSTLIBDIR_GHC)
 
-veryclean ::
-	$(RM) */*.hc */*.hi
+include $(TOP)/mk/lib.mk
 
 #-----------------------------------------------------------------------------
 # per-module flags
-- 
GitLab