2004-09-11 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / class / System / Makefile
1 thisdir = class/System
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 LIBRARY = System.dll
6 LIBRARY_USE_INTERMEDIATE_FILE = yes
7
8 # Because System.dll and Syste.Xml.dll have cyclic dependency we need two-pass build.
9 # 1st pass - build System.dll without System.Xml.dll reference
10 # 2nd pass - build System.dll with System.Xml.dll reference
11
12 LIB_MCS_FLAGS = /r:$(corlib)
13 TEST_MCS_FLAGS = /nowarn:1595 /nowarn:0618
14
15 CYCLIC_DEP := System.Xml.dll
16 CYCLIC_DEP_FILE := $(wildcard ../lib/$(PROFILE)/$(CYCLIC_DEP))
17
18 EXTRA_DISTFILES = \
19         System.Text.RegularExpressions/notes.txt        \
20         System.ComponentModel.Design/Changelog          \
21         Test/test-config-file
22
23 ifdef USE_BOOT_COMPILE
24 LIBRARY_COMPILE = $(BOOT_COMPILE)
25 endif
26
27 include ../../build/library.make
28
29 ifdef CYCLIC_DEP_FILE
30 LIB_MCS_FLAGS += /define:XML_DEP /r:$(CYCLIC_DEP)
31 $(the_lib): $(CYCLIC_DEP_FILE)
32 else
33 # First pass: Build temporary System.dll without depending on System.Xml.dll
34 $(the_lib): echo-warning
35 .PHONY: echo-warning
36 echo-warning:
37         @echo "** Building temporary System.dll without parts that depend on System.Xml"
38 endif