[project @ 2004-12-14 13:31:44 by malcolm]
[packages/base.git] / Makefile.nhc98
1 THISPKG = base
2 SEARCH  = -I$(TOPDIR)/targets/$(MACHINE) -Iinclude
3 EXTRA_H_FLAGS   = +RTS -H4M -K2M -RTS
4 EXTRA_HBC_FLAGS = +RTS -H16M -A1M -RTS
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/Queue.hs Data/Tree.hs \
13         Control/Monad.hs Control/Monad/Fix.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/FilePath.hs \
19         System/Directory.hs System/Mem.hs System/Cmd.hs System/Info.hs \
20         System/Console/GetOpt.hs System/Random.hs \
21         System/CPUTime.hsc System/Time.hsc \
22         Foreign/Ptr.hs Foreign/StablePtr.hs Foreign/Storable.hs \
23         Foreign/ForeignPtr.hs Foreign/C/Types.hs \
24         Foreign/Marshal/Alloc.hs Foreign/Marshal/Array.hs \
25         Foreign/Marshal/Utils.hs Foreign/Marshal/Error.hs \
26         Foreign/Marshal/Pool.hs Foreign/Marshal.hs \
27         Foreign/C/String.hs Foreign/C/Error.hs Foreign/C.hs Foreign.hs \
28         Text/PrettyPrint/HughesPJ.hs Text/PrettyPrint.hs \
29         Text/Html/BlockTable.hs Text/Html.hs \
30         Text/Read.hs Text/Show.hs Text/Show/Functions.hs
31
32 #       [Data/Dynamic.hs] Data/Generics.hs Data/STRef.hs Data/Unique.hs
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
36 #       Text/Read/Lex.hs
37 #       Text/Regex/* Text/Regex.hs
38
39
40 # Here are the main rules.
41 include ../Makefile.common
42
43 # some extra rules
44 NHC/SizedTypes.hs: NHC/SizedTypes.hs.cpp
45         $(CC) -E $< >$@
46
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)/Foreign/Marshal/Alloc.$O:  $(OBJDIR)/Data/Maybe.$O \
63         $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
64         $(OBJDIR)/Foreign/C/Types.$O
65 $(OBJDIR)/Foreign/Marshal/Array.$O:  $(OBJDIR)/Control/Monad.$O \
66         $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
67         $(OBJDIR)/Foreign/Marshal/Alloc.$O $(OBJDIR)/Foreign/Marshal/Utils.$O
68 $(OBJDIR)/Foreign/Marshal/Utils.$O:  $(OBJDIR)/Data/Maybe.$O \
69         $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
70         $(OBJDIR)/Foreign/Marshal/Alloc.$O $(OBJDIR)/Foreign/C/Types.$O
71 $(OBJDIR)/Foreign/Marshal/Error.$O: $(OBJDIR)/Foreign/Ptr.$O
72 $(OBJDIR)/Foreign/C/String.$O: $(OBJDIR)/Data/Word.$O $(OBJDIR)/Foreign/Ptr.$O \
73         $(OBJDIR)/Foreign/Marshal/Array.$O $(OBJDIR)/Foreign/C/Types.$O 
74 $(OBJDIR)/Foreign/C.$O: $(OBJDIR)/Foreign/C/Types.$O \
75         $(OBJDIR)/Foreign/C/Error.$O $(OBJDIR)/Foreign/C/String.$O
76
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 Foreign/Marshal/Alloc.$C:  Data/Maybe.$C Foreign/Ptr.$C Foreign/Storable.$C \
91         Foreign/C/Types.$C
92 Foreign/Marshal/Array.$C:  Control/Monad.$C Foreign/Ptr.$C Foreign/Storable.$C \
93         Foreign/Marshal/Alloc.$C Foreign/Marshal/Utils.$C
94 Foreign/Marshal/Utils.$C:  Data/Maybe.$C Foreign/Ptr.$C Foreign/Storable.$C \
95         Foreign/C/Types.$C Foreign/Marshal/Alloc.$C
96 Foreign/Marshal/Error.$C:  Foreign/Ptr.$C
97 Foreign/C/String.$C:       Data/Word.$C Foreign/Ptr.$C Foreign/C/Types.$C \
98         Foreign/Marshal/Array.$C
99 Foreign/C.$C:      Foreign/C/Types.$C Foreign/C/Error.$C Foreign/C/String.$C
100