Remove old test outputs
[packages/base.git] / Makefile.nhc98
1 THISPKG = base
2 SEARCH  = -I$(TOPDIR)/targets/$(MACHINE) -Iinclude \
3           -I../../prelude/PreludeIO -I../../prelude/`$(LOCAL)harch`
4 EXTRA_H_FLAGS   = -H4M -K6M
5 EXTRA_C_FLAGS   = -D__NHC__
6 EXTRA_HBC_FLAGS = -H16M -A1M
7
8 DIRS    = \
9         Data Debug Control Control/Monad System System/IO System/Console \
10         Text Text/Html Text/Show Text/ParserCombinators Text/Regex \
11         Foreign Foreign/Marshal Foreign/C NHC Unsafe System/Posix \
12         Control/Exception GHC GHC/IO
13
14 SRCS    = \
15         Data/Bits.hs Data/Bool.hs Data/Char.hs Data/Complex.hs \
16         Data/Either.hs Data/IORef.hs Data/Int.hs \
17         Data/Ix.hs Data/List.hs Data/Maybe.hs \
18         Data/Ratio.hs Data/Tuple.hs Data/Word.hs \
19         Data/HashTable.hs Data/Typeable.hs Data/Dynamic.hs \
20         Data/Monoid.hs Data/String.hs \
21         Data/Eq.hs Data/Ord.hs Data/Fixed.hs \
22         Data/Functor.hs Data/Foldable.hs Data/Traversable.hs \
23         Data/Function.hs \
24         Control/Monad.hs Control/Monad/Fix.hs Control/Monad/Instances.hs \
25         Control/Arrow.hs Control/Applicative.hs \
26         Control/Exception.hs Control/Exception/Base.hs Control/Category.hs \
27         Debug/Trace.hs \
28         NHC/SizedTypes.hs NHC/PosixTypes.hsc \
29         System/IO.hs System/IO/Error.hs System/IO/Unsafe.hs \
30         System/Environment.hs System/Exit.hs \
31         System/Mem.hs System/Info.hs \
32         System/CPUTime.hsc \
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         GHC/IO/Device.hs \
45         System/Posix/Types.hs System/Posix/Internals.hs \
46         System/Console/GetOpt.hs \
47
48 #       Data/String.hs
49 #       Text/ParserCombinators/ReadPrec.hs
50 #       Text/Read/Lex.hs
51
52 # now moved to separate packages:
53 #       System/Directory.hs \
54 #       System/Directory/Internals.hs \
55 #       Text/PrettyPrint/HughesPJ.hs Text/PrettyPrint.hs \
56 #       System/Random.hs System/Locale.hs System/Time.hsc \
57 #       System/Cmd.hs \
58 #       System/Timeout.hs \
59
60 #       Text/Regex/Posix.hsc Text/Regex.hs \
61 #       [Data/Dynamic.hs] Data/Generics.hs Data/STRef.hs Data/Unique.hs
62 #       System/Mem.hs System/Mem/StableName.hs System/Mem/Weak.hs
63 #       System/Posix/Types.hs System/Posix/Signals.hsc
64 #       System/FilePath.hs
65 #       dirUtils.c
66
67
68 # Here are the main rules.
69 include ../Makefile.common
70
71 # some extra rules
72 extra:
73         if [ -f Prelude.hs ]; then mv Prelude.hs Prelude.hs.unused; fi
74         if [ -f Numeric.hs ]; then mv Numeric.hs Numeric.hs.unused; fi
75         $(INSTALL) include/Typeable.h $(INCDIR)/packages/$(THISPKG)
76         $(INSTALL) include/Nhc98BaseConfig.h $(INCDIR)/packages/$(THISPKG)
77 extracfiles:
78         if [ -f Prelude.hs ]; then mv Prelude.hs Prelude.hs.unused; fi
79         if [ -f Numeric.hs ]; then mv Numeric.hs Numeric.hs.unused; fi
80         $(INSTALL) include/Typeable.h $(INCDIR)/packages/$(THISPKG)
81         $(INSTALL) include/Nhc98BaseConfig.h $(INCDIR)/packages/$(THISPKG)
82
83 # Here are any extra dependencies.
84
85 # C-files dependencies.
86