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
23 TEST_LIB_REFS = System.Drawing Mono.Security System.Data System.Xml System.Core System.Configuration
25 TEST_LIB_REFS = Mono.Security System.Data System.Xml System.Core
28 TEST_MCS_FLAGS = -nowarn:618,672,219,67,169,612 \
29 $(foreach f, $(TEST_RESOURCES), -resource:$(f),$(notdir $(f)))
31 REFERENCE_SOURCES_FLAGS = -d:FEATURE_PAL,SYSTEM_NAMESPACE,MONO,PLATFORM_UNIX
32 ifndef NO_PROCESS_START
33 REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_PROCESS_START
34 TEST_MCS_FLAGS += -d:MONO_FEATURE_PROCESS_START
37 LIB_MCS_FLAGS = -nowarn:618 -d:CONFIGURATION_2_0 $(REFERENCE_SOURCES_FLAGS) -unsafe $(RESOURCE_FILES:%=-resource:%)
39 ifndef NO_THREAD_ABORT
40 REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_THREAD_ABORT
41 TEST_MCS_FLAGS += -d:MONO_FEATURE_THREAD_ABORT
44 ifndef NO_THREAD_SUSPEND_RESUME
45 REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_THREAD_SUSPEND_RESUME
46 TEST_MCS_FLAGS += -d:MONO_FEATURE_THREAD_SUSPEND_RESUME
49 ifndef NO_MULTIPLE_APPDOMAINS
50 REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_MULTIPLE_APPDOMAINS
51 TEST_MCS_FLAGS += -d:MONO_FEATURE_MULTIPLE_APPDOMAINS
54 TXT_RESOURCE_STRINGS = ../referencesource/System/System.txt
57 # MOBILE_PROFILE needs SECURITY_DEP
60 LIB_MCS_FLAGS += -d:INSIDE_SYSTEM -d:SECURITY_DEP
62 EXTERN_ALIAS_FLAGS = -d:MONO_SECURITY_ALIAS
66 # Flags used to build the secxml version of System.
68 ifeq (secxml/, $(intermediate))
70 LIB_REFS += bare/System.Xml MonoSecurity=Mono.Security
71 LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP $(EXTERN_ALIAS_FLAGS)
75 # Flags used to build the final version of System (when intermediate is not defined)
78 LIB_REFS += System.Xml MonoSecurity=Mono.Security
79 LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP $(EXTERN_ALIAS_FLAGS)
82 LIB_REFS += System.Configuration
83 LIB_MCS_FLAGS += -d:CONFIGURATION_DEP
89 Test/test-config-file \
90 Test/test-config-file-net-2.0 \
91 Test/System.Security.Cryptography.X509Certificates/pkits/Makefile \
92 Test/System.Security.Cryptography.X509Certificates/pkits/README \
93 Test/System.Security.Cryptography.X509Certificates/pkits/x509build.cs \
97 include ../../build/library.make
99 system_library_deps := \
100 $(secxml_libdir)/System.dll \
101 $(the_libdir_base)System.Xml.dll \
102 $(the_libdir_base)Mono.Security.dll \
103 $(bare_libdir)/System.dll
105 ifndef MOBILE_PROFILE
106 system_library_deps += $(the_libdir_base)System.Configuration.dll
109 artifacts = $(system_library_deps) \
110 $(bare_libdir)/System.Xml.dll \
111 $(the_libdir_base)Mono.Security.dll \
112 $(the_libdir_base)System.Configuration.dll
114 .NOTPARALLEL: $(system_library_deps)
116 $(the_libdir_base)System.dll: $(system_library_deps) ../Mono.Security/Makefile
118 ifeq (bare/,$(intermediate))
121 $(bare_libdir)/System.dll:
122 $(MAKE) intermediate=bare/ $(bare_libdir)/System.dll
125 ifneq (secxml/,$(intermediate))
126 $(secxml_libdir)/System.dll: $(bare_libdir)/System.dll $(bare_libdir)/System.Xml.dll $(the_libdir_base)Mono.Security.dll $(bare_libdir)/System.dll
127 $(MAKE) intermediate=secxml/ $(secxml_libdir)/System.dll
132 $(the_libdir_base)System.Xml.dll:
133 (cd ../System.XML; $(MAKE) $@)
135 $(bare_libdir)/System.Xml.dll:
136 (cd ../System.XML; $(MAKE) $@)
138 $(the_libdir_base)Mono.Security.dll: ../Mono.Security/Makefile
139 (cd ../Mono.Security; $(MAKE))
141 $(the_libdir_base)System.Configuration.dll:
142 (cd ../System.Configuration; $(MAKE))
144 $(build_lib): $(CYCLIC_DEP_FILES)
146 $(test_lib): $(test_lib).config $(TEST_RESOURCES)
148 $(test_lib).config: Test/test-config-file
151 CLEAN_FILES = $(test_lib).config $(bare_libdir)/System.dll $(secxml_libdir)/System.dll $(bare_libdir)/System.dll.mdb $(secxml_libdir)/System.dll.mdb
153 # Helper target to run the perl regex test suite
155 $(MAKE) check FIXTURE=System.Text.RegularExpressions.PerlTest
159 rm -rf ../../class/lib/$(PROFILE)/bare ../../class/lib/$(PROFILE)/bare/ $(system_library_deps)
162 ifneq ($(PROFILE),basic)
164 $(MAKE) csproj-local intermediate=bare/
165 $(MAKE) csproj-local intermediate=secxml/