add a dummy implementation of System.Timeout.timeout for nhc98
[packages/base.git] / Makefile.nhc98
1 THISPKG = base
2 SEARCH  = -I$(TOPDIR)/targets/$(MACHINE) -Iinclude \
3           -I../../prelude/PreludeIO -I../../prelude/`harch`
4 EXTRA_H_FLAGS   = -H4M -K3M
5 EXTRA_HBC_FLAGS = -H16M -A1M
6
7 DIRS    = \
8         Data Debug Control Control/Monad System System/IO System/Console \
9         Text Text/Html Text/Show Text/ParserCombinators Text/Regex \
10         Foreign Foreign/Marshal Foreign/C NHC Unsafe System/Posix
11
12 SRCS    = \
13         Data/Bits.hs Data/Bool.hs Data/Char.hs Data/Complex.hs \
14         Data/Either.hs Data/IORef.hs Data/Int.hs \
15         Data/Ix.hs Data/List.hs Data/Maybe.hs Data/PackedString.hs \
16         Data/Ratio.hs Data/Set.hs Data/Tuple.hs Data/Word.hs Data/Array.hs \
17         Data/HashTable.hs Data/Typeable.hs Data/Dynamic.hs \
18         Data/Monoid.hs Data/Tree.hs \
19         Data/Map.hs Data/IntMap.hs Data/IntSet.hs \
20         Data/Eq.hs Data/Ord.hs Data/Fixed.hs \
21         Data/Foldable.hs Data/Traversable.hs Data/Sequence.hs \
22         Data/Function.hs Data/Graph.hs \
23         Control/Monad.hs Control/Monad/Fix.hs Control/Monad/Instances.hs \
24         Control/Arrow.hs Control/Applicative.hs \
25         Control/Exception.hs \
26         Debug/Trace.hs \
27         NHC/SizedTypes.hs NHC/PosixTypes.hsc \
28         System/IO.hs System/IO/Error.hs System/IO/Unsafe.hs \
29         System/Environment.hs System/Exit.hs \
30         System/Mem.hs System/Info.hs \
31         System/Console/GetOpt.hs \
32         System/CPUTime.hsc System/Timeout.hs \
33         Foreign/Ptr.hs Foreign/StablePtr.hs Foreign/Storable.hs \
34         Foreign/ForeignPtr.hs Foreign/C/Types.hs \
35         Foreign/Marshal/Alloc.hs Foreign/Marshal/Array.hs \
36         Foreign/Marshal/Utils.hs Foreign/Marshal/Error.hs \
37         Foreign/Marshal/Pool.hs Foreign/Marshal.hs \
38         Foreign/C/String.hs Foreign/C/Error.hs Foreign/C.hs Foreign.hs \
39         Text/Printf.hs \
40         Text/Read.hs Text/Show.hs Text/Show/Functions.hs \
41         Text/ParserCombinators/ReadP.hs Data/Version.hs \
42         Unsafe/Coerce.hs \
43         WCsubst.c \
44         System/Posix/Types.hs \
45
46 # now moved to separate packages:
47 #       System/Directory.hs \
48 #       System/Directory/Internals.hs \
49 #       Text/PrettyPrint/HughesPJ.hs Text/PrettyPrint.hs \
50 #       System/Random.hs System/Locale.hs System/Time.hsc \
51 #       System/Cmd.hs
52
53 #       Text/Regex/Posix.hsc Text/Regex.hs \
54 #       Text/ParserCombinators/ReadPrec.hs
55 #       [Data/Dynamic.hs] Data/Generics.hs Data/STRef.hs Data/Unique.hs
56 #       System/Mem.hs System/Mem/StableName.hs System/Mem/Weak.hs
57 #       System/Posix/Types.hs System/Posix/Signals.hsc
58 #       Text/Read/Lex.hs
59 #       System/FilePath.hs
60
61
62 # Here are the main rules.
63 include ../Makefile.common
64
65 # some extra rules
66 extra:
67         if [ -f Prelude.hs ]; then mv Prelude.hs Prelude.hs.unused; fi
68         if [ -f Numeric.hs ]; then mv Numeric.hs Numeric.hs.unused; fi
69 extracfiles:
70         if [ -f Prelude.hs ]; then mv Prelude.hs Prelude.hs.unused; fi
71         if [ -f Numeric.hs ]; then mv Numeric.hs Numeric.hs.unused; fi
72
73 # Here are any extra dependencies.
74
75 # C-files dependencies.
76