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 ifndef NO_MONO_SECURITY
23 MONO_SECURITY=Mono.Security
24 MONO_SECURITY_REF=MonoSecurity=Mono.Security
25 MONO_SECURITY_DLL=$(the_libdir_base)Mono.Security.dll
29 TEST_LIB_REFS = System.Drawing $(MONO_SECURITY) System.Data System.Xml System.Core System.Configuration
31 TEST_LIB_REFS = $(MONO_SECURITY) System.Data System.Xml System.Core
34 TEST_MCS_FLAGS = -nowarn:618,672,219,67,169,612 \
35 $(foreach f, $(TEST_RESOURCES), -resource:$(f),$(notdir $(f)))
37 REFERENCE_SOURCES_FLAGS = -d:FEATURE_PAL,SYSTEM_NAMESPACE,MONO,PLATFORM_UNIX
38 ifndef NO_PROCESS_START
39 REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_PROCESS_START
40 TEST_MCS_FLAGS += -d:MONO_FEATURE_PROCESS_START
43 LIB_MCS_FLAGS = -d:CONFIGURATION_2_0 $(REFERENCE_SOURCES_FLAGS) -unsafe $(RESOURCE_FILES:%=-resource:%)
45 ifndef PROFILE_DISABLE_BTLS
48 LIB_MCS_FLAGS += -d:MONO_FEATURE_BTLS
53 ifndef NO_THREAD_ABORT
54 REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_THREAD_ABORT
55 TEST_MCS_FLAGS += -d:MONO_FEATURE_THREAD_ABORT
58 ifndef NO_THREAD_SUSPEND_RESUME
59 REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_THREAD_SUSPEND_RESUME
60 TEST_MCS_FLAGS += -d:MONO_FEATURE_THREAD_SUSPEND_RESUME
63 ifndef NO_MULTIPLE_APPDOMAINS
64 REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_MULTIPLE_APPDOMAINS
65 TEST_MCS_FLAGS += -d:MONO_FEATURE_MULTIPLE_APPDOMAINS
68 TXT_RESOURCE_STRINGS = ../referencesource/System/System.txt
71 # MOBILE_PROFILE needs SECURITY_DEP
74 LIB_MCS_FLAGS += -d:INSIDE_SYSTEM -d:SECURITY_DEP -nowarn:618,1635
76 EXTERN_ALIAS_FLAGS = -d:MONO_SECURITY_ALIAS
80 # Flags used to build the secxml version of System.
82 ifeq (secxml/, $(intermediate))
84 LIB_REFS += bare/System.Xml $(MONO_SECURITY_REF)
85 LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP $(EXTERN_ALIAS_FLAGS)
89 # Flags used to build the final version of System (when intermediate is not defined)
92 LIB_REFS += System.Xml $(MONO_SECURITY_REF)
93 LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP $(EXTERN_ALIAS_FLAGS)
96 LIB_REFS += System.Configuration
97 LIB_MCS_FLAGS += -d:CONFIGURATION_DEP
103 Test/test-config-file \
104 Test/test-config-file-net-2.0 \
105 Test/System.Security.Cryptography.X509Certificates/pkits/Makefile \
106 Test/System.Security.Cryptography.X509Certificates/pkits/README \
107 Test/System.Security.Cryptography.X509Certificates/pkits/x509build.cs \
111 include ../../build/library.make
113 system_library_deps := \
114 $(secxml_libdir)/System.dll \
115 $(the_libdir_base)System.Xml.dll \
116 $(MONO_SECURITY_DLL) \
117 $(bare_libdir)/System.dll
119 ifndef MOBILE_PROFILE
120 system_library_deps += $(the_libdir_base)System.Configuration.dll
123 artifacts = $(system_library_deps) \
124 $(bare_libdir)/System.Xml.dll \
125 $(MONO_SECURITY_DLL) \
126 $(the_libdir_base)System.Configuration.dll
128 .NOTPARALLEL: $(system_library_deps)
130 $(the_libdir_base)System.dll: $(system_library_deps) ../Mono.Security/Makefile
132 ifeq (bare/,$(intermediate))
135 $(bare_libdir)/System.dll:
136 $(MAKE) intermediate=bare/ $(bare_libdir)/System.dll
139 ifneq (secxml/,$(intermediate))
140 $(secxml_libdir)/System.dll: $(bare_libdir)/System.dll $(bare_libdir)/System.Xml.dll $(MONO_SECURITY_DLL) $(bare_libdir)/System.dll
141 $(MAKE) intermediate=secxml/ $(secxml_libdir)/System.dll
146 $(the_libdir_base)System.Xml.dll:
147 (cd ../System.XML; $(MAKE) $@)
149 $(bare_libdir)/System.Xml.dll:
150 (cd ../System.XML; $(MAKE) $@)
152 $(the_libdir_base)Mono.Security.dll: ../Mono.Security/Makefile
153 (cd ../Mono.Security; $(MAKE))
155 $(the_libdir_base)System.Configuration.dll:
156 (cd ../System.Configuration; $(MAKE))
158 $(build_lib): $(CYCLIC_DEP_FILES)
160 $(test_lib): $(test_lib).config $(TEST_RESOURCES)
162 $(test_lib).config: Test/test-config-file
165 CLEAN_FILES = $(test_lib).config $(bare_libdir)/System.dll $(secxml_libdir)/System.dll $(bare_libdir)/System.dll.mdb $(secxml_libdir)/System.dll.mdb
167 # Helper target to run the perl regex test suite
169 $(MAKE) check FIXTURE=System.Text.RegularExpressions.PerlTest
173 rm -rf ../../class/lib/$(PROFILE)/bare ../../class/lib/$(PROFILE)/bare/ $(system_library_deps)
176 ifneq ($(PROFILE),basic)
178 $(MAKE) csproj-local intermediate=bare/
179 $(MAKE) csproj-local intermediate=secxml/