3 include ../../build/rules.make
4 export __SECURITY_BOOTSTRAP_DB=$(topdir)/class/lib/$(PROFILE)
8 ifneq (2.1, $(FRAMEWORK_VERSION))
10 resources/Asterisk.wav \
12 resources/Exclamation.wav \
14 resources/Question.wav
18 Test/System/test-uri-props.txt \
19 Test/System/test-uri-props-manual.txt \
20 Test/System/test-uri-relative-props.txt
22 TEST_MCS_FLAGS = -r:System.Drawing.dll -r:Mono.Security.dll -r:System.Data -r:System.Xml.dll -r:System.Core.dll -nowarn:618,672,219,67,169,612 \
23 $(foreach f, $(TEST_RESOURCES), -resource:$(f),$(notdir $(f)))
25 REFERENCE_SOURCES_FLAGS = -d:FEATURE_PAL,SYSTEM_NAMESPACE,MONO,PLATFORM_UNIX
26 LIB_MCS_FLAGS = -nowarn:618 -d:CONFIGURATION_2_0 $(REFERENCE_SOURCES_FLAGS) -unsafe $(RESOURCE_FILES:%=-resource:%)
27 TEST_MCS_FLAGS += -r:System.Configuration
29 RESOURCE_STRINGS = ../../../external/referencesource/System/System.txt
31 ifeq (2.1, $(FRAMEWORK_VERSION))
32 LIB_MCS_FLAGS += -d:INSIDE_SYSTEM
36 # MOBILE_PROFILE needs SECURITY_DEP, except for XAMMAC
39 ifneq ($(PROFILE),xammac)
40 LIB_MCS_FLAGS += -d:SECURITY_DEP
46 FINAL_MCS_FLAGS = -r:System.Configuration.dll -d:CONFIGURATION_DEP
50 # Flags used to build the secxml version of System.
52 ifeq (secxml/, $(intermediate))
53 LOCAL_MCS_FLAGS = -lib:$(bare_libdir)
54 LIB_REFS += System.Xml MonoSecurity=Mono.Security
55 LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP -r:PrebuiltSystem=$(bare_libdir)/System.dll
59 # Flags used to build the final version of System (when intermediate is not defined)
62 LIB_REFS += System.Xml MonoSecurity=Mono.Security
63 LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP -r:PrebuiltSystem=$(secxml_libdir)/System.dll $(FINAL_MCS_FLAGS)
67 Test/test-config-file \
68 Test/test-config-file-net-2.0 \
69 Test/System.Security.Cryptography.X509Certificates/pkits/ChangeLog \
70 Test/System.Security.Cryptography.X509Certificates/pkits/Makefile \
71 Test/System.Security.Cryptography.X509Certificates/pkits/README \
72 Test/System.Security.Cryptography.X509Certificates/pkits/x509build.cs \
76 include ../../build/library.make
78 system_library_deps := \
79 $(secxml_libdir)/System.dll \
80 $(the_libdir_base)System.Xml.dll \
81 $(the_libdir_base)Mono.Security.dll \
82 $(bare_libdir)/System.dll
85 system_library_deps += $(the_libdir_base)System.Configuration.dll
88 artifacts = $(system_library_deps) \
89 $(bare_libdir)/System.Xml.dll \
90 $(the_libdir_base)Mono.Security.dll \
91 $(the_libdir_base)System.Configuration.dll
93 .NOTPARALLEL: $(system_library_deps)
95 $(the_libdir_base)System.dll: $(system_library_deps)
97 ifeq (bare/,$(intermediate))
100 $(bare_libdir)/System.dll:
101 $(MAKE) intermediate=bare/ $(bare_libdir)/System.dll
104 ifneq (secxml/,$(intermediate))
105 $(secxml_libdir)/System.dll: $(bare_libdir)/System.dll $(bare_libdir)/System.Xml.dll $(the_libdir_base)Mono.Security.dll $(bare_libdir)/System.dll
106 $(MAKE) intermediate=secxml/ $(secxml_libdir)/System.dll
111 $(the_libdir_base)System.Xml.dll:
112 (cd ../System.XML; $(MAKE) $@)
114 $(bare_libdir)/System.Xml.dll:
115 (cd ../System.XML; $(MAKE) $@)
117 $(the_libdir_base)Mono.Security.dll:
118 (cd ../Mono.Security; $(MAKE))
120 $(the_libdir_base)System.Configuration.dll:
121 (cd ../System.Configuration; $(MAKE))
123 $(build_lib): $(CYCLIC_DEP_FILES)
125 $(test_lib): $(test_lib).config $(TEST_RESOURCES)
127 $(test_lib).config: Test/test-config-file
130 CLEAN_FILES = $(test_lib).config $(bare_libdir)/System.dll $(secxml_libdir)/System.dll $(bare_libdir)/System.dll.mdb $(secxml_libdir)/System.dll.mdb
132 # Helper target to run the perl regex test suite
134 $(MAKE) check FIXTURE=System.Text.RegularExpressions.PerlTest
138 rm -rf ../../class/lib/$(PROFILE)/bare ../../class/lib/$(PROFILE)/bare/ $(system_library_deps)
141 ifneq ($(PROFILE),basic)
143 $(MAKE) csproj-local intermediate=bare/
144 $(MAKE) csproj-local intermediate=secxml/