add Control.Category to the nhc98 build
[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 \
16         Data/Ratio.hs Data/Tuple.hs Data/Word.hs \
17         Data/HashTable.hs Data/Typeable.hs Data/Dynamic.hs \
18         Data/Monoid.hs \
19         Data/Eq.hs Data/Ord.hs Data/Fixed.hs \
20         Data/Foldable.hs Data/Traversable.hs \
21         Data/Function.hs \
22         Control/Monad.hs Control/Monad/Fix.hs Control/Monad/Instances.hs \
23         Control/Arrow.hs Control/Applicative.hs \
24         Control/Exception.hs Control/Category.hs \
25         Debug/Trace.hs \
26         NHC/SizedTypes.hs NHC/PosixTypes.hsc \
27         System/IO.hs System/IO/Error.hs System/IO/Unsafe.hs \
28         System/Environment.hs System/Exit.hs \
29         System/Mem.hs System/Info.hs \
30         System/Console/GetOpt.hs \
31         System/CPUTime.hsc System/Timeout.hs \
32         Foreign/Ptr.hs Foreign/StablePtr.hs Foreign/Storable.hs \
33         Foreign/ForeignPtr.hs Foreign/C/Types.hs \
34         Foreign/Marshal/Alloc.hs Foreign/Marshal/Array.hs \
35         Foreign/Marshal/Utils.hs Foreign/Marshal/Error.hs \
36         Foreign/Marshal/Pool.hs Foreign/Marshal.hs \
37         Foreign/C/String.hs Foreign/C/Error.hs Foreign/C.hs Foreign.hs \
38         Text/Printf.hs \
39         Text/Read.hs Text/Show.hs Text/Show/Functions.hs \
40         Text/ParserCombinators/ReadP.hs Data/Version.hs \
41         Unsafe/Coerce.hs \
42         WCsubst.c \
43         System/Posix/Types.hs \
44
45 #       Data/String.hs
46 #       Text/ParserCombinators/ReadPrec.hs
47 #       Text/Read/Lex.hs
48
49 # now moved to separate packages:
50 #       System/Directory.hs \
51 #       System/Directory/Internals.hs \
52 #       Text/PrettyPrint/HughesPJ.hs Text/PrettyPrint.hs \
53 #       System/Random.hs System/Locale.hs System/Time.hsc \
54 #       System/Cmd.hs
55
56 #       Text/Regex/Posix.hsc Text/Regex.hs \
57 #       [Data/Dynamic.hs] Data/Generics.hs Data/STRef.hs Data/Unique.hs
58 #       System/Mem.hs System/Mem/StableName.hs System/Mem/Weak.hs
59 #       System/Posix/Types.hs System/Posix/Signals.hsc
60 #       System/FilePath.hs
61
62
63 # Here are the main rules.
64 include ../Makefile.common
65
66 # some extra rules
67 extra:
68         if [ -f Prelude.hs ]; then mv Prelude.hs Prelude.hs.unused; fi
69         if [ -f Numeric.hs ]; then mv Numeric.hs Numeric.hs.unused; fi
70         $(INSTALL) include/Typeable.h $(INCDIR)/packages/$(THISPKG)
71 extracfiles:
72         if [ -f Prelude.hs ]; then mv Prelude.hs Prelude.hs.unused; fi
73         if [ -f Numeric.hs ]; then mv Numeric.hs Numeric.hs.unused; fi
74
75 # Here are any extra dependencies.
76
77 # C-files dependencies.
78