f99e2c5ac8a7337fc1dd7af78eef992f200be6a8
[ghc-hetmet.git] / ghc / lib / concurrent / Makefile
1 # $Id: Makefile,v 1.7 1999/09/17 10:43:51 sof 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 = libHSconcurrent$(_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 SRC_MKDEPENDHS_OPTS += -optdep--include-prelude
27
28 #
29 # Profiling options
30 WAY_p_HC_OPTS += -GPrelude
31 WAY_mr_HC_OPTS += -GPrelude
32
33 #
34 # Object and interface files have suffixes tagged with their ways
35 #
36 ifneq "$(way)" ""
37 SRC_HC_OPTS += -hisuf $(way_)hi
38 endif
39
40 Parallel_HC_OPTS  += -fglasgow-exts
41
42 #-----------------------------------------------------------------------------
43 #       Dependency generation
44
45 SRC_MKDEPENDHS_OPTS += -I$(GHC_INCLUDE_DIR)
46
47 DLL_NAME = HSconc.dll
48 DLL_IMPLIB_NAME = libHSconcurrent_imp.a
49 SRC_BLD_DLL_OPTS += --export-all --output-def=HSconc.def
50 SRC_BLD_DLL_OPTS += -lwinmm -lHSrts_imp -lHScbits_imp -lHS_imp -lgmp -L. -L../../rts/gmp -L../../rts -L../std -L../std/cbits
51
52 #-----------------------------------------------------------------------------
53 #       Installation; need to install .hi files as well as libraries
54 #
55 # The interface files are put inside the $(libdir), since they
56 # might (potentially) be platform specific..
57 #
58 # override is used here because for binary distributions, datadir is
59 # set on the command line. sigh.
60 #
61 override datadir:=$(libdir)/imports/concurrent
62
63 #
64 # Files to install from here
65
66 INSTALL_LIBS  += $(LIBRARY)
67 INSTALL_DATAS += $(HS_IFACES)
68 ifeq "$(EnableWin32DLLs)" "YES"
69 INSTALL_PROGS += $(DLL_NAME)
70 INSTALL_LIBS  += $(patsubst %.a, %_imp.a, $(LIBRARY))
71 INSTALL_DATAS += dLL_ifs.hi
72 endif
73
74 include $(TOP)/mk/target.mk
75