[project @ 2003-08-08 10:55:22 by malcolm]
[packages/old-time.git] / Makefile.nhc98
1 THISPKG = base
2 SEARCH  = -I$(TOPDIR)/targets/$(MACHINE)
3
4 SRCS    = \
5         Data/Bits.hs Data/Bool.hs Data/Char.hs Data/Complex.hs \
6         Data/Either.hs Data/FiniteMap.hs Data/IORef.hs Data/Int.hs \
7         Data/Ix.hs Data/List.hs Data/Maybe.hs Data/PackedString.hs \
8         Data/Ratio.hs Data/Set.hs Data/Tuple.hs Data/Word.hs Data/Array.hs \
9         Data/HashTable.hs Data/Typeable.hs Data/Dynamic.hs \
10         Data/Monoid.hs Data/Tree.hs \
11         Control/Monad.hs Control/Monad/Fix.hs Control/Monad/Trans.hs \
12         Control/Arrow.hs Debug/Trace.hs \
13         NHC/SizedTypes.hs \
14         System/IO.hs System/IO/Error.hs System/IO/Unsafe.hs \
15         System/Environment.hs System/Exit.hs System/Locale.hs \
16         System/Directory.hs System/Mem.hs System/Cmd.hs System/Info.hs \
17         System/Console/GetOpt.hs System/Random.hs \
18         Foreign/Ptr.hs Foreign/StablePtr.hs Foreign/Storable.hs \
19         Foreign/ForeignPtr.hs Foreign/C/Types.hs \
20         Foreign/Marshal/Alloc.hs Foreign/Marshal/Array.hs \
21         Foreign/Marshal/Utils.hs Foreign/Marshal/Error.hs \
22         Foreign/Marshal/Pool.hs Foreign/Marshal.hs \
23         Foreign/C/String.hs Foreign/C/Error.hs Foreign/C.hs Foreign.hs \
24         Text/PrettyPrint/HughesPJ.hs Text/PrettyPrint.hs \
25         Text/Html/BlockTable.hs Text/Html.hs \
26         Text/Read.hs Text/Show.hs Text/Show/Functions.hs
27
28 #       [Data/Dynamic.hs] Data/Generics.hs Data/STRef.hs Data/Unique.hs
29 #       Control/Monad/Identity.hs
30 #       Debug/QuickCheck.hs
31 #       System/CPUTime.hsc System/Time.hsc
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
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)/Control/Monad/Identity.$O: $(OBJDIR)/Control/Monad.$O \
62         $(OBJDIR)/Control/Monad/Fix.$O
63 $(OBJDIR)/Foreign/Marshal/Alloc.$O:  $(OBJDIR)/Data/Maybe.$O \
64         $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
65         $(OBJDIR)/Foreign/C/Types.$O
66 $(OBJDIR)/Foreign/Marshal/Array.$O:  $(OBJDIR)/Control/Monad.$O \
67         $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
68         $(OBJDIR)/Foreign/Marshal/Alloc.$O $(OBJDIR)/Foreign/Marshal/Utils.$O
69 $(OBJDIR)/Foreign/Marshal/Utils.$O:  $(OBJDIR)/Data/Maybe.$O \
70         $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
71         $(OBJDIR)/Foreign/Marshal/Alloc.$O $(OBJDIR)/Foreign/C/Types.$O
72 $(OBJDIR)/Foreign/Marshal/Error.$O: $(OBJDIR)/Foreign/Ptr.$O
73 $(OBJDIR)/Foreign/C/String.$O: $(OBJDIR)/Data/Word.$O $(OBJDIR)/Foreign/Ptr.$O \
74         $(OBJDIR)/Foreign/Marshal/Array.$O $(OBJDIR)/Foreign/C/Types.$O 
75
76 # C-files dependencies.
77 Data/FiniteMap.$C: Data/Maybe.$C
78 Data/Set.$C:       Data/Maybe.$C Data/FiniteMap.$C
79 Data/Array.$C:     Data/Ix.$C
80 Data/Dynamic.$C:   Data/HashTable.$C Data/Typeable.$C
81 Data/HashTable.$C: Control/Monad.$C
82 Data/Int.$C:       NHC/SizedTypes.$C
83 Data/Word.$C:      NHC/SizedTypes.$C
84 NHC/SizedTypes.$C: Data/Bits.$C
85 System/IO.$C:      System/IO/Error.$C
86 System/Random.$C:  Data/Char.$C Data/IORef.$C System/IO/Unsafe.$C
87 Debug/Trace.$C:    System/IO.$C System/IO/Unsafe.$C
88 Control/Monad/Fix.$C:      System/IO.$C
89 Control/Monad/Identity.$C: Control/Monad.$C Control/Monad/Fix.$C
90 Control/Monad/Trans.$C:    System/IO.$C
91 Foreign/Marshal/Alloc.$C:  Data/Maybe.$C Foreign/Ptr.$C Foreign/Storable.$C \
92         Foreign/C/Types.$C
93 Foreign/Marshal/Array.$C:  Control/Monad.$C Foreign/Ptr.$C Foreign/Storable.$C \
94         Foreign/Marshal/Alloc.$C Foreign/Marshal/Utils.$C
95 Foreign/Marshal/Utils.$C:  Data/Maybe.$C Foreign/Ptr.$C Foreign/Storable.$C \
96         Foreign/C/Types.$C Foreign/Marshal/Alloc.$C
97 Foreign/Marshal/Error.$C:  Foreign/Ptr.$C
98 Foreign/C/String.$C:       Data/Word.$C Foreign/Ptr.$C Foreign/C/Types.$C \
99         Foreign/Marshal/Array.$C
100