[project @ 2004-03-22 14:48:56 by malcolm]
[packages/base.git] / Makefile.nhc98
1 THISPKG = base
2 SEARCH  = -I$(TOPDIR)/targets/$(MACHINE) -Iinclude
3 EXTRA_H_FLAGS = +RTS -K6M -RTS
4
5 SRCS    = \
6         Data/Bits.hs Data/Bool.hs Data/Char.hs Data/Complex.hs \
7         Data/Either.hs Data/FiniteMap.hs Data/IORef.hs Data/Int.hs \
8         Data/Ix.hs Data/List.hs Data/Maybe.hs Data/PackedString.hs \
9         Data/Ratio.hs Data/Set.hs Data/Tuple.hs Data/Word.hs Data/Array.hs \
10         Data/HashTable.hs Data/Typeable.hs Data/Dynamic.hs \
11         Data/Monoid.hs Data/Queue.hs Data/Tree.hs \
12         Control/Monad.hs Control/Monad/Fix.hs \
13         Control/Arrow.hs Debug/Trace.hs \
14         NHC/SizedTypes.hs \
15         System/IO.hs System/IO/Error.hs System/IO/Unsafe.hs \
16         System/Environment.hs System/Exit.hs System/Locale.hs \
17         System/Directory.hs System/Mem.hs System/Cmd.hs System/Info.hs \
18         System/Console/GetOpt.hs System/Random.hs \
19         System/CPUTime.hsc System/Time.hsc \
20         Foreign/Ptr.hs Foreign/StablePtr.hs Foreign/Storable.hs \
21         Foreign/ForeignPtr.hs Foreign/C/Types.hs \
22         Foreign/Marshal/Alloc.hs Foreign/Marshal/Array.hs \
23         Foreign/Marshal/Utils.hs Foreign/Marshal/Error.hs \
24         Foreign/Marshal/Pool.hs Foreign/Marshal.hs \
25         Foreign/C/String.hs Foreign/C/Error.hs Foreign/C.hs Foreign.hs \
26         Text/PrettyPrint/HughesPJ.hs Text/PrettyPrint.hs \
27         Text/Html/BlockTable.hs Text/Html.hs \
28         Text/Read.hs Text/Show.hs Text/Show/Functions.hs
29
30 #       [Data/Dynamic.hs] Data/Generics.hs Data/STRef.hs Data/Unique.hs
31 #       Debug/QuickCheck.hs
32 #       System/Mem.hs System/Mem/StableName.hs System/Mem/Weak.hs
33 #       System/Posix/Types.hs System/Posix/Signals.hsc
34 #       Text/ParserCombinators/ReadP.hs Text/ParserCombinators/ReadPrec.hs
35 #       Text/Read/Lex.hs
36 #       Text/Regex/* Text/Regex.hs
37
38
39 # Here are the main rules.
40 include ../Makefile.common
41
42 # some extra rules
43 NHC/SizedTypes.hs: NHC/SizedTypes.hs.cpp
44         $(CC) -E $< >$@
45
46 # Here are the dependencies.
47 $(OBJDIR)/Data/FiniteMap.$O: $(OBJDIR)/Data/Maybe.$O
48 $(OBJDIR)/Data/Set.$O: $(OBJDIR)/Data/Maybe.$O $(OBJDIR)/Data/FiniteMap.$O
49 $(OBJDIR)/Data/Array.$O: $(OBJDIR)/Data/Ix.$O
50 $(OBJDIR)/Data/Dynamic.$O: $(OBJDIR)/Data/HashTable.$O \
51         $(OBJDIR)/Data/Typeable.$O
52 $(OBJDIR)/Data/HashTable.$O: $(OBJDIR)/Control/Monad.$O
53 $(OBJDIR)/Data/Int.$O: $(OBJDIR)/NHC/SizedTypes.$O
54 $(OBJDIR)/Data/Word.$O: $(OBJDIR)/NHC/SizedTypes.$O
55 $(OBJDIR)/NHC/SizedTypes.$O: $(OBJDIR)/Data/Bits.$O
56 $(OBJDIR)/System/IO.$O: $(OBJDIR)/System/IO/Error.$O
57 $(OBJDIR)/System/Random.$O: $(OBJDIR)/Data/Char.$O $(OBJDIR)/Data/IORef.$O \
58         $(OBJDIR)/System/IO/Unsafe.$O $(OBJDIR)/Foreign/Ptr.$O
59 $(OBJDIR)/Debug/Trace.$O: $(OBJDIR)/System/IO.$O $(OBJDIR)/System/IO/Unsafe.$O
60 $(OBJDIR)/Control/Monad/Fix.$O: $(OBJDIR)/System/IO.$O
61 $(OBJDIR)/Foreign/Marshal/Alloc.$O:  $(OBJDIR)/Data/Maybe.$O \
62         $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
63         $(OBJDIR)/Foreign/C/Types.$O
64 $(OBJDIR)/Foreign/Marshal/Array.$O:  $(OBJDIR)/Control/Monad.$O \
65         $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
66         $(OBJDIR)/Foreign/Marshal/Alloc.$O $(OBJDIR)/Foreign/Marshal/Utils.$O
67 $(OBJDIR)/Foreign/Marshal/Utils.$O:  $(OBJDIR)/Data/Maybe.$O \
68         $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
69         $(OBJDIR)/Foreign/Marshal/Alloc.$O $(OBJDIR)/Foreign/C/Types.$O
70 $(OBJDIR)/Foreign/Marshal/Error.$O: $(OBJDIR)/Foreign/Ptr.$O
71 $(OBJDIR)/Foreign/C/String.$O: $(OBJDIR)/Data/Word.$O $(OBJDIR)/Foreign/Ptr.$O \
72         $(OBJDIR)/Foreign/Marshal/Array.$O $(OBJDIR)/Foreign/C/Types.$O 
73
74 # C-files dependencies.
75 Data/FiniteMap.$C: Data/Maybe.$C
76 Data/Set.$C:       Data/Maybe.$C Data/FiniteMap.$C
77 Data/Array.$C:     Data/Ix.$C
78 Data/Dynamic.$C:   Data/HashTable.$C Data/Typeable.$C
79 Data/HashTable.$C: Control/Monad.$C
80 Data/Int.$C:       NHC/SizedTypes.$C
81 Data/Word.$C:      NHC/SizedTypes.$C
82 NHC/SizedTypes.$C: Data/Bits.$C
83 System/IO.$C:      System/IO/Error.$C
84 System/Random.$C:  Data/Char.$C Data/IORef.$C System/IO/Unsafe.$C
85 Debug/Trace.$C:    System/IO.$C System/IO/Unsafe.$C
86 Control/Monad/Fix.$C:      System/IO.$C
87 Foreign/Marshal/Alloc.$C:  Data/Maybe.$C Foreign/Ptr.$C Foreign/Storable.$C \
88         Foreign/C/Types.$C
89 Foreign/Marshal/Array.$C:  Control/Monad.$C Foreign/Ptr.$C Foreign/Storable.$C \
90         Foreign/Marshal/Alloc.$C Foreign/Marshal/Utils.$C
91 Foreign/Marshal/Utils.$C:  Data/Maybe.$C Foreign/Ptr.$C Foreign/Storable.$C \
92         Foreign/C/Types.$C Foreign/Marshal/Alloc.$C
93 Foreign/Marshal/Error.$C:  Foreign/Ptr.$C
94 Foreign/C/String.$C:       Data/Word.$C Foreign/Ptr.$C Foreign/C/Types.$C \
95         Foreign/Marshal/Array.$C
96