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