[project @ 2005-02-02 10:59:16 by malcolm]
[packages/base.git] / Makefile.nhc98
1 THISPKG = base
2 SEARCH  = -I$(TOPDIR)/targets/$(MACHINE) -Iinclude
3 EXTRA_H_FLAGS   = -H4M -K2M
4 EXTRA_HBC_FLAGS = -H16M -A1M
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         Data/Map.hs Data/IntMap.hs Data/IntSet.hs Data/FunctorM.hs \
14         Control/Monad.hs Control/Monad/Fix.hs \
15         Control/Arrow.hs Debug/Trace.hs \
16         NHC/SizedTypes.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         System/CPUTime.hsc System/Time.hsc \
22         System/Directory/Internals.hs \
23         Foreign/Ptr.hs Foreign/StablePtr.hs Foreign/Storable.hs \
24         Foreign/ForeignPtr.hs Foreign/C/Types.hs \
25         Foreign/Marshal/Alloc.hs Foreign/Marshal/Array.hs \
26         Foreign/Marshal/Utils.hs Foreign/Marshal/Error.hs \
27         Foreign/Marshal/Pool.hs Foreign/Marshal.hs \
28         Foreign/C/String.hs Foreign/C/Error.hs Foreign/C.hs Foreign.hs \
29         Text/PrettyPrint/HughesPJ.hs Text/PrettyPrint.hs \
30         Text/Html/BlockTable.hs Text/Html.hs Text/Printf.hs \
31         Text/Read.hs Text/Show.hs Text/Show/Functions.hs \
32         Text/ParserCombinators/ReadP.hs Data/Version.hs \
33         Text/Regex/Posix.hsc Text/Regex.hs
34
35
36 #       Text/ParserCombinators/ReadPrec.hs
37 #       [Data/Dynamic.hs] Data/Generics.hs Data/STRef.hs Data/Unique.hs
38 #       System/Mem.hs System/Mem/StableName.hs System/Mem/Weak.hs
39 #       System/Posix/Types.hs System/Posix/Signals.hsc
40 #       Text/Read/Lex.hs
41 #       System/FilePath.hs
42
43
44 # Here are the main rules.
45 include ../Makefile.common
46
47 # some extra rules
48 extra:
49         if [ -f Prelude.hs ]; then mv Prelude.hs Prelude.hs.unused; fi
50         if [ -f Numeric.hs ]; then mv Numeric.hs Numeric.hs.unused; fi
51
52 # Here are any extra dependencies.
53
54 # C-files dependencies.
55 Data/FiniteMap.$C: Data/Maybe.$C
56 Data/Set.$C:       Data/Monoid.$C Data/List.$C Data/Typeable.$C
57 Data/Array.$C:     Data/Ix.$C Data/Typeable.$C
58 Data/Dynamic.$C:   Data/HashTable.$C Data/Typeable.$C
59 Data/Typeable.$C:  Data/Maybe.$C Data/Either.$C Data/Int.$C Data/Word.$C \
60                    Data/List.$C Data/HashTable.$C
61 Data/HashTable.$C: Control/Monad.$C
62 Data/Int.$C:       NHC/SizedTypes.$C
63 Data/Word.$C:      NHC/SizedTypes.$C
64 Data/Tree.$C:      Control/Monad.$C Data/Maybe.$C Data/Queue.$C
65 Data/Map.$C:       Data/Monoid.$C Data/Set.$C Data/List.$C Data/Typeable.$C
66 Data/IntMap.$C:    Data/Monoid.$C Data/Bits.$C Data/Int.$C Data/IntSet.$C \
67                    Data/Typeable.$C
68 Data/IntSet.$C:    Data/Monoid.$C Data/Bits.$C Data/Int.$C Data/List.$C \
69                    Data/Typeable.$C
70 Data/FunctorM.$C:  Data/Array.$C
71 Data/Version.$C:   Text/ParserCombinators/ReadP.$C Data/Typeable.$C \
72                    Data/List.$C Data/Char.$C Control/Monad.$C
73 NHC/SizedTypes.$C: Data/Bits.$C
74 System/IO.$C:      System/IO/Error.$C
75 System/Info.$C:    Data/Version.$C
76 System/Random.$C:  Data/Char.$C Data/IORef.$C System/IO/Unsafe.$C
77 Debug/Trace.$C:    System/IO.$C System/IO/Unsafe.$C
78 System/Directory.$C:       System/Directory/Internals.$C
79 Control/Monad/Fix.$C:      System/IO.$C
80 Foreign/Marshal/Alloc.$C:  Data/Maybe.$C Foreign/Ptr.$C Foreign/Storable.$C \
81                            Foreign/C/Types.$C
82 Foreign/Marshal/Array.$C:  Control/Monad.$C Foreign/Ptr.$C Foreign/Storable.$C \
83                            Foreign/Marshal/Alloc.$C Foreign/Marshal/Utils.$C
84 Foreign/Marshal/Utils.$C:  Data/Maybe.$C Foreign/Ptr.$C Foreign/Storable.$C \
85                            Foreign/C/Types.$C Foreign/Marshal/Alloc.$C
86 Foreign/Marshal/Error.$C:  Foreign/Ptr.$C
87 Foreign/C/String.$C:       Data/Word.$C Foreign/Ptr.$C Foreign/C/Types.$C \
88                            Foreign/Marshal/Array.$C
89 Foreign/C.$C:      Foreign/C/Types.$C Foreign/C/Error.$C Foreign/C/String.$C
90 Text/Regex.$C:     Text/Regex/Posix.$C