1 #################################################################################
5 # Makefile for building the GHC Prelude libraries umpteen ways
8 #################################################################################
11 include $(TOP)/mk/boilerplate.mk
15 #-----------------------------------------------------------------------------
16 # Setting the standard variables
19 LIBRARY = libHSexts$(_way).a
20 HS_SRCS = $(wildcard *.lhs)
21 HS_OBJS = $(HS_SRCS:.lhs=.$(way_)o)
23 HS_IFACES= $(HS_SRCS:.lhs=.$(way_)hi)
25 #-----------------------------------------------------------------------------
26 # Setting the GHC compile options
28 SRC_HC_OPTS += -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing $(GhcLibHcOpts)
32 WAY_p_HC_OPTS += -GPrelude
33 WAY_mr_HC_OPTS += -GPrelude
36 # Object and interface files have suffixes tagged with their ways
39 SRC_HC_OPTS += -hisuf $(way_)hi
45 #-----------------------------------------------------------------------------
46 # Dependency generation
48 SRC_MKDEPENDHS_OPTS += -i../std -I$(GHC_INCLUDE_DIR)
50 #-----------------------------------------------------------------------------
51 # Installation; need to install .hi files as well as libraries
53 # The interface files are put inside the $(libdir), since they
54 # might (potentially) be platform specific..
56 # override is used here because for binary distributions, datadir is
57 # set on the command line. sigh.
59 override datadir:=$(libdir)/imports/exts
62 # Files to install from here
64 INSTALL_LIBS += $(LIBRARY)
65 INSTALL_DATAS += $(HS_IFACES)
67 include $(TOP)/mk/target.mk