In build:
[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 default_SUBDIRS := \
33         corlib                          \
34         System                          \
35         System.XML                      \
36         Mono.Security                   \
37         System.Configuration    \
38         System                          \
39         System.Security                 \
40         I18N                            \
41         System.Drawing                  \
42         System.EnterpriseServices       \
43         Mono.C5                         \
44         Mono.Data.Tds                   \
45         System.Data                     \
46         Mono.Data                       \
47         Mono.GetOptions                 \
48         System.Web                      \
49         System.Web.Services             \
50         System.Runtime.Serialization.Formatters.Soap \
51         System.Runtime.Remoting         \
52         System.Configuration.Install    \
53         System.Management               \
54         $(MONO_SYMBOLWRITER)            \
55         $(MONO_POSIX)                   \
56         Mono.Data.SqliteClient          \
57         Mono.Data.SybaseClient          \
58         Mono.Data.TdsClient             \
59         System.Data.OracleClient        \
60         Accessibility                   \
61         Microsoft.VisualC               \
62         Cscompmgd                       \
63         Managed.Windows.Forms           \
64         Microsoft.VisualBasic           \
65         System.Design                   \
66         PEAPI                           \
67         Npgsql                          \
68         ICSharpCode.SharpZipLib         \
69         Compat.ICSharpCode.SharpZipLib  \
70         ByteFX.Data                     \
71         Commons.Xml.Relaxng             \
72         Novell.Directory.Ldap           \
73         Mono.Security.Win32             \
74         System.DirectoryServices        \
75         System.Messaging                \
76         System.ServiceProcess           \
77         System.Drawing.Design           \
78         Mono.Http                       \
79         Microsoft.Vsa                   \
80         Mono.Cairo                      \
81         IBM.Data.DB2                    \
82         Microsoft.JScript               \
83         FirebirdSql.Data.Firebird
84
85 net_2_0_ONLY_SUBDIRS := \
86         Microsoft.Build.Framework       \
87         Microsoft.Build.Utilities       \
88         Microsoft.Build.Engine          \
89         Microsoft.Build.Tasks
90
91 net_2_0_SUBDIRS := $(default_SUBDIRS) $(net_2_0_ONLY_SUBDIRS)
92
93 include ../build/rules.make
94
95 SUBDIRS = $(default_SUBDIRS)
96
97 # These libraries below are either unimplemented or don't compile, but
98 # I wrote makefiles for them.
99
100 BROKEN_SUBDIRS = \
101         Custommarshalers                \
102         Mono.Globalization
103
104 DIST_ONLY_SUBDIRS = \
105         $(net_2_0_ONLY_SUBDIRS) \
106         $(BROKEN_SUBDIRS)
107
108 # No new makefiles for: System.Messaging, System.Web.Mobile,
109 # System.ServiceProcess
110
111 DISTFILES = \
112         ecma.pub                \
113         mono.pub                \
114         msfinal.pub             \
115         mono.snk                \
116         LICENSE                 \
117         README                  \
118         doc/API-notes           \
119         doc/NUnitGuidelines     \
120         doc/TemplateTest.cs     \
121         notes/BitVecto32.txt    \
122         $(monolite_files)
123
124 .PHONY: all-local $(STD_TARGETS:=-local)
125 all-local $(STD_TARGETS:=-local):
126         @:
127
128 basic_files = mcs.exe mscorlib.dll System.dll System.Xml.dll
129 monolite_files = $(basic_files:%=lib/monolite/%)
130
131 DIST_PROFILE_DIRS = basic net_1_1_bootstrap default net_2_0_bootstrap net_2_0
132
133 lib/monolite:
134         $(MKINSTALLDIRS) $@
135
136 $(monolite_files): lib/monolite/%: lib/basic/% lib/monolite
137         cp -p $< $@
138
139 $(basic_files:%=lib/basic/%):
140         cd $(topdir) && $(MAKE) profile-do--basic--all
141
142 dist-default: $(monolite_files)
143 dist-local: dist-default
144         -$(MKINSTALLDIRS) $(DIST_PROFILE_DIRS:%=$(distdir)/lib/%)