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_LIB_REFS = System.Drawing Mono.Security System.Data System.Xml System.Core System.Configuration
24 TEST_MCS_FLAGS = -nowarn:618,672,219,67,169,612 \
25 $(foreach f, $(TEST_RESOURCES), -resource:$(f),$(notdir $(f)))
27 REFERENCE_SOURCES_FLAGS = -d:FEATURE_PAL,SYSTEM_NAMESPACE,MONO,PLATFORM_UNIX
28 ifndef NO_PROCESS_START
29 REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_PROCESS_START
30 TEST_MCS_FLAGS += -d:MONO_FEATURE_PROCESS_START
33 LIB_MCS_FLAGS = -nowarn:618 -d:CONFIGURATION_2_0 $(REFERENCE_SOURCES_FLAGS) -unsafe $(RESOURCE_FILES:%=-resource:%)
35 ifndef NO_THREAD_ABORT
36 REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_THREAD_ABORT
37 TEST_MCS_FLAGS += -d:MONO_FEATURE_THREAD_ABORT
40 ifndef NO_THREAD_SUSPEND_RESUME
41 REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_THREAD_SUSPEND_RESUME
42 TEST_MCS_FLAGS += -d:MONO_FEATURE_THREAD_SUSPEND_RESUME
45 ifndef NO_MULTIPLE_APPDOMAINS
46 REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_MULTIPLE_APPDOMAINS
47 TEST_MCS_FLAGS += -d:MONO_FEATURE_MULTIPLE_APPDOMAINS
50 TXT_RESOURCE_STRINGS = ../referencesource/System/System.txt
53 # MOBILE_PROFILE needs SECURITY_DEP
56 LIB_MCS_FLAGS += -d:INSIDE_SYSTEM -d:SECURITY_DEP
58 EXTERN_ALIAS_FLAGS = -d:MONO_SECURITY_ALIAS
62 # Flags used to build the secxml version of System.
64 ifeq (secxml/, $(intermediate))
66 LIB_REFS += bare/System.Xml MonoSecurity=Mono.Security
67 LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP $(EXTERN_ALIAS_FLAGS)
71 # Flags used to build the final version of System (when intermediate is not defined)
74 LIB_REFS += System.Xml MonoSecurity=Mono.Security
75 LIB_MCS_FLAGS += -d:SECURITY_DEP -d:XML_DEP $(EXTERN_ALIAS_FLAGS)
78 LIB_REFS += System.Configuration
79 LIB_MCS_FLAGS += -d:CONFIGURATION_DEP
85 Test/test-config-file \
86 Test/test-config-file-net-2.0 \
87 Test/System.Security.Cryptography.X509Certificates/pkits/Makefile \
88 Test/System.Security.Cryptography.X509Certificates/pkits/README \
89 Test/System.Security.Cryptography.X509Certificates/pkits/x509build.cs \
93 include ../../build/library.make
95 system_library_deps := \
96 $(secxml_libdir)/System.dll \
97 $(the_libdir_base)System.Xml.dll \
98 $(the_libdir_base)Mono.Security.dll \
99 $(bare_libdir)/System.dll
101 ifndef MOBILE_PROFILE
102 system_library_deps += $(the_libdir_base)System.Configuration.dll
105 artifacts = $(system_library_deps) \
106 $(bare_libdir)/System.Xml.dll \
107 $(the_libdir_base)Mono.Security.dll \
108 $(the_libdir_base)System.Configuration.dll
110 .NOTPARALLEL: $(system_library_deps)
112 $(the_libdir_base)System.dll: $(system_library_deps) ../Mono.Security/Makefile
114 ifeq (bare/,$(intermediate))
117 $(bare_libdir)/System.dll:
118 $(MAKE) intermediate=bare/ $(bare_libdir)/System.dll
121 ifneq (secxml/,$(intermediate))
122 $(secxml_libdir)/System.dll: $(bare_libdir)/System.dll $(bare_libdir)/System.Xml.dll $(the_libdir_base)Mono.Security.dll $(bare_libdir)/System.dll
123 $(MAKE) intermediate=secxml/ $(secxml_libdir)/System.dll
128 $(the_libdir_base)System.Xml.dll:
129 (cd ../System.XML; $(MAKE) $@)
131 $(bare_libdir)/System.Xml.dll:
132 (cd ../System.XML; $(MAKE) $@)
134 $(the_libdir_base)Mono.Security.dll: ../Mono.Security/Makefile
135 (cd ../Mono.Security; $(MAKE))
137 $(the_libdir_base)System.Configuration.dll:
138 (cd ../System.Configuration; $(MAKE))
140 $(build_lib): $(CYCLIC_DEP_FILES)
142 $(test_lib): $(test_lib).config $(TEST_RESOURCES)
144 $(test_lib).config: Test/test-config-file
147 CLEAN_FILES = $(test_lib).config $(bare_libdir)/System.dll $(secxml_libdir)/System.dll $(bare_libdir)/System.dll.mdb $(secxml_libdir)/System.dll.mdb
149 # Helper target to run the perl regex test suite
151 $(MAKE) check FIXTURE=System.Text.RegularExpressions.PerlTest
155 rm -rf ../../class/lib/$(PROFILE)/bare ../../class/lib/$(PROFILE)/bare/ $(system_library_deps)
158 ifneq ($(PROFILE),basic)
160 $(MAKE) csproj-local intermediate=bare/
161 $(MAKE) csproj-local intermediate=secxml/