[project @ 2003-02-20 09:36:40 by malcolm]
[packages/base.git] / Makefile.nhc98
1 THISPKG = base
2 SEARCH  = -I$(TOPDIR)/targets/$(MACHINE)
3
4 DIRS    = Data Control Control/Monad Debug System System/IO System/Console \
5           Foreign Foreign/C Foreign/Marshal Text Text/ParserCombinators \
6           Text/ParserCombinators/Parsec Text/PrettyPrint Text/Html \
7           Text/Show
8
9 SRCS    = \
10         Data/Bits.hs Data/Bool.hs Data/Char.hs Data/Complex.hs \
11         Data/Either.hs Data/FiniteMap.hs Data/IORef.hs Data/Int.hs \
12         Data/Ix.hs Data/List.hs Data/Maybe.hs Data/PackedString.hs \
13         Data/Ratio.hs Data/Set.hs Data/Tuple.hs Data/Word.hs Data/Array.hs \
14         Data/Dynamic.hs \
15         Control/Monad.hs Control/Monad/Fix.hs Control/Monad/Trans.hs \
16         Control/Arrow.hs Debug/Trace.hs \
17         System/IO.hs System/IO/Error.hs System/IO/Unsafe.hs \
18         System/Environment.hs System/Exit.hs System/Locale.hs \
19         System/Directory.hs System/Mem.hs System/Cmd.hs System/Info.hs \
20         System/Console/GetOpt.hs System/Random.hs \
21         Foreign/Ptr.hs Foreign/StablePtr.hs Foreign/Storable.hs \
22         Foreign/ForeignPtr.hs Foreign/C/Types.hs Foreign/C/TypesISO.hs \
23         Foreign/Marshal/Alloc.hs Foreign/Marshal/Array.hs \
24         Foreign/Marshal/Utils.hs Foreign/Marshal/Error.hs \
25         Foreign/Marshal/Pool.hs Foreign/Marshal.hs \
26         Foreign/C/String.hs Foreign/C/Error.hs Foreign/C.hs Foreign.hs \
27         Text/ParserCombinators/Parsec/Char.hs \
28         Text/ParserCombinators/Parsec/Combinator.hs \
29         Text/ParserCombinators/Parsec/Error.hs \
30         Text/ParserCombinators/Parsec/Expr.hs \
31         Text/ParserCombinators/Parsec/Perm.hs \
32         Text/ParserCombinators/Parsec/Pos.hs \
33         Text/ParserCombinators/Parsec/Prim.hs \
34         Text/ParserCombinators/Parsec.hs \
35         Text/PrettyPrint/HughesPJ.hs Text/PrettyPrint.hs \
36         Text/Html/BlockTable.hs Text/Html.hs \
37         Text/Read.hs Text/Show.hs Text/Show/Functions.hs
38
39 #       [Data/Dynamic.hs] Data/Generics.hs Data/STRef.hs Data/Unique.hs
40 #       Control/Monad/Identity.hs
41 #       Debug/QuickCheck.hs
42 #       System/CPUTime.hsc System/Time.hsc
43 #       System/Mem.hs System/Mem/StableName.hs System/Mem/Weak.hs
44 #       System/Posix/Types.hs System/Posix/Signals.hsc
45 #       Text/ParserCombinators/Parsec/Token.hs \
46 #       Text/ParserCombinators/Parsec/Language.hs \
47 #       Text/ParserCombinators/ReadP.hs Text/ParserCombinators/ReadPrec.hs
48 #       Text/Read/Lex.hs
49 #       Text/Regex/* Text/Regex.hs
50
51
52 # Here are the main rules.
53 include ../Makefile.common
54
55
56 # Here are the dependencies.
57 $(OBJDIR)/Data/FiniteMap.$O: $(OBJDIR)/Data/Maybe.$O
58 $(OBJDIR)/Data/Set.$O: $(OBJDIR)/Data/Maybe.$O $(OBJDIR)/Data/FiniteMap.$O
59 $(OBJDIR)/Data/Array.$O: $(OBJDIR)/Data/Ix.$O
60 $(OBJDIR)/Data/Dynamic.$O: $(OBJDIR)/Foreign/Ptr.$O \
61         $(OBJDIR)/Foreign/StablePtr.$O
62 $(OBJDIR)/System/IO.$O: $(OBJDIR)/System/IO/Error.$O
63 $(OBJDIR)/System/Random.$O: $(OBJDIR)/Data/Char.$O $(OBJDIR)/Data/IORef.$O \
64         $(OBJDIR)/System/IO/Unsafe.$O
65 $(OBJDIR)/Debug/Trace.$O: $(OBJDIR)/System/IO.$O $(OBJDIR)/System/IO/Unsafe.$O
66 $(OBJDIR)/Control/Monad/Fix.$O: $(OBJDIR)/System/IO.$O
67 $(OBJDIR)/Control/Monad/Identity.$O: $(OBJDIR)/Control/Monad.$O \
68         $(OBJDIR)/Control/Monad/Fix.$O
69 $(OBJDIR)/Foreign/Marshal/Alloc.$O:  $(OBJDIR)/Data/Maybe.$O \
70         $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
71         $(OBJDIR)/Foreign/C/Types.$O
72 $(OBJDIR)/Foreign/Marshal/Array.$O:  $(OBJDIR)/Control/Monad.$O \
73         $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
74         $(OBJDIR)/Foreign/Marshal/Alloc.$O $(OBJDIR)/Foreign/Marshal/Utils.$O
75 $(OBJDIR)/Foreign/Marshal/Utils.$O:  $(OBJDIR)/Data/Maybe.$O \
76         $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
77         $(OBJDIR)/Foreign/Marshal/Alloc.$O $(OBJDIR)/Foreign/C/Types.$O
78 $(OBJDIR)/Foreign/Marshal/Error.$O: $(OBJDIR)/Foreign/Ptr.$O
79 $(OBJDIR)/Foreign/C/String.$O: $(OBJDIR)/Data/Word.$O $(OBJDIR)/Foreign/Ptr.$O \
80         $(OBJDIR)/Foreign/Marshal/Array.$O $(OBJDIR)/Foreign/C/Types.$O 
81 $(OBJDIR)/Text/ParserCombinators/Parsec/Char.$O: \
82         $(OBJDIR)/Text/ParserCombinators/Parsec/Pos.$O \
83         $(OBJDIR)/Text/ParserCombinators/Parsec/Prim.$O
84 $(OBJDIR)/Text/ParserCombinators/Parsec/Combinator.$O: \
85         $(OBJDIR)/Text/ParserCombinators/Parsec/Prim.$O
86 $(OBJDIR)/Text/ParserCombinators/Parsec/Error.$O: \
87         $(OBJDIR)/Text/ParserCombinators/Parsec/Pos.$O
88 $(OBJDIR)/Text/ParserCombinators/Parsec/Expr.$O: \
89         $(OBJDIR)/Text/ParserCombinators/Parsec/Prim.$O \
90         $(OBJDIR)/Text/ParserCombinators/Parsec/Combinator.$O
91 $(OBJDIR)/Text/ParserCombinators/Parsec/Language.$O: \
92         $(OBJDIR)/Text/ParserCombinators/Parsec.$O \
93         $(OBJDIR)/Text/ParserCombinators/Parsec/Token.$O
94 $(OBJDIR)/Text/ParserCombinators/Parsec/Perm.$O: \
95         $(OBJDIR)/Text/ParserCombinators/Parsec.$O
96 $(OBJDIR)/Text/ParserCombinators/Parsec/Prim.$O: \
97         $(OBJDIR)/Text/ParserCombinators/Parsec/Pos.$O \
98         $(OBJDIR)/Text/ParserCombinators/Parsec/Error.$O
99 $(OBJDIR)/Text/ParserCombinators/Parsec/Token.$O: \
100         $(OBJDIR)/Text/ParserCombinators/Parsec.$O
101
102 # C-files dependencies.
103 Data/FiniteMap.$C: Data/Maybe.$C
104 Data/Set.$C:       Data/Maybe.$C Data/FiniteMap.$C
105 Data/Array.$C:     Data/Ix.$C
106 Data/Dynamic.$C:   Foreign/Ptr.$C
107 System/IO.$C:      System/IO/Error.$C
108 System/Random.$C:  Data/Char.$C Data/IORef.$C System/IO/Unsafe.$C
109 Debug/Trace.$C:    System/IO.$C System/IO/Unsafe.$C
110 Control/Monad/Fix.$C:      System/IO.$C
111 Control/Monad/Identity.$C: Control/Monad.$C Control/Monad/Fix.$C
112 Control/Monad/Trans.$C:    System/IO.$C
113 Foreign/Marshal/Alloc.$C:  Data/Maybe.$C Foreign/Ptr.$C Foreign/Storable.$C \
114         Foreign/C/Types.$C
115 Foreign/Marshal/Array.$C:  Control/Monad.$C Foreign/Ptr.$C Foreign/Storable.$C \
116         Foreign/Marshal/Alloc.$C Foreign/Marshal/Utils.$C
117 Foreign/Marshal/Utils.$C:  Data/Maybe.$C Foreign/Ptr.$C Foreign/Storable.$C \
118         Foreign/C/Types.$C Foreign/Marshal/Alloc.$C
119 Foreign/Marshal/Error.$C:  Foreign/Ptr.$C
120 Foreign/C/String.$C:       Data/Word.$C Foreign/Ptr.$C Foreign/C/Types.$C \
121         Foreign/Marshal/Array.$C