[project @ 2002-10-30 14:53:39 by ross]
[packages/old-time.git] / Makefile.nhc98
1 THISPKG = base
2 SEARCH  =
3
4 DIRS    = Data Control Control/Monad Debug System System/IO \
5           Foreign Foreign/C Foreign/Marshal
6
7 SRCS    = \
8         Data/Bits.hs Data/Bool.hs Data/Char.hs Data/Complex.hs \
9         Data/Either.hs Data/FiniteMap.hs Data/IORef.hs Data/Int.hs \
10         Data/Ix.hs Data/List.hs Data/Maybe.hs Data/PackedString.hs \
11         Data/Set.hs Data/Tuple.hs Data/Word.hs Data/Array.hs \
12         Control/Monad.hs Control/Monad/Fix.hs Control/Monad/Identity.hs \
13         Control/Monad/Trans.hs \
14         Debug/Trace.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/Mem.hs System/Cmd.hs \
18         Foreign/Ptr.hs Foreign/StablePtr.hs Foreign/Storable.hs \
19         Foreign/ForeignPtr.hs Foreign/C/Types.hs Foreign/C/TypesISO.hs \
20         Foreign/Marshal/Alloc.hs Foreign/Marshal/Array.hs \
21         Foreign/Marshal/Utils.hs Foreign/Marshal/Error.hs \
22         Foreign/C/String.hs
23
24 #       Data/Ratio.hs
25 #       System/Random.hs
26 #       Debug/QuickCheck.hs
27
28
29 # Here are the main rules.
30 include ../Makefile.common
31
32
33 # Here are the dependencies.
34 $(OBJDIR)/Data/FiniteMap.$O: $(OBJDIR)/Data/Maybe.$O
35 $(OBJDIR)/Data/Set.$O: $(OBJDIR)/Data/Maybe.$O $(OBJDIR)/Data/FiniteMap.$O
36 $(OBJDIR)/Data/Array.$O: $(OBJDIR)/Data/Ix.$O
37 $(OBJDIR)/System/IO.$O: $(OBJDIR)/System/IO/Error.$O
38 $(OBJDIR)/System/Random.$O: $(OBJDIR)/Data/Char.$O $(OBJDIR)/Data/IORef.$O \
39         $(OBJDIR)/System/IO/Unsafe.$O
40 $(OBJDIR)/Debug/Trace.$O: $(OBJDIR)/System/IO.$O $(OBJDIR)/System/IO/Unsafe.$O
41 $(OBJDIR)/Control/Monad/Fix.$O: $(OBJDIR)/System/IO.$O
42 $(OBJDIR)/Control/Monad/Identity.$O: $(OBJDIR)/Control/Monad.$O \
43         $(OBJDIR)/Control/Monad/Fix.$O
44 $(OBJDIR)/Foreign/Marshal/Alloc.$O:  $(OBJDIR)/Data/Maybe.$O \
45         $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
46         $(OBJDIR)/Foreign/C/Types.$O
47 $(OBJDIR)/Foreign/Marshal/Array.$O:  $(OBJDIR)/Control/Monad.$O \
48         $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
49         $(OBJDIR)/Foreign/Marshal/Alloc.$O $(OBJDIR)/Foreign/Marshal/Utils.$O
50 $(OBJDIR)/Foreign/Marshal/Utils.$O:  $(OBJDIR)/Data/Maybe.$O \
51         $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
52         $(OBJDIR)/Foreign/Marshal/Alloc.$O $(OBJDIR)/Foreign/C/Types.$O
53 $(OBJDIR)/Foreign/Marshal/Error.$O: $(OBJDIR)/Foreign/Ptr.$O
54 $(OBJDIR)/Foreign/C/String.$O: $(OBJDIR)/Data/Word.$O $(OBJDIR)/Foreign/Ptr.$O \
55         $(OBJDIR)/Foreign/Marshal/Array.$O $(OBJDIR)/Foreign/C/Types.$O 
56
57 # C-files dependencies.
58 Data/FiniteMap.$C: Data/Maybe.$C
59 Data/Set.$C:       Data/Maybe.$C Data/FiniteMap.$C
60 Data/Array.$C:     Data/Ix.$C
61 System/IO.$C:      System/IO/Error.$C
62 System/Random.$C:  Data/Char.$C Data/IORef.$C System/IO/Unsafe.$C
63 Debug/Trace.$C:    System/IO.$C System/IO/Unsafe.$C
64 Control/Monad/Fix.$C:      System/IO.$C
65 Control/Monad/Identity.$C: Control/Monad.$C Control/Monad/Fix.$C
66 Control/Monad/Trans.$C:    System/IO.$C
67 Foreign/Marshal/Alloc.$C:  Data/Maybe.$C Foreign/Ptr.$C Foreign/Storable.$C \
68         Foreign/C/Types.$C
69 Foreign/Marshal/Array.$C:  Control/Monad.$C Foreign/Ptr.$C Foreign/Storable.$C \
70         Foreign/Marshal/Alloc.$C Foreign/Marshal/Utils.$C
71 Foreign/Marshal/Utils.$C:  Data/Maybe.$C Foreign/Ptr.$C Foreign/Storable.$C \
72         Foreign/C/Types.$C Foreign/Marshal/Alloc.$C
73 Foreign/Marshal/Error.$C:  Foreign/Ptr.$C
74 Foreign/C/String.$C:       Data/Word.$C Foreign/Ptr.$C Foreign/C/Types.$C \
75         Foreign/Marshal/Array.$C