1 # $Id: Makefile,v 1.5 1998/05/05 12:53:29 sof Exp $
3 # Makefile for concurrent libraries.
7 include $(TOP)/mk/boilerplate.mk
11 #-----------------------------------------------------------------------------
12 # Setting the standard variables
15 LIBRARY = libHSconcurrent$(_way).a
16 HS_SRCS = $(wildcard *.lhs)
17 HS_OBJS = $(HS_SRCS:.lhs=.$(way_)o)
19 HS_IFACES= $(HS_SRCS:.lhs=.$(way_)hi)
22 #-----------------------------------------------------------------------------
23 # Setting the GHC compile options
25 SRC_HC_OPTS += -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing $(GhcLibHcOpts)
26 SRC_MKDEPENDHS_OPTS += -optdep--include-prelude
30 WAY_p_HC_OPTS += -GPrelude
31 WAY_mr_HC_OPTS += -GPrelude
34 # Object and interface files have suffixes tagged with their ways
37 SRC_HC_OPTS += -hisuf $(way_)hi
40 Parallel_HC_OPTS += -fglasgow-exts
42 #-----------------------------------------------------------------------------
43 # Dependency generation
45 SRC_MKDEPENDHS_OPTS += -I$(GHC_INCLUDE_DIR)
47 #-----------------------------------------------------------------------------
48 # Installation; need to install .hi files as well as libraries
50 # The interface files are put inside the $(libdir), since they
51 # might (potentially) be platform specific..
53 # override is used here because for binary distributions, datadir is
54 # set on the command line. sigh.
56 override datadir:=$(libdir)/imports/concurrent
59 # Files to install from here
61 INSTALL_LIBS += $(LIBRARY)
62 INSTALL_DATAS += $(HS_IFACES)
64 include $(TOP)/mk/target.mk