Navigation Menu

Skip to content

Commit

Permalink
[build] Unify DEFAULT_REFERENCE handling so I can override it with TA…
Browse files Browse the repository at this point in the history
…RGET_NET_REFERENCE for individual tools
  • Loading branch information
marek-safar committed Mar 7, 2018
1 parent 73859e3 commit e6de24c
Show file tree
Hide file tree
Showing 39 changed files with 97 additions and 102 deletions.
4 changes: 2 additions & 2 deletions docs/docs.make
Expand Up @@ -13,10 +13,10 @@ ASSEMBLED_DOCS = \
monoapi.tree monoapi.zip

convert.exe: $(srcdir)/convert.cs AgilityPack.dll
$(CSCOMPILE) -r:$(topdir)/class/lib/$(PROFILE)/System.Xml.dll -out:$@ $< -r:AgilityPack.dll
$(CSCOMPILE) -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll -r:$(topdir)/class/lib/$(PROFILE)/System.Xml.dll -out:$@ $< -r:AgilityPack.dll

AgilityPack.dll:
$(CSCOMPILE) -r:$(topdir)/class/lib/$(PROFILE)/System.dll -r:$(topdir)/class/lib/$(PROFILE)/System.Xml.dll -target:library -out:$@ $(srcdir)/HtmlAgilityPack/*.cs
$(CSCOMPILE) -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll -r:$(topdir)/class/lib/$(PROFILE)/System.dll -r:$(topdir)/class/lib/$(PROFILE)/System.Xml.dll -target:library -out:$@ $(srcdir)/HtmlAgilityPack/*.cs

monoapi.zip: monoapi.tree
@test -f $@ || { rm -f $< && $(MAKE) $<; }
Expand Down
10 changes: 6 additions & 4 deletions mcs/build/executable.make
Expand Up @@ -42,15 +42,17 @@ executable_CLEAN_FILES += $(build_lib) $(build_lib).so $(build_lib).mdb $(build_

makefrag = $(depsdir)/$(PROFILE)_$(base_prog).makefrag

LIB_REFS_ALL = $(DEFAULT_REFERENCES) $(LIB_REFS)

ifdef TARGET_NET_REFERENCE
# System.*.dll references come from the TARGET_NET_REFERENCE dir, others from the profile dir
LIB_REFS_MONO = $(call _FILTER_OUT,System,$(LIB_REFS))
LIB_REFS_SYSTEM = $(filter-out $(LIB_REFS_MONO),$(LIB_REFS))
# System*, mscorlib references come from the TARGET_NET_REFERENCE dir, others from the profile dir
LIB_REFS_MONO = $(call _FILTER_OUT,System,$(call _FILTER_OUT,mscorlib,$(LIB_REFS_ALL)))
LIB_REFS_SYSTEM = $(filter-out $(LIB_REFS_MONO),$(LIB_REFS_ALL))

MCS_REFERENCES = $(patsubst %,-r:$(topdir)/../external/binary-reference-assemblies/$(TARGET_NET_REFERENCE)/%.dll,$(LIB_REFS_SYSTEM))
MCS_REFERENCES += $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE_DIRECTORY)/%.dll,$(LIB_REFS_MONO))
else
MCS_REFERENCES = $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE_DIRECTORY)/%.dll,$(LIB_REFS))
MCS_REFERENCES = $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE_DIRECTORY)/%.dll,$(LIB_REFS_ALL))
endif

ifdef KEYFILE
Expand Down
14 changes: 7 additions & 7 deletions mcs/build/library.make
Expand Up @@ -18,19 +18,19 @@
# Have to rename to handle differences between assembly/directory names
DEP_LIBS=$(patsubst System.Xml,System.XML,$(LIB_REFS))

LIB_REFS_FULL = $(call _FILTER_OUT,=, $(LIB_REFS))
LIB_REFS_FULL = $(call _FILTER_OUT,=, $(LIB_REFS)) $(DEFAULT_REFERENCES)
LIB_REFS_ALIAS = $(filter-out $(LIB_REFS_FULL),$(LIB_REFS))

ifdef TARGET_NET_REFERENCE
# System.*.dll references come from the TARGET_NET_REFERENCE dir, others from the profile dir
LIB_REFS_MONO_FULL = $(call _FILTER_OUT,System,$(LIB_REFS_FULL))
# System*, mscorlib references come from the TARGET_NET_REFERENCE dir, others from the profile dir
LIB_REFS_MONO_FULL = $(call _FILTER_OUT,System,$(call _FILTER_OUT,mscorlib,$(LIB_REFS_FULL)))
LIB_REFS_MONO_ALIAS = $(call _FILTER_OUT,System,$(LIB_REFS_ALIAS))

LIB_REFS_SYSTEM_FULL = $(filter-out $(LIB_REFS_MONO_FULL),$(LIB_REFS_FULL))
LIB_REFS_SYSTEM_ALIAS = $(filter-out $(LIB_REFS_MONO_ALIAS),$(LIB_REFS_ALIAS))
LIB_REFS_NET_FULL = $(filter-out $(LIB_REFS_MONO_FULL),$(LIB_REFS_FULL))
LIB_REFS_NET_ALIAS = $(filter-out $(LIB_REFS_MONO_ALIAS),$(LIB_REFS_ALIAS))

LIB_MCS_FLAGS += $(patsubst %,-r:$(topdir)/../external/binary-reference-assemblies/$(TARGET_NET_REFERENCE)/%.dll,$(LIB_REFS_SYSTEM_FULL))
LIB_MCS_FLAGS += $(patsubst %,-r:%.dll, $(subst =,=$(topdir)/../external/binary-reference-assemblies/$(TARGET_NET_REFERENCE)/,$(LIB_REFS_SYSTEM_ALIAS)))
LIB_MCS_FLAGS += $(patsubst %,-r:$(topdir)/../external/binary-reference-assemblies/$(TARGET_NET_REFERENCE)/%.dll,$(LIB_REFS_NET_FULL))
LIB_MCS_FLAGS += $(patsubst %,-r:%.dll, $(subst =,=$(topdir)/../external/binary-reference-assemblies/$(TARGET_NET_REFERENCE)/,$(LIB_REFS_NET_ALIAS)))

LIB_MCS_FLAGS += $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE_DIRECTORY)/%.dll,$(LIB_REFS_MONO_FULL))
LIB_MCS_FLAGS += $(patsubst %,-r:%.dll, $(subst =,=$(topdir)/class/lib/$(PROFILE_DIRECTORY)/,$(LIB_REFS_MONO_ALIAS)))
Expand Down
4 changes: 2 additions & 2 deletions mcs/build/profiles/basic.make
Expand Up @@ -28,9 +28,9 @@ endif

MCS = $(BOOTSTRAP_MCS)

DEFAULT_REFERENCES = -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll
DEFAULT_REFERENCES = mscorlib

PROFILE_MCS_FLAGS = -d:NET_4_0 -d:NET_4_5 -d:MONO -d:WIN_PLATFORM -d:BOOTSTRAP_BASIC -nowarn:1699 -nostdlib $(DEFAULT_REFERENCES)
PROFILE_MCS_FLAGS = -d:NET_4_0 -d:NET_4_5 -d:MONO -d:WIN_PLATFORM -d:BOOTSTRAP_BASIC -nowarn:1699 -nostdlib
API_BIN_PROFILE = v4.7.1

NO_SIGN_ASSEMBLY = yes
Expand Down
4 changes: 2 additions & 2 deletions mcs/build/profiles/build.make
Expand Up @@ -13,8 +13,8 @@ PLATFORMS = darwin linux win32
profile-check:
@:

DEFAULT_REFERENCES = -r:$(topdir)/class/lib/$(PROFILE_DIRECTORY)/mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_4_0 -d:NET_4_5 -d:MONO -d:WIN_PLATFORM -nowarn:1699 -nostdlib $(DEFAULT_REFERENCES)
DEFAULT_REFERENCES = mscorlib
PROFILE_MCS_FLAGS = -d:NET_4_0 -d:NET_4_5 -d:MONO -d:WIN_PLATFORM -nowarn:1699 -nostdlib
API_BIN_PROFILE = v4.7.1

NO_SIGN_ASSEMBLY = yes
Expand Down
3 changes: 1 addition & 2 deletions mcs/build/profiles/monodroid.make
Expand Up @@ -8,7 +8,7 @@ MCS = $(BOOTSTRAP_MCS)
profile-check:
@:

DEFAULT_REFERENCES = -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll
DEFAULT_REFERENCES = mscorlib

PROFILE_MCS_FLAGS = \
-d:NET_1_1 \
Expand All @@ -24,7 +24,6 @@ PROFILE_MCS_FLAGS = \
-d:ANDROID \
-nowarn:1699 \
-nostdlib \
$(DEFAULT_REFERENCES) \
$(PLATFORM_DEBUG_FLAGS)

API_BIN_PROFILE = build/monodroid
Expand Down
4 changes: 2 additions & 2 deletions mcs/build/profiles/monodroid_tools.make
Expand Up @@ -9,9 +9,9 @@ profile-check:
@:

TARGET_NET_REFERENCE = v4.6
DEFAULT_REFERENCES = -r:$(topdir)/../external/binary-reference-assemblies/$(TARGET_NET_REFERENCE)/mscorlib.dll
DEFAULT_REFERENCES = mscorlib

PROFILE_MCS_FLAGS = -d:NET_4_6 -d:MONO -d:WIN_PLATFORM -nowarn:1699 -nostdlib $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
PROFILE_MCS_FLAGS = -d:NET_4_6 -d:MONO -d:WIN_PLATFORM -nowarn:1699 -nostdlib $(PLATFORM_DEBUG_FLAGS)

FRAMEWORK_VERSION = 4.5

Expand Down
3 changes: 1 addition & 2 deletions mcs/build/profiles/monotouch_runtime.make
Expand Up @@ -8,7 +8,7 @@ MCS = $(BOOTSTRAP_MCS)
profile-check:
@:

DEFAULT_REFERENCES = -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll
DEFAULT_REFERENCES = mscorlib
PROFILE_MCS_FLAGS = \
-d:NET_1_1 \
-d:NET_2_0 \
Expand All @@ -24,7 +24,6 @@ PROFILE_MCS_FLAGS = \
-d:FEATURE_INTERCEPTABLE_THREADPOOL_CALLBACK \
-nowarn:1699 \
-nostdlib \
$(DEFAULT_REFERENCES) \
$(PLATFORM_DEBUG_FLAGS) \
$(MONOTOUCH_MCS_FLAGS)

Expand Down
4 changes: 2 additions & 2 deletions mcs/build/profiles/net_4_x.make
Expand Up @@ -12,8 +12,8 @@ PLATFORMS = darwin linux win32
profile-check:
@:

DEFAULT_REFERENCES = -r:$(topdir)/class/lib/$(PROFILE_DIRECTORY)/mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_4_0 -d:NET_4_5 -d:NET_4_6 -d:MONO -d:WIN_PLATFORM -d:MULTIPLEX_OS -nowarn:1699 -nostdlib $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
DEFAULT_REFERENCES = mscorlib
PROFILE_MCS_FLAGS = -d:NET_4_0 -d:NET_4_5 -d:NET_4_6 -d:MONO -d:WIN_PLATFORM -d:MULTIPLEX_OS -nowarn:1699 -nostdlib $(PLATFORM_DEBUG_FLAGS)
API_BIN_PROFILE = v4.7.1

FRAMEWORK_VERSION = 4.5
Expand Down
3 changes: 1 addition & 2 deletions mcs/build/profiles/orbis.make
Expand Up @@ -8,7 +8,7 @@ MCS = $(BOOTSTRAP_MCS)
profile-check:
@:

DEFAULT_REFERENCES = -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll
DEFAULT_REFERENCES = mscorlib

PROFILE_MCS_FLAGS = \
-d:NET_1_1 \
Expand All @@ -26,7 +26,6 @@ PROFILE_MCS_FLAGS = \
-d:DISABLE_COM \
-nowarn:1699 \
-nostdlib \
$(DEFAULT_REFERENCES) \
$(PLATFORM_DEBUG_FLAGS)

API_BIN_PROFILE = build/monotouch
Expand Down
3 changes: 1 addition & 2 deletions mcs/build/profiles/testing_aot_full.make
Expand Up @@ -8,7 +8,7 @@ MCS = $(BOOTSTRAP_MCS)
profile-check:
@:

DEFAULT_REFERENCES = -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll
DEFAULT_REFERENCES = mscorlib

PROFILE_MCS_FLAGS = \
-d:NET_1_1 \
Expand All @@ -25,7 +25,6 @@ PROFILE_MCS_FLAGS = \
-d:DISABLE_COM \
-nowarn:1699 \
-nostdlib \
$(DEFAULT_REFERENCES) \
$(PLATFORM_DEBUG_FLAGS)

API_BIN_PROFILE = build/monotouch
Expand Down
3 changes: 1 addition & 2 deletions mcs/build/profiles/testing_aot_hybrid.make
Expand Up @@ -8,7 +8,7 @@ MCS = $(BOOTSTRAP_MCS)
profile-check:
@:

DEFAULT_REFERENCES = -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll
DEFAULT_REFERENCES = mscorlib

PROFILE_MCS_FLAGS = \
-d:NET_1_1 \
Expand All @@ -22,7 +22,6 @@ PROFILE_MCS_FLAGS = \
-d:MONO \
-nowarn:1699 \
-nostdlib \
$(DEFAULT_REFERENCES) \
$(PLATFORM_DEBUG_FLAGS)

API_BIN_PROFILE = build/monotouch
Expand Down
3 changes: 1 addition & 2 deletions mcs/build/profiles/unreal.make
Expand Up @@ -8,7 +8,7 @@ MCS = $(BOOTSTRAP_MCS)
profile-check:
@:

DEFAULT_REFERENCES = -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll
DEFAULT_REFERENCES = mscorlib

PROFILE_MCS_FLAGS = \
-d:NET_1_1 \
Expand All @@ -22,7 +22,6 @@ PROFILE_MCS_FLAGS = \
-d:MONO \
-nowarn:1699 \
-nostdlib \
$(DEFAULT_REFERENCES) \
$(PLATFORM_DEBUG_FLAGS)

API_BIN_PROFILE = build/monotouch
Expand Down
3 changes: 1 addition & 2 deletions mcs/build/profiles/wasm.make
Expand Up @@ -8,7 +8,7 @@ MCS = $(BOOTSTRAP_MCS)
profile-check:
@:

DEFAULT_REFERENCES = -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll
DEFAULT_REFERENCES = mscorlib

PROFILE_MCS_FLAGS = \
-d:NET_1_1 \
Expand All @@ -27,7 +27,6 @@ PROFILE_MCS_FLAGS = \
-d:FEATURE_NO_BSD_SOCKETS \
-nowarn:1699 \
-nostdlib \
$(DEFAULT_REFERENCES) \
$(PLATFORM_DEBUG_FLAGS)

API_BIN_PROFILE = build/monotouch
Expand Down
3 changes: 1 addition & 2 deletions mcs/build/profiles/winaot.make
Expand Up @@ -8,7 +8,7 @@ MCS = $(BOOTSTRAP_MCS)
profile-check:
@:

DEFAULT_REFERENCES = -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll
DEFAULT_REFERENCES = mscorlib

PROFILE_MCS_FLAGS = \
-d:NET_1_1 \
Expand All @@ -26,7 +26,6 @@ PROFILE_MCS_FLAGS = \
-d:WIN_PLATFORM \
-nowarn:1699 \
-nostdlib \
$(DEFAULT_REFERENCES) \
$(PLATFORM_DEBUG_FLAGS)

API_BIN_PROFILE = build/monotouch
Expand Down
3 changes: 1 addition & 2 deletions mcs/build/profiles/xammac.make
Expand Up @@ -6,7 +6,7 @@ MCS = $(BOOTSTRAP_MCS)
profile-check:
@:

DEFAULT_REFERENCES = -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll
DEFAULT_REFERENCES = mscorlib

PROFILE_MCS_FLAGS = \
-d:NET_1_1 \
Expand All @@ -23,7 +23,6 @@ PROFILE_MCS_FLAGS = \
-d:XAMARIN_MODERN \
-nowarn:1699 \
-nostdlib \
$(DEFAULT_REFERENCES) \
$(PLATFORM_DEBUG_FLAGS) \
$(XAMMAC_MCS_FLAGS)

Expand Down
2 changes: 1 addition & 1 deletion mcs/build/profiles/xammac_net_4_5.make
@@ -1,6 +1,6 @@
include $(topdir)/build/profiles/net_4_x.make

PROFILE_MCS_FLAGS = -d:NET_4_0 -d:NET_4_5 -d:NET_4_6 -d:MONO -nowarn:1699 -nostdlib $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS) \
PROFILE_MCS_FLAGS = -d:NET_4_0 -d:NET_4_5 -d:NET_4_6 -d:MONO -nowarn:1699 -nostdlib $(PLATFORM_DEBUG_FLAGS) \
-d:FEATURE_INTERCEPTABLE_THREADPOOL_CALLBACK \
-d:NO_SYSTEM_DRAWING_DEPENDENCY \
-d:NO_WINFORMS_DEPENDENCY \
Expand Down
2 changes: 1 addition & 1 deletion mcs/build/profiles/xbuild_12.make
Expand Up @@ -5,7 +5,7 @@ include $(topdir)/build/profiles/net_4_x.make
PLATFORMS:=

PARENT_PROFILE = ../net_4_x$(if $(PROFILE_PLATFORM),-$(PROFILE_PLATFORM))/
DEFAULT_REFERENCES = -r:$(topdir)/class/lib/net_4_x$(if $(PROFILE_PLATFORM),-$(PROFILE_PLATFORM))/mscorlib.dll
DEFAULT_REFERENCES = ../net_4_x/mscorlib
PROFILE_MCS_FLAGS += -d:XBUILD_12

XBUILD_VERSION = 12.0
6 changes: 3 additions & 3 deletions mcs/build/tests.make
Expand Up @@ -42,8 +42,8 @@ xunit_libs_ref += $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE)/Facades/%.dll,$
xunit_libs_dep = $(xunit_class_deps:%=$(topdir)/class/lib/$(PROFILE)/$(PARENT_PROFILE)%.dll)
xunit_libs_ref += $(xunit_libs_dep:%=-r:%)

TEST_LIB_MCS_FLAGS = $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE)/%.dll,$(TEST_LIB_REFS))
XTEST_LIB_MCS_FLAGS = $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE)/%.dll,$(XTEST_LIB_REFS))
TEST_LIB_MCS_FLAGS = $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE)/%.dll,$(TEST_LIB_REFS) $(DEFAULT_REFERENCES))
XTEST_LIB_MCS_FLAGS = $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE)/%.dll,$(XTEST_LIB_REFS) $(DEFAULT_REFERENCES))

test_nunit_dep = $(test_nunit_lib:%=$(topdir)/class/lib/$(PROFILE)/$(PARENT_PROFILE)%)
test_nunit_ref = $(test_nunit_dep:%=-r:%)
Expand Down Expand Up @@ -296,7 +296,7 @@ run-xunit-test-lib: xunit-test-local $(XTEST_REMOTE_EXECUTOR)

# Some xunit tests want to be executed in a separate process (see RemoteExecutorTestBase)
$(XTEST_REMOTE_EXECUTOR): $(topdir)/../external/corefx/src/Common/tests/System/Diagnostics/RemoteExecutorConsoleApp/RemoteExecutorConsoleApp.cs
$(TEST_COMPILE) $(topdir)/../external/corefx/src/Common/tests/System/Diagnostics/RemoteExecutorConsoleApp/RemoteExecutorConsoleApp.cs -out:$@
$(TEST_COMPILE) -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll $< -out:$@

$(xunit_test_lib): $(the_assembly) $(xtest_response) $(xunit_libs_dep) $(xunit_src)
$(TEST_COMPILE) $(LIBRARY_FLAGS) $(XTEST_LIB_FLAGS) -target:library -out:$@ $(xtest_flags) @$(xtest_response) $(xunit_src)
Expand Down
2 changes: 1 addition & 1 deletion mcs/class/Microsoft.Build.Engine/Makefile
Expand Up @@ -23,7 +23,7 @@ EXTRA_DISTFILES = \
CLEAN_FILES = Test/resources/TestTasks-$(PROFILE).dll Test/resources/TestTasks-$(PROFILE).dll.mdb Test/resources/TestTasks-$(PROFILE).pdb

Test/resources/TestTasks-$(PROFILE).dll: Test/resources/TestTasks.cs
$(CSCOMPILE) /out:$@ Test/resources/TestTasks.cs /r:$(topdir)/class/lib/$(PROFILE)/$(XBUILD_FRAMEWORK).dll /r:$(topdir)/class/lib/$(PROFILE)/$(XBUILD_UTILITIES).dll /target:library
$(CSCOMPILE) /out:$@ Test/resources/TestTasks.cs /r:$(topdir)/class/lib/$(PROFILE)/$(PARENT_PROFILE)/mscorlib.dll /r:$(topdir)/class/lib/$(PROFILE)/$(XBUILD_FRAMEWORK).dll /r:$(topdir)/class/lib/$(PROFILE)/$(XBUILD_UTILITIES).dll /target:library

test-local: compile-resources

Expand Down
2 changes: 1 addition & 1 deletion mcs/class/Microsoft.Build.Tasks/Makefile
Expand Up @@ -29,7 +29,7 @@ EXTRA_DISTFILES = \
Test/resources/junk.txt

Test/resources/test.dll: Test/resources/test.cs
$(CSCOMPILE) -target:library /out:$@ $<
$(CSCOMPILE) -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll -target:library /out:$@ $<

clean-test-resources:
rm -f Test/resources/test.dll
Expand Down
2 changes: 1 addition & 1 deletion mcs/class/Mono.Debugger.Soft/Makefile
Expand Up @@ -23,7 +23,7 @@ TEST_HELPERS_SOURCES = \
test-local: dtest-app.exe dtest-excfilter.exe

dtest-app.exe: Test/dtest-app.cs $(TEST_HELPERS_SOURCES)
$(CSCOMPILE) -r:$(topdir)/class/lib/$(PROFILE)/System.Core.dll -r:$(topdir)/class/lib/$(PROFILE)/System.dll -out:$@ -unsafe $(PLATFORM_DEBUG_FLAGS) -optimize- Test/dtest-app.cs $(TEST_HELPERS_SOURCES)
$(CSCOMPILE) -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll -r:$(topdir)/class/lib/$(PROFILE)/System.Core.dll -r:$(topdir)/class/lib/$(PROFILE)/System.dll -out:$@ -unsafe $(PLATFORM_DEBUG_FLAGS) -optimize- Test/dtest-app.cs $(TEST_HELPERS_SOURCES)

dtest-excfilter.exe: Test/dtest-excfilter.il
$(ILASM) -out:$@ /exe /debug Test/dtest-excfilter.il
Expand Down
2 changes: 1 addition & 1 deletion mcs/class/Mono.Options/Makefile
Expand Up @@ -23,7 +23,7 @@ test-local: Mono.Options-PCL.dll
clean-local: clean-pcl

Mono.Options-PCL.dll: Mono.Options.dll.sources $(shell cat Mono.Options.dll.sources)
$(CSCOMPILE) -target:library -out:$@ -debug+ -d:PCL -r:../lib/$(PROFILE)/System.dll @$<
$(CSCOMPILE) -target:library -out:$@ -d:PCL -r:../lib/$(PROFILE)/mscorlib.dll -r:../lib/$(PROFILE)/System.dll @$<

clean-pcl:
-rm Mono.Options-PCL.dll
Expand Down
2 changes: 1 addition & 1 deletion mcs/class/Mono.WebBrowser/Makefile
Expand Up @@ -7,7 +7,7 @@ LIB_REFS = System
KEYFILE = ../mono.snk
LIB_MCS_FLAGS = -warn:1

TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
TEST_MCS_FLAGS =

EXTRA_DISTFILES = README

Expand Down
3 changes: 2 additions & 1 deletion mcs/class/System.ComponentModel.DataAnnotations/Makefile
Expand Up @@ -7,7 +7,8 @@ LIB_REFS = System System.Core System.Data System.Xml
KEYFILE = ../winfx.pub
LIB_MCS_FLAGS = -nowarn:414

TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
TEST_MCS_FLAGS =
TEST_LIB_REFS = System System.Core

TXT_RESOURCE_STRINGS = ../referencesource/System.ComponentModel.DataAnnotations/System.ComponentModel.DataAnnotations.txt

Expand Down
3 changes: 2 additions & 1 deletion mcs/class/System.Data.OracleClient/Makefile
Expand Up @@ -7,7 +7,8 @@ LIB_REFS = System System.Xml System.Data System.EnterpriseServices System.Drawin
KEYFILE = ../ecma.pub
LIB_MCS_FLAGS =

TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) /nowarn:618
TEST_MCS_FLAGS = /nowarn:618
TEST_LIB_REFS = System System.Data

EXTRA_DISTFILES = Test/*.cs

Expand Down
3 changes: 2 additions & 1 deletion mcs/class/System.IdentityModel/Makefile
Expand Up @@ -29,7 +29,8 @@ LIB_REFS += System.Web.ApplicationServices
endif
endif

TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
TEST_MCS_FLAGS =
TEST_LIB_REFS = System System.Xml System.Security System.Runtime.Serialization

ifdef MOBILE_PROFILE
NO_TEST = yes
Expand Down
2 changes: 1 addition & 1 deletion mcs/class/System.Json.Microsoft/Makefile
Expand Up @@ -18,6 +18,6 @@ ifdef MOBILE_DYNAMIC
LIB_MCS_FLAGS += -d:FEATURE_DYNAMIC
endif

TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
TEST_MCS_FLAGS =

include ../../build/library.make
2 changes: 1 addition & 1 deletion mcs/class/System.Reactive.Linq/Makefile
Expand Up @@ -29,7 +29,7 @@ ifdef NET_4_5
LIB_MCS_FLAGS += -d:HAS_EDI -d:PREFERASYNC -d:PREFER_ASYNC -d:HAS_AWAIT
endif

TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
TEST_MCS_FLAGS =

EXTRA_DISTFILES = $(RESX_RESOURCES:.resources=.resx) $(PREBUILT)

Expand Down
3 changes: 2 additions & 1 deletion mcs/class/System.ServiceProcess/Makefile
Expand Up @@ -6,7 +6,8 @@ LIBRARY = System.ServiceProcess.dll
LIB_REFS = System System.Configuration.Install System.Windows.Forms
KEYFILE = ../msfinal.pub
LIB_MCS_FLAGS = /nowarn:0618
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
TEST_MCS_FLAGS =
TEST_LIB_REFS = System

EXTRA_DISTFILES =

Expand Down

0 comments on commit e6de24c

Please sign in to comment.