| 1 |
PROFILE := v4.5 |
| 2 |
SOURCEDIR := ../src/$(PROFILE)/ |
| 3 |
|
| 4 |
CSC ?= csc |
| •5 |
CSC_COMMON_ARGS := -nologo -noconfig -optimize -nostdlib -unsafe -deterministic -delaysign -debug- -target:library -nowarn:612 -nowarn:618 |
| 6 |
Q_CSC = $(if $(V),,@echo "CSC [$(PROFILE)] $(1)";) |
| 7 |
|
| 8 |
ASSEMBLIES := Accessibility CustomMarshalers \ |
| 9 |
Microsoft.Build.Engine Microsoft.Build.Framework Microsoft.Build.Tasks.v4.0 \ |
| 10 |
Microsoft.Build.Utilities.v4.0 Microsoft.Build Microsoft.CSharp Microsoft.VisualBasic Microsoft.VisualC \ |
| 11 |
System.ComponentModel.Composition \ |
| 12 |
System.ComponentModel.DataAnnotations System.Configuration.Install System.Configuration System.Core \ |
| 13 |
System.Data.DataSetExtensions System.Data.Entity System.Data.Linq System.Data.OracleClient \ |
| 14 |
System.Data.Services.Client System.Data.Services System.Data System.Design System.DirectoryServices.Protocols \ |
| 15 |
System.DirectoryServices System.Drawing.Design System.Drawing System.Dynamic System.EnterpriseServices \ |
| 16 |
System.IO.Compression.FileSystem System.IO.Compression System.IdentityModel.Selectors System.IdentityModel \ |
| 17 |
System.Management System.Messaging \ |
| 18 |
System.Net.Http.WebRequest System.Net.Http System.Net System.Numerics \ |
| 19 |
System.Runtime.Caching System.Runtime.DurableInstancing System.Runtime.Remoting \ |
| 20 |
System.Runtime.Serialization.Formatters.Soap System.Runtime.Serialization System.Security System.ServiceModel.Activation \ |
| 21 |
System.ServiceModel.Discovery System.ServiceModel.Internals System.ServiceModel.Routing System.ServiceModel.Web \ |
| 22 |
System.ServiceModel System.ServiceProcess System.Transactions System.Web.Abstractions \ |
| 23 |
System.Web.ApplicationServices System.Web.DynamicData System.Web.Extensions.Design System.Web.Extensions \ |
| 24 |
System.Web.Routing System.Web.Services System.Web \ |
| 25 |
System.Windows.Forms.DataVisualization System.Windows.Forms System.Windows System.Xaml System.Xml.Linq \ |
| 26 |
System.Xml.Serialization System.Xml System WindowsBase mscorlib |
| 27 |
|
| 28 |
ASSEMBLIES += bare/System bare/System.Xml bare/System.Configuration bare/System.ServiceModel.Activation bare/System.Web |
| 29 |
|
| 30 |
FACADE_ASSEMBLIES := Facades/System.Collections.Concurrent Facades/System.Net.Primitives Facades/System.Runtime \ |
| 31 |
Facades/System.Collections Facades/System.Net.Requests Facades/System.Security.Principal \ |
| 32 |
Facades/System.ComponentModel.Annotations Facades/System.ObjectModel Facades/System.ServiceModel.Duplex \ |
| 33 |
Facades/System.ComponentModel.EventBasedAsync Facades/System.Reflection.Emit.ILGeneration Facades/System.ServiceModel.Http \ |
| 34 |
Facades/System.ComponentModel Facades/System.Reflection.Emit.Lightweight Facades/System.ServiceModel.NetTcp \ |
| 35 |
Facades/System.Diagnostics.Contracts Facades/System.Reflection.Emit Facades/System.ServiceModel.Primitives \ |
| 36 |
Facades/System.Diagnostics.Debug Facades/System.Reflection.Extensions Facades/System.ServiceModel.Security \ |
| 37 |
Facades/System.Diagnostics.Tools Facades/System.Reflection.Primitives Facades/System.Text.Encoding.Extensions \ |
| 38 |
Facades/System.Diagnostics.Tracing Facades/System.Reflection Facades/System.Text.Encoding \ |
| 39 |
Facades/System.Dynamic.Runtime Facades/System.Resources.ResourceManager Facades/System.Text.RegularExpressions \ |
| 40 |
Facades/System.Globalization Facades/System.Runtime.Extensions Facades/System.Threading.Tasks.Parallel \ |
| 41 |
Facades/System.IO Facades/System.Runtime.InteropServices.WindowsRuntime Facades/System.Threading.Tasks \ |
| 42 |
Facades/System.Linq.Expressions Facades/System.Runtime.InteropServices \ |
| 43 |
Facades/System.Linq.Parallel Facades/System.Runtime.Numerics Facades/System.Threading \ |
| 44 |
Facades/System.Linq.Queryable Facades/System.Runtime.Serialization.Json Facades/System.Xml.ReaderWriter \ |
| 45 |
Facades/System.Linq Facades/System.Runtime.Serialization.Primitives Facades/System.Xml.XDocument \ |
| 46 |
Facades/System.Net.NetworkInformation Facades/System.Runtime.Serialization.Xml Facades/System.Xml.XmlSerializer |
| 47 |
|
| 48 |
ASSEMBLIES += $(FACADE_ASSEMBLIES) |
| 49 |
|
| 50 |
# generated with (and then slightly tweaked): |
| 51 |
# for i in *.dll; do ikdasm --assemblyref $i | grep Name= | sed 's/.*Name=//g' | sed -e $'s/$/\\\n/g' | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g' -e "s/^/${i%.*}_REFS := /"; done |
| 52 |
Accessibility_REFS := mscorlib |
| 53 |
CustomMarshalers_REFS := mscorlib |
| 54 |
Microsoft.Build.Engine_REFS := mscorlib System.Xml Microsoft.Build.Framework Microsoft.Build.Utilities.v4.0 System System.Core |
| 55 |
Microsoft.Build.Framework_REFS := mscorlib System |
| 56 |
Microsoft.Build.Tasks.v4.0_REFS := mscorlib Microsoft.Build.Framework Microsoft.Build.Utilities.v4.0 System Microsoft.Build.Engine System.Xml System.Core |
| 57 |
Microsoft.Build.Utilities.v4.0_REFS := mscorlib Microsoft.Build.Framework System System.Xml |
| 58 |
Microsoft.Build_REFS := mscorlib Microsoft.Build.Framework System.Xml System System.Core |
| 59 |
Microsoft.CSharp_REFS := mscorlib System System.Core |
| 60 |
Microsoft.VisualBasic_REFS := mscorlib System System.Windows.Forms System.Drawing |
| 61 |
Microsoft.VisualC_REFS := mscorlib |
| 62 |
System.ComponentModel.Composition_REFS := mscorlib System System.Core |
| 63 |
System.ComponentModel.DataAnnotations_REFS := mscorlib System System.Core |
| 64 |
System.Configuration.Install_REFS := mscorlib System |
| 65 |
System.Configuration_REFS := mscorlib bare/System.Xml System |
| 66 |
System.Core_REFS := mscorlib System |
| •67 |
System.Data.DataSetExtensions_REFS := mscorlib System.Data System System.Core System.Xml |
| 68 |
System.Data.Entity_REFS := mscorlib System.Core System System.Data System.Runtime.Serialization System.ComponentModel.DataAnnotations System.Xml System.Xml.Linq System.Transactions System.Configuration |
| 69 |
System.Data.Linq_REFS := mscorlib System.Data System.Core System System.Xml System.Runtime.Serialization |
| •70 |
System.Data.OracleClient_REFS := mscorlib System.Data System System.Drawing System.EnterpriseServices System.Transactions System.Xml |
| 71 |
System.Data.Services.Client_REFS := mscorlib System System.Xml System.Core System.Xml.Linq |
| 72 |
System.Data.Services_REFS := mscorlib System.Configuration System.ServiceModel System.ServiceModel.Web System System.ServiceModel.Activation System.Core System.Data.Services.Client |
| 73 |
System.Data_REFS := mscorlib System.Configuration System.Xml System System.Numerics System.Core System.Transactions System.EnterpriseServices |
| •74 |
System.Design_REFS := mscorlib System.Drawing System.Drawing.Design System System.Windows.Forms System.Data bare/System.Web System.Configuration System.Xml Accessibility |
| 75 |
System.DirectoryServices.Protocols_REFS := mscorlib System.Xml System System.DirectoryServices |
| 76 |
System.DirectoryServices_REFS := mscorlib System |
| 77 |
System.Drawing.Design_REFS := mscorlib System.Drawing System.Windows.Forms System |
| 78 |
System.Drawing_REFS := mscorlib System |
| 79 |
System.Dynamic_REFS := mscorlib System.Core System |
| 80 |
System.EnterpriseServices_REFS := mscorlib System.Transactions |
| 81 |
System.IO.Compression.FileSystem_REFS := mscorlib System.IO.Compression System |
| 82 |
System.IO.Compression_REFS := mscorlib System |
| 83 |
System.IdentityModel.Selectors_REFS := mscorlib System.Xml System System.IdentityModel |
| 84 |
System.IdentityModel_REFS := mscorlib System.Configuration System.Runtime.Serialization System.Security System System.Xml System.Web.ApplicationServices |
| 85 |
System.Management_REFS := mscorlib System System.Configuration.Install |
| 86 |
System.Messaging_REFS := mscorlib System System.Drawing System.Configuration.Install System.Xml System.Windows.Forms |
| 87 |
System.Net.Http.WebRequest_REFS := mscorlib System.Net.Http System |
| 88 |
System.Net.Http_REFS := mscorlib System System.Core |
| 89 |
System.Net_REFS := mscorlib System |
| 90 |
System.Numerics_REFS := mscorlib |
| 91 |
System.Runtime.Caching_REFS := mscorlib System System.Data System.Configuration |
| 92 |
System.Runtime.DurableInstancing_REFS := mscorlib System.Xml.Linq System.ServiceModel.Internals System.Transactions System.Core System.Runtime.Serialization System |
| 93 |
System.Runtime.Remoting_REFS := mscorlib System System.Web System.Xml System.Runtime.Serialization.Formatters.Soap |
| 94 |
System.Runtime.Serialization.Formatters.Soap_REFS := mscorlib System.Xml |
| 95 |
System.Runtime.Serialization_REFS := mscorlib System.Xml System.ServiceModel.Internals System System.Configuration System.Core |
| 96 |
System.Security_REFS := mscorlib System System.Xml |
| 97 |
System.ServiceModel.Activation_REFS := mscorlib System.ServiceModel System System.Web |
| 98 |
System.ServiceModel.Discovery_REFS := mscorlib System.ServiceModel System System.Xml System.Xml.Linq System.Runtime.Serialization System.Configuration System.Core |
| 99 |
System.ServiceModel.Internals_REFS := mscorlib System System.Xml |
| •100 |
System.ServiceModel.Routing_REFS := mscorlib System.ServiceModel System.Configuration System System.Runtime.Serialization System.Xml |
| 101 |
System.ServiceModel.Web_REFS := mscorlib System.ServiceModel System System.Runtime.Serialization System.Xml System.Xml.Linq System.Configuration System.ServiceModel.Activation System.Core System.Web.Extensions |
| 102 |
System.ServiceModel_REFS := mscorlib System.Xml System.Xml.Linq System.Xaml System System.EnterpriseServices System.Transactions System.IdentityModel System.Runtime.Serialization System.Runtime.DurableInstancing System.Security System.Web.ApplicationServices System.Messaging System.Net.Http System.IdentityModel.Selectors System.Web.Services System.Configuration System.Web System.Core bare/System.ServiceModel.Activation |
| 103 |
System.ServiceProcess_REFS := mscorlib System System.Configuration.Install System.Windows.Forms |
| 104 |
System.Transactions_REFS := mscorlib System.Configuration |
| •105 |
System.Web.Abstractions_REFS := mscorlib System.Web System |
| 106 |
System.Web.ApplicationServices_REFS := mscorlib System System.Configuration |
| 107 |
System.Web.DynamicData_REFS := mscorlib System System.Drawing System.Web System.Web.Extensions System.Core System.ComponentModel.DataAnnotations System.Data.Linq |
| •108 |
System.Web.Extensions.Design_REFS := mscorlib System System.Design System.Drawing System.Web.Extensions System.Windows.Forms System.Web |
| 109 |
System.Web.Extensions_REFS := mscorlib System.Web System System.Xml System.Drawing System.Data.Linq System.Web.Services System.ServiceModel System.ServiceModel.Activation System.Runtime.Serialization System.Web.ApplicationServices System.Core System.Configuration |
| 110 |
System.Web.Routing_REFS := mscorlib System.Web |
| 111 |
System.Web.Services_REFS := mscorlib System System.Configuration System.EnterpriseServices System.Xml bare/System.Web System.DirectoryServices System.Design System.Data |
| 112 |
System.Web_REFS := mscorlib System.Configuration System.Xml System System.Data System.Drawing System.Runtime.Serialization.Formatters.Soap System.Core System.EnterpriseServices System.Web.ApplicationServices System.ComponentModel.DataAnnotations System.Web.Services |
| •113 |
System.Windows.Forms.DataVisualization_REFS := mscorlib System.Drawing System.Windows.Forms System System.Xml System.Data System.Core Accessibility |
| 114 |
System.Windows.Forms_REFS := mscorlib System System.Xml System.Drawing System.Runtime.Serialization.Formatters.Soap Accessibility System.Configuration System.Data |
| 115 |
System.Windows_REFS := mscorlib System |
| 116 |
System.Xaml_REFS := mscorlib System System.Xml System.Core |
| 117 |
System.Xml.Linq_REFS := mscorlib System System.Runtime.Serialization System.Xml System.Core |
| 118 |
System.Xml.Serialization_REFS := mscorlib System.ServiceModel System.Xml |
| 119 |
System.Xml_REFS := mscorlib System System.Configuration |
| 120 |
System_REFS := mscorlib bare/System.Configuration bare/System.Xml |
| 121 |
WindowsBase_REFS := mscorlib System.Xaml System System.Xml System.Security |
| 122 |
mscorlib_REFS := |
| 123 |
|
| 124 |
bare/System_REFS := mscorlib |
| 125 |
bare/System.Xml_REFS := mscorlib bare/System |
| 126 |
bare/System.Configuration_REFS := mscorlib bare/System bare/System.Xml |
| 127 |
bare/System.ServiceModel.Activation_REFS := mscorlib System |
| 128 |
bare/System.Web_REFS := mscorlib System.Drawing System System.Xml System.Core System.Configuration System.Data System.Web.ApplicationServices System.ComponentModel.DataAnnotations System.EnterpriseServices |
| 129 |
|
| 130 |
Facades/System.Collections.Concurrent_REFS := mscorlib System |
| 131 |
Facades/System.Collections_REFS := mscorlib System.Core System |
| 132 |
Facades/System.ComponentModel.Annotations_REFS := mscorlib System.ComponentModel.DataAnnotations |
| 133 |
Facades/System.ComponentModel.EventBasedAsync_REFS := mscorlib System |
| 134 |
Facades/System.ComponentModel_REFS := mscorlib System |
| 135 |
Facades/System.Diagnostics.Contracts_REFS := mscorlib |
| 136 |
Facades/System.Diagnostics.Debug_REFS := mscorlib System |
| 137 |
Facades/System.Diagnostics.Tools_REFS := mscorlib System |
| 138 |
Facades/System.Diagnostics.Tracing_REFS := mscorlib |
| •139 |
Facades/System.Dynamic.Runtime_REFS := mscorlib System.Core System |
| 140 |
Facades/System.Globalization_REFS := mscorlib |
| 141 |
Facades/System.IO_REFS := mscorlib System |
| 142 |
Facades/System.Linq.Expressions_REFS := mscorlib System.Core |
| 143 |
Facades/System.Linq.Parallel_REFS := mscorlib System.Core |
| 144 |
Facades/System.Linq.Queryable_REFS := mscorlib System.Core |
| 145 |
Facades/System.Linq_REFS := mscorlib System.Core |
| 146 |
Facades/System.Net.NetworkInformation_REFS := mscorlib System |
| 147 |
Facades/System.Net.Primitives_REFS := mscorlib System |
| 148 |
Facades/System.Net.Requests_REFS := mscorlib System |
| 149 |
Facades/System.ObjectModel_REFS := mscorlib System |
| 150 |
Facades/System.Reflection.Emit.ILGeneration_REFS := mscorlib |
| 151 |
Facades/System.Reflection.Emit.Lightweight_REFS := mscorlib |
| 152 |
Facades/System.Reflection.Emit_REFS := mscorlib |
| 153 |
Facades/System.Reflection.Extensions_REFS := mscorlib |
| 154 |
Facades/System.Reflection.Primitives_REFS := mscorlib |
| 155 |
Facades/System.Reflection_REFS := mscorlib |
| 156 |
Facades/System.Resources.ResourceManager_REFS := mscorlib |
| 157 |
Facades/System.Runtime.Extensions_REFS := mscorlib System |
| 158 |
Facades/System.Runtime.InteropServices.WindowsRuntime_REFS := mscorlib |
| 159 |
Facades/System.Runtime.InteropServices_REFS := mscorlib System.Core System |
| 160 |
Facades/System.Runtime.Numerics_REFS := mscorlib System.Numerics |
| 161 |
Facades/System.Runtime.Serialization.Json_REFS := mscorlib System.Runtime.Serialization |
| 162 |
Facades/System.Runtime.Serialization.Primitives_REFS := mscorlib System.Runtime.Serialization |
| •163 |
Facades/System.Runtime.Serialization.Xml_REFS := mscorlib System.Runtime.Serialization System System.Xml Facades/System.Runtime.Serialization.Primitives |
| 164 |
Facades/System.Runtime_REFS := mscorlib System.Core System System.ComponentModel.Composition |
| 165 |
Facades/System.Security.Principal_REFS := mscorlib |
| 166 |
Facades/System.ServiceModel.Duplex_REFS := mscorlib System.ServiceModel |
| 167 |
Facades/System.ServiceModel.Http_REFS := mscorlib System.ServiceModel |
| 168 |
Facades/System.ServiceModel.NetTcp_REFS := mscorlib System.ServiceModel |
| •169 |
Facades/System.ServiceModel.Primitives_REFS := mscorlib System.IdentityModel System.ServiceModel System.Xml |
| 170 |
Facades/System.ServiceModel.Security_REFS := mscorlib System.ServiceModel |
| 171 |
Facades/System.Text.Encoding.Extensions_REFS := mscorlib |
| 172 |
Facades/System.Text.Encoding_REFS := mscorlib |
| 173 |
Facades/System.Text.RegularExpressions_REFS := mscorlib System |
| 174 |
Facades/System.Threading.Tasks.Parallel_REFS := mscorlib |
| 175 |
Facades/System.Threading.Tasks_REFS := mscorlib System.Core |
| 176 |
Facades/System.Threading_REFS := mscorlib System System.Core |
| 177 |
Facades/System.Xml.ReaderWriter_REFS := mscorlib System.Xml |
| •178 |
Facades/System.Xml.XDocument_REFS := mscorlib System.Xml.Linq System.Xml |
| 179 |
Facades/System.Xml.XmlSerializer_REFS := mscorlib System.Xml |
| 180 |
|
| 181 |
mscorlib_CSC_ARGS := -runtimemetadataversion:v4.0.30319 |
| 182 |
System_CSC_ARGS := -d:CONFIG_DEP -d:XML_DEP |
| 183 |
System.Configuration_CSC_ARGS := -d:CONFIG_DEP |
| 184 |
System.Xml_CSC_ARGS := -d:CONFIG_DEP |
| 185 |
System.ServiceModel.Activation_CSC_ARGS := -d:SERVICEMODEL_DEP -d:WEB_DEP |
| 186 |
System.Web_CSC_ARGS := -d:SERVICES_DEP |
| 187 |
|
| 188 |
ECMA_KEY := ../../../mcs/class/ecma.pub # Public Key Token: b77a5c561934e089 |
| 189 |
WINFX_KEY := ../../../mcs/class/winfx.pub # Public Key Token: 31bf3856ad364e35 |
| 190 |
MSFINAL_KEY := ../../../mcs/class/msfinal.pub # Public Key Token: b03f5f7f11d50a3a |
| 191 |
|
| 192 |
ECMA_KEY_ASSEMBLIES := System.ComponentModel.Composition System.Core System.Data.DataSetExtensions \ |
| 193 |
System.Data.Entity System.Data.Linq System.Data.OracleClient System.Data.Services.Client System.Data.Services \ |
| 194 |
System.Data System.IO.Compression.FileSystem System.IO.Compression System.IdentityModel.Selectors System.IdentityModel \ |
| 195 |
System.Numerics System.Runtime.Remoting System.Runtime.Serialization System.ServiceModel.Internals \ |
| 196 |
System.ServiceModel System.Transactions System.Windows.Forms System.Xaml \ |
| 197 |
System.Xml.Linq System.Xml.Serialization System.Xml System mscorlib bare/System bare/System.Xml |
| 198 |
|
| 199 |
WINFX_KEY_ASSEMBLIES := System.ComponentModel.DataAnnotations \ |
| 200 |
System.Runtime.DurableInstancing System.ServiceModel.Activation System.ServiceModel.Discovery System.ServiceModel.Routing \ |
| 201 |
System.ServiceModel.Web System.Web.Abstractions System.Web.ApplicationServices System.Web.DynamicData \ |
| 202 |
System.Web.Extensions.Design System.Web.Extensions \ |
| 203 |
System.Web.Routing \ |
| 204 |
System.Windows.Forms.DataVisualization \ |
| 205 |
WindowsBase bare/System.ServiceModel.Activation |
| 206 |
|
| 207 |
MSFINAL_KEY_ASSEMBLIES := Accessibility CustomMarshalers Microsoft.Build.Engine Microsoft.Build.Framework \ |
| 208 |
Microsoft.Build.Tasks.v4.0 Microsoft.Build.Utilities.v4.0 Microsoft.Build Microsoft.CSharp Microsoft.VisualBasic Microsoft.VisualC \ |
| 209 |
System.Configuration.Install System.Configuration System.Design System.DirectoryServices.Protocols \ |
| 210 |
System.DirectoryServices System.Drawing.Design System.Drawing System.Dynamic System.EnterpriseServices System.Management \ |
| 211 |
System.Messaging System.Net.Http.WebRequest System.Net.Http System.Net System.Runtime.Caching \ |
| 212 |
System.Runtime.Serialization.Formatters.Soap System.Security System.ServiceProcess System.Web.Services \ |
| 213 |
System.Web System.Windows bare/System.Configuration bare/System.Web |
| 214 |
|
| 215 |
all: $(addsuffix .dll, $(ASSEMBLIES)) |
| 216 |
|
| 217 |
clean: |
| 218 |
rm -f *.dll |
| 219 |
rm -f bare/*.dll |
| 220 |
rm -f Facades/*.dll |
| 221 |
|
| 222 |
define KEYFILE_TEMPLATE |
| 223 |
$(1)_KEYFILE := $(2) |
| 224 |
endef |
| 225 |
|
| 226 |
define ASSEMBLY_TEMPLATE |
| 227 |
$(1).dll: $(addprefix $(SOURCEDIR),$(subst bare/,,$(1)).cs) $(wildcard $(SOURCEDIR)$(1).extra.cs) $(addsuffix .dll, $($(1)_REFS)) $($(1)_KEYFILE) |
| 228 |
@mkdir -p bare/ |
| 229 |
@mkdir -p Facades/ |
| 230 |
$(Q_CSC) $(CSC) -out:$(1).dll $(CSC_COMMON_ARGS) -keyfile:$($(1)_KEYFILE) $($(1)_CSC_ARGS) $(addprefix -r:, $(addsuffix .dll, $($(1)_REFS))) $(wildcard $(SOURCEDIR)$(1).extra.cs) $$< |
| 231 |
endef |
| 232 |
|
| 233 |
$(foreach asm, $(ECMA_KEY_ASSEMBLIES), $(eval $(call KEYFILE_TEMPLATE,$(asm), $(ECMA_KEY)))) |
| 234 |
$(foreach asm, $(WINFX_KEY_ASSEMBLIES), $(eval $(call KEYFILE_TEMPLATE,$(asm), $(WINFX_KEY)))) |
| 235 |
$(foreach asm, $(MSFINAL_KEY_ASSEMBLIES), $(eval $(call KEYFILE_TEMPLATE,$(asm), $(MSFINAL_KEY)))) |
| 236 |
$(foreach asm, $(FACADE_ASSEMBLIES), $(eval $(call KEYFILE_TEMPLATE,$(asm), $(MSFINAL_KEY)))) |
| 237 |
|
| 238 |
$(foreach asm, $(ASSEMBLIES), $(eval $(call ASSEMBLY_TEMPLATE,$(asm)))) |