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