2017-04-11 11:25:27 +00:00
PROFILE := v3.5
SOURCEDIR := ../src/$( PROFILE) /
CSC ?= csc
CSC_COMMON_ARGS := -nologo -noconfig -optimize -nostdlib -unsafe -deterministic -publicsign -debug- -target:library -nowarn:612 -nowarn:618
Q_CSC = $( if $( V) ,,@echo " CSC [ $( PROFILE) ] $( 1) " ; )
2017-10-19 20:04:20 +00:00
ASSEMBLIES := Microsoft.Build.Engine Microsoft.Build.Framework Microsoft.Build.Tasks.v3.5 Microsoft.Build.Utilities.v3.5
2017-04-11 11:25:27 +00:00
# generated with (and then slightly tweaked):
# 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
Microsoft.Build.Engine_REFS := ../v2.0/mscorlib ../v2.0/System ../v2.0/System.Xml Microsoft.Build.Framework Microsoft.Build.Utilities.v3.5 ../v2.0/System.Core
Microsoft.Build.Framework_REFS := ../v2.0/mscorlib
2017-10-19 20:04:20 +00:00
Microsoft.Build.Tasks.v3.5_REFS := ../v2.0/mscorlib Microsoft.Build.Utilities.v3.5 Microsoft.Build.Framework ../v2.0/System ../v2.0/System.Core ../v2.0/System.Xml Microsoft.Build.Engine
2017-04-11 11:25:27 +00:00
Microsoft.Build.Utilities.v3.5_REFS := Microsoft.Build.Framework ../v2.0/mscorlib ../v2.0/System
MSFINAL_KEY := ../../../mcs/class/msfinal.pub
MSFINAL_KEY_ASSEMBLIES := Microsoft.Build.Engine Microsoft.Build.Framework Microsoft.Build.Tasks.v3.5 Microsoft.Build.Utilities.v3.5
all : $( addsuffix .dll , $ ( ASSEMBLIES ) )
clean :
rm -f *.dll
d e f i n e K E Y F I L E _ T E M P L A T E
$(1)_KEYFILE := $( 2)
e n d e f
d e f i n e A S S E M B L Y _ T E M P L A T E
$(1).dll : $( addprefix $ ( SOURCEDIR ) ,$ ( 1) .cs ) $( addsuffix .dll , $ ( $ ( 1) _REFS ) ) $( $ ( 1) _KEYFILE )
$( Q_CSC) $( CSC) -out:$( 1) .dll $( CSC_COMMON_ARGS) -keyfile:$( $( 1) _KEYFILE) $( addprefix -r:, $( addsuffix .dll, $( $( 1) _REFS) ) ) $$ <
e n d e f
$( foreach asm , $ ( MSFINAL_KEY_ASSEMBLIES ) , $ ( eval $ ( call KEYFILE_TEMPLATE ,$ ( asm ) , $ ( MSFINAL_KEY ) ) ) )
$( foreach asm , $ ( ASSEMBLIES ) , $ ( eval $ ( call ASSEMBLY_TEMPLATE ,$ ( asm ) ) ) )