| 1 |
PROFILE := v4.0 |
| 2 |
SOURCEDIR := ../src/$(PROFILE)/ |
| 3 |
|
| 4 |
CSC ?= csc |
| 5 |
CSC_COMMON_ARGS := -nologo -noconfig -optimize -nostdlib -unsafe -deterministic -publicsign -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.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.IdentityModel.Selectors System.IdentityModel System.Management System.Messaging \ |
| 17 |
System.Net System.Numerics System.Runtime.Caching System.Runtime.DurableInstancing System.Runtime.Remoting \ |
| 18 |
System.Runtime.Serialization.Formatters.Soap System.Runtime.Serialization System.Security System.ServiceModel.Activation \ |
| 19 |
System.ServiceModel.Discovery System.ServiceModel.Routing System.ServiceModel.Web \ |
| 20 |
System.ServiceModel System.ServiceProcess System.Transactions System.Web.Abstractions \ |
| 21 |
System.Web.ApplicationServices System.Web.DynamicData System.Web.Extensions.Design System.Web.Extensions \ |
| 22 |
System.Web.Routing System.Web.Services System.Web System.Windows.Forms.DataVisualization System.Windows.Forms System.Xaml System.Xml.Linq \ |
| 23 |
System.Xml System WindowsBase mscorlib |
| 24 |
|
| 25 |
ASSEMBLIES += bare/System bare/System.Xml bare/System.Configuration bare/System.ServiceModel.Activation bare/System.Web |
| 26 |
|
| 27 |
# generated with (and then slightly tweaked): |
| 28 |
# 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 |
| 29 |
Accessibility_REFS := mscorlib |
| 30 |
CustomMarshalers_REFS := mscorlib |
| 31 |
Microsoft.Build.Engine_REFS := mscorlib System System.Xml Microsoft.Build.Framework Microsoft.Build.Utilities.v4.0 System.Core |
| 32 |
Microsoft.Build.Framework_REFS := mscorlib |
| 33 |
Microsoft.Build.Tasks.v4.0_REFS := mscorlib Microsoft.Build.Utilities.v4.0 Microsoft.Build.Framework System System.Core System.Xml Microsoft.Build.Engine |
| 34 |
Microsoft.Build.Utilities.v4.0_REFS := Microsoft.Build.Framework mscorlib System System.Xml |
| 35 |
Microsoft.Build_REFS := mscorlib Microsoft.Build.Framework System System.Xml System.Core |
| 36 |
Microsoft.CSharp_REFS := mscorlib System.Core |
| 37 |
Microsoft.VisualBasic_REFS := mscorlib System System.Windows.Forms System.Drawing |
| 38 |
Microsoft.VisualC_REFS := mscorlib |
| 39 |
System.ComponentModel.Composition_REFS := mscorlib System.Core System |
| 40 |
System.ComponentModel.DataAnnotations_REFS := mscorlib System System.Core |
| 41 |
System.Configuration.Install_REFS := mscorlib System |
| 42 |
System.Configuration_REFS := mscorlib System bare/System.Xml |
| 43 |
System.Core_REFS := mscorlib System |
| 44 |
System.Data.DataSetExtensions_REFS := System.Data mscorlib System.Core System |
| 45 |
System.Data.Linq_REFS := mscorlib System.Data System System.Core System.Xml System.Runtime.Serialization |
| 46 |
System.Data.OracleClient_REFS := mscorlib System.Data System System.EnterpriseServices System.Drawing |
| 47 |
System.Data.Services.Client_REFS := mscorlib System.Core System System.Xml System.Xml.Linq |
| 48 |
System.Data.Services_REFS := mscorlib System.Core System System.Data.Services.Client System.ServiceModel System.ServiceModel.Web System.ServiceModel.Activation |
| 49 |
System.Data_REFS := mscorlib System System.Xml System.Configuration System.Transactions System.EnterpriseServices |
| 50 |
System.Design_REFS := mscorlib System System.Windows.Forms System.Data System.Drawing System.Xml bare/System.Web System.Configuration |
| 51 |
System.DirectoryServices.Protocols_REFS := mscorlib System System.Xml System.DirectoryServices |
| 52 |
System.DirectoryServices_REFS := mscorlib System |
| 53 |
System.Drawing.Design_REFS := System.Windows.Forms System.Drawing mscorlib System |
| 54 |
System.Drawing_REFS := mscorlib System |
| 55 |
System.Dynamic_REFS := mscorlib System.Core System |
| 56 |
System.EnterpriseServices_REFS := mscorlib System.Transactions |
| 57 |
System.IdentityModel.Selectors_REFS := System.Xml mscorlib System System.IdentityModel |
| 58 |
System.IdentityModel_REFS := mscorlib System System.Web.ApplicationServices System.Xml System.Runtime.Serialization System.Security |
| 59 |
System.Management_REFS := mscorlib System System.Configuration.Install |
| 60 |
System.Messaging_REFS := mscorlib System System.Configuration.Install System.Xml System.Windows.Forms System.Drawing |
| 61 |
System.Net_REFS := mscorlib System |
| 62 |
System.Numerics_REFS := mscorlib |
| 63 |
System.Runtime.Caching_REFS := mscorlib System System.Core System.Configuration System.Data |
| 64 |
System.Runtime.DurableInstancing_REFS := mscorlib System.Xml.Linq |
| 65 |
System.Runtime.Remoting_REFS := mscorlib System.Runtime.Serialization.Formatters.Soap System System.Xml System.Web |
| 66 |
System.Runtime.Serialization.Formatters.Soap_REFS := System.Xml mscorlib |
| 67 |
System.Runtime.Serialization_REFS := mscorlib System.Xml System System.Configuration System.Core |
| 68 |
System.Security_REFS := mscorlib System.Xml System |
| 69 |
System.ServiceModel.Activation_REFS := mscorlib System.ServiceModel System |
| 70 |
System.ServiceModel.Discovery_REFS := System.ServiceModel System mscorlib System.Configuration System.Runtime.Serialization System.Xml System.Xml.Linq System.Core |
| 71 |
System.ServiceModel.Routing_REFS := System.ServiceModel mscorlib System.Runtime.Serialization System System.Configuration System.Core |
| 72 |
System.ServiceModel.Web_REFS := System.ServiceModel mscorlib System.Runtime.Serialization System.Configuration System System.Xml System.ServiceModel.Activation System.Core System.Web.Extensions |
| 73 |
System.ServiceModel_REFS := mscorlib System System.Runtime.Serialization System.Xml System.Web System.IdentityModel System.Security System.Messaging System.Core System.Transactions System.Configuration System.Web.Services System.Web.ApplicationServices bare/System.ServiceModel.Activation System.IdentityModel.Selectors |
| 74 |
System.ServiceProcess_REFS := System mscorlib System.Configuration.Install System.Windows.Forms |
| 75 |
System.Transactions_REFS := mscorlib System.Configuration |
| 76 |
System.Web.Abstractions_REFS := mscorlib System.Web |
| 77 |
System.Web.ApplicationServices_REFS := System mscorlib System.Configuration |
| 78 |
System.Web.DynamicData_REFS := mscorlib System.Data.Linq System System.Web System.Web.Extensions System.Core System.ComponentModel.DataAnnotations System.Drawing |
| 79 |
System.Web.Extensions.Design_REFS := mscorlib System System.Design System.Drawing |
| 80 |
System.Web.Extensions_REFS := mscorlib System.Core System System.Web System.Web.ApplicationServices System.Configuration System.Web.Services System.Xml System.ServiceModel System.Data.Linq System.Drawing |
| 81 |
System.Web.Routing_REFS := mscorlib System.Web |
| 82 |
System.Web.Services_REFS := System.EnterpriseServices bare/System.Web System.Configuration mscorlib System System.Xml |
| 83 |
System.Web_REFS := System.Drawing mscorlib System System.Xml System.Core System.Configuration System.Data System.Web.ApplicationServices System.Runtime.Serialization.Formatters.Soap System.Web.Services System.EnterpriseServices |
| 84 |
System.Windows.Forms.DataVisualization_REFS := System.Drawing mscorlib System.Windows.Forms System System.Core System.Xml System.Data |
| 85 |
System.Windows.Forms_REFS := mscorlib System System.Xml System.Drawing System.Configuration System.Runtime.Serialization.Formatters.Soap Accessibility System.Data |
| 86 |
System.Xaml_REFS := mscorlib System System.Xml System.Core |
| 87 |
System.Xml.Linq_REFS := mscorlib System.Xml System.Core |
| 88 |
System.Xml_REFS := mscorlib System System.Configuration |
| 89 |
System_REFS := mscorlib bare/System.Configuration bare/System.Xml |
| 90 |
WindowsBase_REFS := mscorlib System System.Xml System.Xaml |
| 91 |
mscorlib_REFS := |
| 92 |
|
| 93 |
bare/System_REFS := mscorlib |
| 94 |
bare/System.Xml_REFS := mscorlib bare/System |
| 95 |
bare/System.Configuration_REFS := mscorlib bare/System bare/System.Xml |
| 96 |
bare/System.ServiceModel.Activation_REFS := mscorlib System |
| 97 |
bare/System.Web_REFS := mscorlib System.Drawing System System.Xml System.Core System.Configuration System.Data System.Web.ApplicationServices System.ComponentModel.DataAnnotations System.EnterpriseServices |
| 98 |
|
| 99 |
mscorlib_CSC_ARGS := -runtimemetadataversion:v4.0.30319 |
| 100 |
System_CSC_ARGS := -d:CONFIG_DEP -d:XML_DEP |
| 101 |
System.Configuration_CSC_ARGS := -d:CONFIG_DEP |
| 102 |
System.Xml_CSC_ARGS := -d:CONFIG_DEP |
| 103 |
System.ServiceModel.Activation_CSC_ARGS := -d:SERVICEMODEL_DEP |
| 104 |
System.Web_CSC_ARGS := -d:SERVICES_DEP |
| 105 |
|
| 106 |
ECMA_KEY := ../../../mcs/class/ecma.pub |
| 107 |
WINFX_KEY := ../../../mcs/class/winfx.pub |
| 108 |
MSFINAL_KEY := ../../../mcs/class/msfinal.pub |
| 109 |
|
| 110 |
ECMA_KEY_ASSEMBLIES := System.ComponentModel.Composition System.Core System.Data.DataSetExtensions \ |
| 111 |
System.Data.Linq System.Data.OracleClient System.Data.Services.Client System.Data.Services \ |
| 112 |
System.Data System.IdentityModel.Selectors System.IdentityModel \ |
| 113 |
System.Dynamic System.Numerics System.Runtime.Remoting System.Runtime.Serialization \ |
| 114 |
System.ServiceModel System.Transactions System.Windows.Forms System.Xaml \ |
| 115 |
System.Xml.Linq System.Xml System mscorlib bare/System bare/System.Xml |
| 116 |
|
| 117 |
WINFX_KEY_ASSEMBLIES := System.ComponentModel.DataAnnotations \ |
| 118 |
System.Runtime.DurableInstancing System.ServiceModel.Activation System.ServiceModel.Discovery System.ServiceModel.Routing \ |
| 119 |
System.ServiceModel.Web System.Web.Abstractions System.Web.ApplicationServices System.Web.DynamicData \ |
| 120 |
System.Web.Extensions.Design System.Web.Extensions System.Web.Routing \ |
| 121 |
System.Windows.Forms.DataVisualization WindowsBase bare/System.ServiceModel.Activation |
| 122 |
|
| 123 |
MSFINAL_KEY_ASSEMBLIES := Accessibility CustomMarshalers Microsoft.Build.Engine Microsoft.Build.Framework \ |
| 124 |
Microsoft.Build.Tasks.v4.0 Microsoft.Build.Utilities.v4.0 Microsoft.Build Microsoft.CSharp Microsoft.VisualBasic Microsoft.VisualC \ |
| 125 |
System.Configuration.Install System.Configuration System.Design System.DirectoryServices.Protocols \ |
| 126 |
System.DirectoryServices System.Drawing.Design System.Drawing System.EnterpriseServices System.Management \ |
| 127 |
System.Messaging System.Net System.Runtime.Caching \ |
| 128 |
System.Runtime.Serialization.Formatters.Soap System.Security System.ServiceProcess System.Web.Services \ |
| 129 |
System.Web bare/System.Configuration bare/System.Web |
| 130 |
|
| 131 |
all: $(addsuffix .dll, $(ASSEMBLIES)) |
| 132 |
|
| 133 |
clean: |
| 134 |
rm -f *.dll |
| 135 |
rm -f bare/*.dll |
| 136 |
|
| 137 |
define KEYFILE_TEMPLATE |
| 138 |
$(1)_KEYFILE := $(2) |
| 139 |
endef |
| 140 |
|
| 141 |
define ASSEMBLY_TEMPLATE |
| 142 |
$(1).dll: $(addprefix $(SOURCEDIR),$(subst bare/,,$(1)).cs) $(wildcard $(SOURCEDIR)$(1).extra.cs) $(addsuffix .dll, $($(1)_REFS)) $($(1)_KEYFILE) |
| 143 |
@mkdir -p bare/ |
| 144 |
$(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) $$< |
| 145 |
endef |
| 146 |
|
| 147 |
$(foreach asm, $(ECMA_KEY_ASSEMBLIES), $(eval $(call KEYFILE_TEMPLATE,$(asm), $(ECMA_KEY)))) |
| 148 |
$(foreach asm, $(WINFX_KEY_ASSEMBLIES), $(eval $(call KEYFILE_TEMPLATE,$(asm), $(WINFX_KEY)))) |
| 149 |
$(foreach asm, $(MSFINAL_KEY_ASSEMBLIES), $(eval $(call KEYFILE_TEMPLATE,$(asm), $(MSFINAL_KEY)))) |
| 150 |
|
| 151 |
$(foreach asm, $(ASSEMBLIES), $(eval $(call ASSEMBLY_TEMPLATE,$(asm)))) |