Files
mono/mcs/class/System.Configuration/Makefile
T
Miguel de Icaza d6c6b28516 [build] Address the System.Configuration test problem
The compiler seems to ignore reference assemblies with a full path when the
-lib: directive is passed, so things like:

      -lib:FOO -r:BAR/bar.dll

Would resolve bar.dll to FOO/bar.dll, instead of BAR/bar.dll.

This is a problem with the test suite as it needs to reference the
final build of System.Configuration from $(the_libdir_base) and not
the intermediate step.

To work around this issue, we introduce "test_remove" variable that is
a piece of text that will be removed from the TEST_COMPILE variable
when this is evaluated.

This means that it gets CSCOMPILE and then it removes the bits that we
are not interested in.
2014-05-27 14:59:33 -04:00

33 lines
842 B
Makefile

thisdir = class/System.Configuration
SUBDIRS =
include ../../build/rules.make
LIBRARY = System.Configuration.dll
LOCAL_MCS_FLAGS = -lib:$(secxml_libdir) -lib:$(bare_libdir)
test_remove = $(LOCAL_MCS_FLAGS)
LIB_MCS_FLAGS = -r:$(corlib) -r:System.dll -r:System.Xml.dll -r:System.Security.dll -nowarn:618
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
include ../../build/library.make
configuration_library_deps = \
$(secxml_libdir)/System.dll \
$(the_libdir_base)System.Security.dll \
$(bare_libdir)/System.Xml.dll
$(build_lib): $(configuration_library_deps)
.NOTPARALLEL: $(configuration_library_deps)
$(secxml_libdir)/System.dll:
@echo System.Configuration: GETTING: $@
(cd ../System; $(MAKE) $@)
$(the_libdir_base)System.Security.dll:
(cd ../System.Security; $(MAKE) $@)
$(bare_libdir)/System.Xml.dll:
(cd ../System.XML; $(MAKE) $@)