2009-03-11 Zoltan Varga <vargaz@gmail.com>
[mcs.git] / tools / csharplib / Makefile
blobd0452028edd431d6ccbb212b2e12479ec2aa682d
1 thisdir = tools/csharplib
2 SUBDIRS =
3 include ../../build/rules.make
5 LINKER = $(topdir)/class/lib/net_1_1/monolinker.exe
7 LOCAL_MCS_FLAGS = -d:GMCS_SOURCE -d:NET_1_1 -d:NET_2_0 -r:System -r:System.Xml
9 Mono.CSharp.dll.sources: ../../mcs/gmcs.exe.sources Makefile
10 cat ../../mcs/gmcs.exe.sources | grep -v AssemblyInfo.cs | sed -e 's,^,../../mcs/,' -e 's,mcs/../,,' > Mono.CSharp.dll.sources
11 echo "../../mcs/cs-parser.cs" >> Mono.CSharp.dll.sources
12 echo sign.cs >> Mono.CSharp.dll.sources
14 LIBRARY_NEEDS_POSTPROCESSING = yes
16 LIBRARY = Mono.CSharp.dll
18 docs = \
19 en/ns-Mono.CSharp.xml \
20 en/index.xml \
21 en/Mono.CSharp/Evaluator.xml \
22 en/Mono.CSharp/Evaluator+NoValueSet.xml \
23 en/Mono.CSharp/InteractiveBase.xml \
24 en/Mono.CSharp/Report.xml \
25 en/Mono.CSharp/CompiledMethod.xml \
26 en/Mono.CSharp/InteractiveBase+Simple.xml
28 EXTRA_DISTFILES = compiler.info link.xml $(docs)
30 include ../../build/library.make
32 MONO_PATH=MONO_PATH="$(topdir)/class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$(topdir)/class/lib/net_1_1$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH"
34 $(the_lib): $(the_libdir)/.stamp Makefile Mono.CSharp.dll.sources $(build_lib)
35 $(MKINSTALLDIRS) fixup
36 $(MONO_PATH) $(RUNTIME) $(LINKER) -d fixup/$(PROFILE) -o out -l none -c skip -b true -x link.xml -s Mono.Tuner.AdjustVisibility,Mono.Tuner:OutputStep -s Mono.Tuner.PrintStatus,Mono.Tuner:OutputStep -i compiler.info
37 $(SN) $(SNFLAGS) out/Mono.CSharp.dll $(topdir)/class/mono.snk
38 cp out/Mono.CSharp.dll $(the_lib)