Skip to content
Snippets Groups Projects
Commit 0e62156d authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1997-01-07 13:20:35 by simonm]

use mk/lib.mk, and remove some junk.
parent 828e71e5
No related branches found
No related tags found
No related merge requests found
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# $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 = ../.. TOP = ../..
include $(TOP)/ghc/mk/ghc.mk include $(TOP)/ghc/mk/ghc.mk
...@@ -25,13 +25,6 @@ GHC_OPTS = \ ...@@ -25,13 +25,6 @@ GHC_OPTS = \
-recomp -cpp -fglasgow-exts -fvia-C \ -recomp -cpp -fglasgow-exts -fvia-C \
$(HcMaxHeapFlag) $(EXTRA_HC_OPTS) $(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 # Rules for building various types of objects from HS files
...@@ -61,27 +54,16 @@ endif ...@@ -61,27 +54,16 @@ endif
# build the library itself... # build the library itself...
ifeq ($(suffix), norm) ifeq ($(suffix), norm)
LIB = libHS.a # this one is special ARCHIVE = libHS.a # this one is special
else else
LIB = libHS_$(suffix).a ARCHIVE = libHS_$(suffix).a
endif endif
$(LIB) : $(OBJS) SRCS = $(wildcard prelude/*.hs required/*.hs concurrent/*.hs)
@$(RM) $@ LIBOBJS = $(SRCS:.hs=.$(suffix)_o)
$(AR) $@ $^ DESTDIR = $(INSTLIBDIR_GHC)
all :: $(LIB)
clean ::
$(RM) $(LIB)
$(RM) $(OBJS)
install :: $(LIB)
$(INSTALL) $(INSTLIBFLAGS) $(LIB) $(INSTLIBDIR_GHC)
$(RANLIB) $(INSTLIBDIR_GHC)/$(LIB)
veryclean :: include $(TOP)/mk/lib.mk
$(RM) */*.hc */*.hi
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# per-module flags # per-module flags
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment