New test.
[mono.git] / mcs / class / Makefile
1 thisdir = class
2
3 MONO_POSIX := Mono.Posix
4 MONO_SYMBOLWRITER := Mono.CompilerServices.SymbolWriter
5
6 bootstrap_dirs := \
7         corlib                                  \
8         System                                  \
9         System.XML                              \
10         Mono.Security                           \
11         System.Security                         \
12         System.Configuration                    \
13         System                                  \
14         $(MONO_SYMBOLWRITER)
15
16 # Note that Mono.Security and System.Security aren't listed.
17 # We may have to add those if 'mcs' starts using them.
18 basic_SUBDIRS := corlib System System.XML System
19
20 net_1_1_bootstrap_SUBDIRS := $(bootstrap_dirs) PEAPI
21 net_2_0_bootstrap_SUBDIRS := $(bootstrap_dirs) PEAPI
22
23 net_1_1_java_SUBDIRS = \
24         System.Xml                                      \
25         System.Data                                     \
26         System.Drawing                                  \
27         Novell.Directory.Ldap                           \
28         System.DirectoryServices                        \
29         System.Runtime.Serialization.Formatters.Soap    \
30         System.Runtime.Remoting
31
32 common_dirs := \
33         corlib                          \
34         System                          \
35         System.XML                      \
36         Mono.Security                   \
37         System                          \
38         System.Security                 \
39         System.Configuration            \
40         System                          \
41         I18N                            \
42         System.Drawing                  \
43         System.EnterpriseServices       \
44         Mono.C5                         \
45         Mono.Data.Tds                   \
46         System.Transactions             \
47         System.Data                     \
48         Mono.Data                       \
49         Mono.GetOptions                 \
50         System.Web                      \
51         System.Web.Services             \
52         System.Web                      \
53         System.Runtime.Serialization.Formatters.Soap \
54         System.Runtime.Remoting         \
55         System.Configuration.Install    \
56         System.Management               \
57         $(MONO_SYMBOLWRITER)            \
58         $(MONO_POSIX)                   \
59         Mono.Data.SqliteClient          \
60         Mono.Data.SybaseClient          \
61         Mono.Data.TdsClient             \
62         System.Data.OracleClient        \
63         Accessibility                   \
64         Microsoft.VisualC               \
65         Cscompmgd                       \
66         Managed.Windows.Forms           \
67         System.Design                   \
68         PEAPI                           \
69         Npgsql                          \
70         Compat.ICSharpCode.SharpZipLib  \
71         ICSharpCode.SharpZipLib         \
72         Compat.ICSharpCode.SharpZipLib  \
73         ByteFX.Data                     \
74         Commons.Xml.Relaxng             \
75         Novell.Directory.Ldap           \
76         Mono.Security.Win32             \
77         System.DirectoryServices        \
78         System.Messaging                \
79         System.ServiceProcess           \
80         System.Drawing.Design           \
81         Mono.Http                       \
82         Microsoft.Vsa                   \
83         Mono.Cairo                      \
84         IBM.Data.DB2                    \
85         Microsoft.JScript               \
86         CustomMarshalers
87
88 default_dirs := FirebirdSql.Data.Firebird
89
90 net_2_0_dirs := \
91         Microsoft.Build.Framework       \
92         Microsoft.Build.Utilities       \
93         Microsoft.Build.Engine          \
94         Microsoft.Build.Tasks
95
96 default_SUBDIRS := $(common_dirs) $(default_dirs)
97 net_2_0_SUBDIRS := $(common_dirs) $(net_2_0_dirs)
98
99 include ../build/rules.make
100
101 SUBDIRS = $(common_dirs) $(default_dirs) $(net_2_0_dirs)
102
103 # These libraries below are either unimplemented or don't compile, but
104 # I wrote makefiles for them.
105
106 BROKEN_SUBDIRS =
107
108 DIST_ONLY_SUBDIRS = \
109         $(BROKEN_SUBDIRS)
110
111 # No new makefiles for: System.Messaging, System.Web.Mobile,
112 # System.ServiceProcess
113
114 DISTFILES = \
115         ecma.pub                \
116         mono.pub                \
117         msfinal.pub             \
118         mono.snk                \
119         LICENSE                 \
120         README                  \
121         doc/API-notes           \
122         doc/NUnitGuidelines     \
123         doc/TemplateTest.cs     \
124         notes/BitVecto32.txt    \
125         $(monolite_files)
126
127 .PHONY: all-local $(STD_TARGETS:=-local)
128 all-local $(STD_TARGETS:=-local):
129         @:
130
131 basic_files = mcs.exe mscorlib.dll System.dll System.Xml.dll
132 monolite_files = $(basic_files:%=lib/monolite/%)
133
134 DIST_PROFILE_DIRS = basic net_1_1_bootstrap default net_2_0_bootstrap net_2_0
135 COMPAT_PROFILE_DIRS = default net_2_0
136
137 lib/monolite:
138         $(MKINSTALLDIRS) $@
139
140 $(monolite_files): lib/monolite/%: lib/basic/% lib/monolite
141         cp -p $< $@
142
143 $(basic_files:%=lib/basic/%):
144         cd $(topdir) && $(MAKE) profile-do--basic--all
145
146 dist-default: $(monolite_files)
147 dist-local: dist-default
148         -$(MKINSTALLDIRS) $(DIST_PROFILE_DIRS:%=$(distdir)/lib/%) $(COMPAT_PROFILE_DIRS:%=$(distdir)/compat/%)