2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / bmcs / Makefile
1 #
2 # This makefile needs work, currently we overwrite the value of `bmcs.exe',
3 # the reason is that we need this to be compiled with gmcs, so it uses the
4 # .NET 2.0 profile.
5 #
6 thisdir := bmcs
7 SUBDIRS := 
8 include ../build/rules.make
9
10 #uncomment to enable some debug stuff
11 #DEBUG_FLAGS=/define:MCS_DEBUG
12
13 BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/net_2_0_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(topdir)/class/lib/net_2_0_bootstrap/mcs.exe $(DEBUG_FLAGS)
14
15 BUILT_SOURCES = mb-parser.cs
16
17 EXTRA_DISTFILES = mb-parser.jay
18
19 PROGRAM_COMPILE = $(BOOT_COMPILE)
20
21 CLEAN_FILES = y.output
22
23 PROGRAM = bmcs.exe
24
25 mb-parser.cs: mb-parser.jay $(topdir)/jay/skeleton.cs
26         $(topdir)/jay/jay -ctv < $(topdir)/jay/skeleton.cs $< > jay-tmp.out && mv jay-tmp.out $@
27
28 include ../build/executable.make
29
30 bmcs.exe: mb-parser.cs
31         gmcs    -d:NET_1_1 -d:ONLY_1_1 -debug /target:exe /out:bmcs.exe mb-parser.cs  @bmcs.exe.sources -nowarn:219 -nowarn:162
32
33 install-as-mbas: all
34         cp ../class/lib/default/bmcs.exe $(prefix)/lib/mono/1.0/mbas.exe
35
36 winstall: all
37         cp ../class/lib/default/bmcs.exe  /cygdrive/c/WINDOWS/Microsoft.NET/Framework/v1.1.4322/
38
39 winstall-as-mbas: all
40         cp ../class/lib/default/bmcs.exe  /cygdrive/c/WINDOWS/Microsoft.NET/Framework/v1.1.4322/
41         cp ../class/lib/default/bmcs.exe  /cygdrive/c/WINDOWS/Microsoft.NET/Framework/v1.1.4322/mbas.exe
42
43 diffus:
44         diff --exclude='.svn' --exclude='*-parser.*' --exclude='*-tokenizer.cs' -ruN ../gmcs ../bmcs