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