another endian fix
[mono.git] / mcs / build / library.make
index 5530166ce204ba631ccc3b2c8a83d0df091cfb52..3d94ab9709b5ad7a0b6e4faeb59d18f15e1ba5ea 100644 (file)
@@ -14,8 +14,9 @@ sourcefile = $(LIBRARY).sources
 PROFILE_sources = $(PROFILE)_$(LIBRARY).sources
 ifeq ($(wildcard $(PROFILE_sources)), $(PROFILE_sources))
 PROFILE_excludes = $(wildcard $(PROFILE)_$(LIBRARY).exclude.sources)
+COMMON_sourcefile := $(sourcefile)
 sourcefile = $(depsdir)/$(PROFILE)_$(LIBRARY).sources
-$(sourcefile): $(PROFILE_sources) $(PROFILE_excludes)
+$(sourcefile): $(PROFILE_sources) $(PROFILE_excludes) $(COMMON_sourcefile)
        @echo Creating the per profile list $@ ...
        $(topdir)/tools/gensources.sh $(PROFILE_sources) $(PROFILE_excludes) > $@
 endif
@@ -281,6 +282,7 @@ ifdef LIBRARY_USE_INTERMEDIATE_FILE
        $(SN) $(SNFLAGS) $(LIBRARY_NAME) $(LIBRARY_SNK)
        mv $(LIBRARY_NAME) $@
        test ! -f $(LIBRARY_NAME).mdb || mv $(LIBRARY_NAME).mdb $@.mdb
+       test ! -f $(LIBRARY_NAME:.dll=.pdb) || mv $(LIBRARY_NAME:.dll=.pdb) $(dir $@)$(LIBRARY_NAME:.dll=.pdb)
 else
        $(LIBRARY_COMPILE) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS) -target:library -out:$@ $(BUILT_SOURCES_cmdline) @$(response)
        $(SN) $(SNFLAGS) $@ $(LIBRARY_SNK)