diff options
Diffstat (limited to 'mcs/build/library.make')
-rw-r--r-- | mcs/build/library.make | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/mcs/build/library.make b/mcs/build/library.make index 5e44bce9fb0..e5a8cdcb6d2 100644 --- a/mcs/build/library.make +++ b/mcs/build/library.make @@ -298,11 +298,19 @@ endif PROFILE_sources := $(firstword $(if $(PROFILE_PLATFORM),$(wildcard $(PROFILE_PLATFORM)_$(PROFILE)_$(LIBRARY).sources)) $(wildcard $(PROFILE)_$(LIBRARY).sources) $(wildcard $(LIBRARY).sources)) PROFILE_excludes = $(firstword $(if $(PROFILE_PLATFORM),$(wildcard $(PROFILE_PLATFORM)_$(PROFILE)_$(LIBRARY).exclude.sources)) $(wildcard $(PROFILE)_$(LIBRARY).exclude.sources)) -# Note, gensources.sh can create a $(sourcefile).makefrag if it sees any '#include's -# We don't include it in the dependencies since it isn't always created +gensources = $(topdir)/build/gensources.exe +$(gensources): $(topdir)/build/gensources.cs + $(BOOTSTRAP_MCS) -noconfig -debug:portable -r:mscorlib.dll -r:System.dll -r:System.Core.dll -out:$(gensources) $(topdir)/build/gensources.cs + +ifdef PROFILE_RUNTIME +GENSOURCES_RUNTIME = $(PROFILE_RUNTIME) +else +GENSOURCES_RUNTIME = MONO_PATH="$(topdir)/class/lib/$(BUILD_TOOLS_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) +endif + sourcefile = $(depsdir)/$(PROFILE_PLATFORM)_$(PROFILE)_$(LIBRARY_SUBDIR)_$(LIBRARY).sources -$(sourcefile): $(PROFILE_sources) $(PROFILE_excludes) $(topdir)/build/gensources.sh $(depsdir)/.stamp - $(SHELL) $(topdir)/build/gensources.sh $@ '$(PROFILE_sources)' '$(PROFILE_excludes)' +$(sourcefile): $(PROFILE_sources) $(PROFILE_excludes) $(depsdir)/.stamp $(gensources) + $(GENSOURCES_RUNTIME) --debug $(gensources) "$@" "$(LIBRARY)" "$(PROFILE_PLATFORM)" "$(PROFILE)" library_CLEAN_FILES += $(sourcefile) |