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