2 # Makefile for hslibs subdir
5 include $(TOP)/mk/boilerplate.mk
9 #-----------------------------------------------------------------------------
10 # Setting the standard variables
13 LIBRARY = libHSconc$(_way).a
14 HS_SRCS = $(wildcard *.lhs)
15 HS_OBJS = $(HS_SRCS:.lhs=.$(way_)o)
17 HS_IFACES= $(HS_SRCS:.lhs=.$(way_)hi) GHC.$(way_)hi
20 #-----------------------------------------------------------------------------
21 # Setting the GHC compile options
23 SRC_HC_OPTS += -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing $(GhcLibHcOpts)
27 WAY_p_HC_OPTS += -GPrelude
28 WAY_mr_HC_OPTS += -GPrelude
31 # Object and interface files have suffixes tagged with their ways
34 SRC_HC_OPTS += -hisuf $(way_)hi
37 Parallel_HC_OPTS += -fglasgow-exts
39 #-----------------------------------------------------------------------------
40 # Dependency generation
42 SRC_MKDEPENDHS_OPTS += -I$(GHC_INCLUDE_DIR)
44 #-----------------------------------------------------------------------------
45 # Installation; need to install .hi files as well as libraries
47 # The interface files are put inside the $(libdir), since they
48 # might (potentially) be platform specific..
50 # override is used here because for binary distributions, datadir is
51 # set on the command line. sigh.
53 override datadir:=$(libdir)/imports/concurrent
56 # Files to install from here
58 INSTALL_LIBS += $(LIBRARY)
59 INSTALL_DATAS += $(HS_IFACES)
61 include $(TOP)/mk/target.mk