[project @ 2002-02-11 12:27:34 by simonmar]
[packages/base.git] / Makefile
1 # -----------------------------------------------------------------------------
2 # $Id: Makefile,v 1.10 2002/02/06 11:51:12 simonmar Exp $
3
4 TOP=..
5 include $(TOP)/mk/boilerplate.mk
6
7 # -----------------------------------------------------------------------------
8
9 SUBDIRS = cbits include
10
11 ALL_DIRS = \
12 Control \
13 Control/Concurrent \
14 Control/Monad \
15 Control/Monad/ST \
16 Data \
17 Data/Array \
18 Database \
19 Debug \
20 Debug/QuickCheck \
21 FileFormat \
22 Foreign \
23 Foreign/C \
24 Foreign/Marshal \
25 GHC \
26 Hugs \
27 Language \
28 Network \
29 NHC \
30 System \
31 System/Mem \
32 System/IO \
33 Text \
34 Text/Html \
35 Text/PrettyPrint \
36 Text/Regex \
37 Text/Show
38
39 PKG = base
40
41 # -----------------------------------------------------------------------------
42 # PrimOpWrappers
43
44 GHC/PrimopWrappers.hs: $(GHC_COMPILER_DIR)/prelude/primops.txt
45 rm -f $@
46 $(GHC_GENPRIMOP) --make-haskell-wrappers < $< > $@
47
48 boot :: GHC/PrimopWrappers.hs
49
50 CLEAN_FILES += GHC/PrimopWrappers.hs
51
52 # -----------------------------------------------------------------------------
53 # GHC/Prim.hi-boot
54
55 GHC/Prim.$(way_)hi : GHC/Prim.hi-boot
56 cp $< $@
57
58 ALL_PRIMS = GHC/Prim.hi $(foreach way, $(WAYS), GHC/Prim.$(way)_hi)
59
60 lib : $(ALL_PRIMS)
61
62 boot :: $(ALL_PRIMS)
63
64 CLEAN_FILES += $(ALL_PRIMS)
65
66 SRC_CPP_OPTS += -I$(GHC_INCLUDE_DIR) -traditional
67
68 # -----------------------------------------------------------------------------
69
70 include $(TOP)/mk/target.mk
71