2 SEARCH = -I$(TOPDIR)/targets/$(MACHINE)
3 EXTRA_H_FLAGS = +RTS -K4M -RTS
6 Data/Bits.hs Data/Bool.hs Data/Char.hs Data/Complex.hs \
7 Data/Either.hs Data/FiniteMap.hs Data/IORef.hs Data/Int.hs \
8 Data/Ix.hs Data/List.hs Data/Maybe.hs Data/PackedString.hs \
9 Data/Ratio.hs Data/Set.hs Data/Tuple.hs Data/Word.hs Data/Array.hs \
10 Data/HashTable.hs Data/Typeable.hs Data/Dynamic.hs \
11 Data/Monoid.hs Data/Tree.hs \
12 Control/Monad.hs Control/Monad/Fix.hs Control/Monad/Trans.hs \
13 Control/Arrow.hs Debug/Trace.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 \
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/PrettyPrint/HughesPJ.hs Text/PrettyPrint.hs \
26 Text/Html/BlockTable.hs Text/Html.hs \
27 Text/Read.hs Text/Show.hs Text/Show/Functions.hs
29 # [Data/Dynamic.hs] Data/Generics.hs Data/STRef.hs Data/Unique.hs
30 # Control/Monad/Identity.hs
32 # System/CPUTime.hsc System/Time.hsc
33 # System/Mem.hs System/Mem/StableName.hs System/Mem/Weak.hs
34 # System/Posix/Types.hs System/Posix/Signals.hsc
35 # Text/ParserCombinators/ReadP.hs Text/ParserCombinators/ReadPrec.hs
37 # Text/Regex/* Text/Regex.hs
40 # Here are the main rules.
41 include ../Makefile.common
44 NHC/SizedTypes.hs: NHC/SizedTypes.hs.cpp
47 # Here are the dependencies.
48 $(OBJDIR)/Data/FiniteMap.$O: $(OBJDIR)/Data/Maybe.$O
49 $(OBJDIR)/Data/Set.$O: $(OBJDIR)/Data/Maybe.$O $(OBJDIR)/Data/FiniteMap.$O
50 $(OBJDIR)/Data/Array.$O: $(OBJDIR)/Data/Ix.$O
51 $(OBJDIR)/Data/Dynamic.$O: $(OBJDIR)/Data/HashTable.$O \
52 $(OBJDIR)/Data/Typeable.$O
53 $(OBJDIR)/Data/HashTable.$O: $(OBJDIR)/Control/Monad.$O
54 $(OBJDIR)/Data/Int.$O: $(OBJDIR)/NHC/SizedTypes.$O
55 $(OBJDIR)/Data/Word.$O: $(OBJDIR)/NHC/SizedTypes.$O
56 $(OBJDIR)/NHC/SizedTypes.$O: $(OBJDIR)/Data/Bits.$O
57 $(OBJDIR)/System/IO.$O: $(OBJDIR)/System/IO/Error.$O
58 $(OBJDIR)/System/Random.$O: $(OBJDIR)/Data/Char.$O $(OBJDIR)/Data/IORef.$O \
59 $(OBJDIR)/System/IO/Unsafe.$O $(OBJDIR)/Foreign/Ptr.$O
60 $(OBJDIR)/Debug/Trace.$O: $(OBJDIR)/System/IO.$O $(OBJDIR)/System/IO/Unsafe.$O
61 $(OBJDIR)/Control/Monad/Fix.$O: $(OBJDIR)/System/IO.$O
62 $(OBJDIR)/Control/Monad/Identity.$O: $(OBJDIR)/Control/Monad.$O \
63 $(OBJDIR)/Control/Monad/Fix.$O
64 $(OBJDIR)/Foreign/Marshal/Alloc.$O: $(OBJDIR)/Data/Maybe.$O \
65 $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
66 $(OBJDIR)/Foreign/C/Types.$O
67 $(OBJDIR)/Foreign/Marshal/Array.$O: $(OBJDIR)/Control/Monad.$O \
68 $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
69 $(OBJDIR)/Foreign/Marshal/Alloc.$O $(OBJDIR)/Foreign/Marshal/Utils.$O
70 $(OBJDIR)/Foreign/Marshal/Utils.$O: $(OBJDIR)/Data/Maybe.$O \
71 $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
72 $(OBJDIR)/Foreign/Marshal/Alloc.$O $(OBJDIR)/Foreign/C/Types.$O
73 $(OBJDIR)/Foreign/Marshal/Error.$O: $(OBJDIR)/Foreign/Ptr.$O
74 $(OBJDIR)/Foreign/C/String.$O: $(OBJDIR)/Data/Word.$O $(OBJDIR)/Foreign/Ptr.$O \
75 $(OBJDIR)/Foreign/Marshal/Array.$O $(OBJDIR)/Foreign/C/Types.$O
77 # C-files dependencies.
78 Data/FiniteMap.$C: Data/Maybe.$C
79 Data/Set.$C: Data/Maybe.$C Data/FiniteMap.$C
80 Data/Array.$C: Data/Ix.$C
81 Data/Dynamic.$C: Data/HashTable.$C Data/Typeable.$C
82 Data/HashTable.$C: Control/Monad.$C
83 Data/Int.$C: NHC/SizedTypes.$C
84 Data/Word.$C: NHC/SizedTypes.$C
85 NHC/SizedTypes.$C: Data/Bits.$C
86 System/IO.$C: System/IO/Error.$C
87 System/Random.$C: Data/Char.$C Data/IORef.$C System/IO/Unsafe.$C
88 Debug/Trace.$C: System/IO.$C System/IO/Unsafe.$C
89 Control/Monad/Fix.$C: System/IO.$C
90 Control/Monad/Identity.$C: Control/Monad.$C Control/Monad/Fix.$C
91 Control/Monad/Trans.$C: System/IO.$C
92 Foreign/Marshal/Alloc.$C: Data/Maybe.$C Foreign/Ptr.$C Foreign/Storable.$C \
94 Foreign/Marshal/Array.$C: Control/Monad.$C Foreign/Ptr.$C Foreign/Storable.$C \
95 Foreign/Marshal/Alloc.$C Foreign/Marshal/Utils.$C
96 Foreign/Marshal/Utils.$C: Data/Maybe.$C Foreign/Ptr.$C Foreign/Storable.$C \
97 Foreign/C/Types.$C Foreign/Marshal/Alloc.$C
98 Foreign/Marshal/Error.$C: Foreign/Ptr.$C
99 Foreign/C/String.$C: Data/Word.$C Foreign/Ptr.$C Foreign/C/Types.$C \
100 Foreign/Marshal/Array.$C