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 LIB_MCS_FLAGS = -nowarn:618 -d:CONFIGURATION_2_0 -unsafe $(RESOURCE_FILES:%=-resource:%)
26 TEST_MCS_FLAGS += -r:System.Configuration
27 PROFILE_ANY_MOBILE := $(filter monotouch monotouch_runtime monodroid xammac mobile mobile_static, $(PROFILE))
29 ifeq (2.1, $(FRAMEWORK_VERSION))
30 LIB_MCS_FLAGS += -d:INSIDE_SYSTEM
32 ifeq (monotouch, $(subst _runtime,,$(PROFILE)))
33 LIB_MCS_FLAGS += -d:SECURITY_DEP
35 ifeq (monodroid, $(PROFILE))
36 LIB_MCS_FLAGS += -d:SECURITY_DEP
38 ifndef PROFILE_ANY_MOBILE
39 FINAL_MCS_FLAGS = -r:System.Configuration.dll -d:CONFIGURATION_DEP
43 # Flags used to build the secxml version of System.
45 ifeq (secxml/, $(intermediate))
46 LOCAL_MCS_FLAGS = -lib:$(bare_libdir)
47 LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP -r:PrebuiltSystem=$(bare_libdir)/System.dll -r:System.Xml.dll -r:MonoSecurity=Mono.Security.dll
51 # Flags used to build the final version of System (when intermediate is not defined)
54 LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP -r:PrebuiltSystem=$(secxml_libdir)/System.dll -r:System.Xml.dll -r:MonoSecurity=Mono.Security.dll $(FINAL_MCS_FLAGS)
58 System.Text.RegularExpressions/notes.txt \
59 System.ComponentModel.Design/Changelog \
60 Test/test-config-file \
61 Test/test-config-file-net-2.0 \
62 Test/System.Security.Cryptography.X509Certificates/pkits/ChangeLog \
63 Test/System.Security.Cryptography.X509Certificates/pkits/Makefile \
64 Test/System.Security.Cryptography.X509Certificates/pkits/README \
65 Test/System.Security.Cryptography.X509Certificates/pkits/x509build.cs \
69 include ../../build/library.make
71 system_library_deps := \
72 $(secxml_libdir)/System.dll \
73 $(the_libdir_base)System.Xml.dll \
74 $(the_libdir_base)Mono.Security.dll \
75 $(bare_libdir)/System.dll
77 ifndef PROFILE_ANY_MOBILE
78 system_library_deps += $(the_libdir_base)System.Configuration.dll
81 artifacts = $(system_library_deps) \
82 $(bare_libdir)/System.Xml.dll \
83 $(the_libdir_base)Mono.Security.dll \
84 $(the_libdir_base)System.Configuration.dll
86 .NOTPARALLEL: $(system_library_deps)
88 $(the_libdir_base)System.dll: $(system_library_deps)
90 ifeq (bare/,$(intermediate))
93 $(bare_libdir)/System.dll:
94 $(MAKE) intermediate=bare/ $(bare_libdir)/System.dll
97 ifneq (secxml/,$(intermediate))
98 $(secxml_libdir)/System.dll: $(bare_libdir)/System.dll $(bare_libdir)/System.Xml.dll $(the_libdir_base)Mono.Security.dll $(bare_libdir)/System.dll
99 $(MAKE) intermediate=secxml/ $(secxml_libdir)/System.dll
104 $(the_libdir_base)System.Xml.dll:
105 (cd ../System.XML; $(MAKE) $@)
107 $(bare_libdir)/System.Xml.dll:
108 (cd ../System.XML; $(MAKE) $@)
110 $(the_libdir_base)Mono.Security.dll:
111 (cd ../Mono.Security; $(MAKE))
113 $(the_libdir_base)System.Configuration.dll:
114 (cd ../System.Configuration; $(MAKE))
116 $(build_lib): $(CYCLIC_DEP_FILES)
118 $(test_lib): $(test_lib).config $(TEST_RESOURCES)
120 ifeq (net_2_0, $(PROFILE))
121 $(test_lib).config: Test/test-config-file-net-2.0
124 $(test_lib).config: Test/test-config-file
128 CLEAN_FILES = $(test_lib).config $(bare_libdir)/System.dll $(secxml_libdir)/System.dll $(bare_libdir)/System.dll.mdb $(secxml_libdir)/System.dll.mdb
130 # run the PKITS tests only if the data was installed/activated, otherwise ignore them
131 ifeq (net_2_0, $(PROFILE))
132 pkits_files := $(wildcard Test/System.Security.Cryptography.X509Certificates/pkits/hint)
134 TEST_HARNESS_EXCLUDES = -exclude=$(PLATFORM_TEST_HARNESS_EXCLUDES)NotWorking,ValueAdd,CAS,InetAccess,PKITS
135 TEST_HARNESS_EXCLUDES_ONDOTNET = -exclude=$(PLATFORM_TEST_HARNESS_EXCLUDES)NotDotNet,CAS,PKITS
139 # Helper target to run the perl regex test suite
141 $(MAKE) check FIXTURE=System.Text.RegularExpressions.PerlTest
145 rm -rf ../../class/lib/$(PROFILE)/bare ../../class/lib/$(PROFILE)/bare/ $(system_library_deps)
148 ifneq ($(PROFILE),basic)
150 $(MAKE) csproj-local intermediate=bare/
151 $(MAKE) csproj-local intermediate=secxml/