Merge pull request #2799 from BrzVlad/fix-conc-card-clean
[mono.git] / mcs / build / library.make
index 5954ba2e316bc5e872bf4b92d3b0bdbd337a542a..1df98aeea1f035eb5e187138f58761eaccab60be 100644 (file)
@@ -18,7 +18,7 @@
 # Have to rename to handle differences between assembly/directory names
 DEP_LIBS=$(patsubst System.Xml,System.XML,$(LIB_REFS))
 
-LIB_MCS_FLAGS += $(patsubst %,-r:%,$(LIB_REFS))
+LIB_MCS_FLAGS += $(patsubst %,-r:%.dll,$(LIB_REFS))
 
 sourcefile = $(LIBRARY).sources
 
@@ -80,7 +80,9 @@ endif
 
 ifdef RESOURCE_STRINGS
 ifdef BOOTSTRAP_PROFILE
-MCS_FLAGS_RESOURCE_STRINGS += $(RESOURCE_STRINGS:%=--getresourcestrings:%)
+ifneq (basic, $(BUILD_TOOLS_PROFILE))
+RESOURCE_STRINGS_FILES += $(RESOURCE_STRINGS:%=--resourcestrings:%)
+endif
 endif
 endif
 
@@ -141,7 +143,7 @@ csproj-local: csproj-library csproj-test
 intermediate_clean=$(subst /,-,$(intermediate))
 csproj-library: 
        config_file=`basename $(LIBRARY) .dll`-$(intermediate_clean)$(PROFILE).input; \
-       [[ $(thisdir) == *"Facades"* ]] && config_file=Facades_$$config_file; \
+       case "$(thisdir)" in *"Facades"*) config_file=Facades_$$config_file;; esac; \
        echo $(thisdir):$$config_file >> $(topdir)/../msvc/scripts/order; \
        (echo $(is_boot); \
        echo $(USE_MCS_FLAGS) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS); \
@@ -280,8 +282,11 @@ endif
 $(the_lib): $(the_libdir)/.stamp
 
 $(build_lib): $(response) $(sn) $(BUILT_SOURCES) $(build_libdir:=/.stamp)
-       $(LIBRARY_COMPILE) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS) $(MCS_FLAGS_RESOURCE_STRINGS) -target:library -out:$@ $(BUILT_SOURCES_cmdline) @$(response)
+       $(LIBRARY_COMPILE) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS) -target:library -out:$@ $(BUILT_SOURCES_cmdline) @$(response)
        $(Q) $(SN) -R $@ $(LIBRARY_SNK)
+ifdef RESOURCE_STRINGS_FILES
+       $(Q) $(STRING_REPLACER) $(RESOURCE_STRINGS_FILES) $@
+endif
 
 ifdef LIBRARY_USE_INTERMEDIATE_FILE
 $(the_lib): $(build_lib)