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