5b3c39e556110381c330aa63bc09fde4b3559e51
[ghc-hetmet.git] / ghc / lib / concurrent / Makefile
1 #
2 # Makefile for hslibs subdir
3 #
4 TOP = ../..
5 include $(TOP)/mk/boilerplate.mk
6
7 WAYS=$(GhcLibWays)
8
9 #-----------------------------------------------------------------------------
10 #       Setting the standard variables
11 #
12
13 LIBRARY = libHSconc$(_way).a
14 HS_SRCS = $(wildcard *.lhs)
15 HS_OBJS = $(HS_SRCS:.lhs=.$(way_)o)
16 LIBOBJS = $(HS_OBJS)
17 HS_IFACES= $(HS_SRCS:.lhs=.$(way_)hi) GHC.$(way_)hi
18
19
20 #-----------------------------------------------------------------------------
21 #       Setting the GHC compile options
22
23 SRC_HC_OPTS += -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing $(GhcLibHcOpts)
24
25 #
26 # Profiling options
27 WAY_p_HC_OPTS += -GPrelude
28 WAY_mr_HC_OPTS += -GPrelude
29
30 #
31 # Object and interface files have suffixes tagged with their ways
32 #
33 ifneq "$(way)" ""
34 SRC_HC_OPTS += -hisuf $(way_)hi
35 endif
36
37 Parallel_HC_OPTS  += -fglasgow-exts
38
39 #-----------------------------------------------------------------------------
40 #       Dependency generation
41
42 SRC_MKDEPENDHS_OPTS += -I$(GHC_INCLUDE_DIR)
43
44 #-----------------------------------------------------------------------------
45 #       Installation; need to install .hi files as well as libraries
46 #
47 # The interface files are put inside the $(libdir), since they
48 # might (potentially) be platform specific..
49 #
50 # override is used here because for binary distributions, datadir is
51 # set on the command line. sigh.
52 #
53 override datadir:=$(libdir)/imports/concurrent
54
55 #
56 # Files to install from here
57
58 INSTALL_LIBS  += $(LIBRARY)
59 INSTALL_DATAS += $(HS_IFACES)
60
61 include $(TOP)/mk/target.mk
62