In ilasm/codegen:
[mcs.git] / bmcs / Makefile
blobf5a965a23827b9f931376074cd028679609c9317
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.
6 thisdir := bmcs
7 SUBDIRS :=
8 include ../build/rules.make
10 #uncomment to enable some debug stuff
11 #DEBUG_FLAGS=/define:MCS_DEBUG
13 BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/net_2_0_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/net_2_0_bootstrap/mcs.exe $(DEBUG_FLAGS)
15 BUILT_SOURCES = mb-parser.cs
17 EXTRA_DISTFILES = mb-parser.jay
19 PROGRAM_COMPILE = $(BOOT_COMPILE)
21 CLEAN_FILES = y.output
23 PROGRAM = bmcs.exe
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 $@
28 include ../build/executable.make
30 bmcs.exe: mb-parser.cs
31 gmcs -d:NET_1_1 -d:ONLY_1_1 -debug /target:exe /out:bmcs.exe /r:Microsoft.VisualBasic.dll mb-parser.cs @bmcs.exe.sources -nowarn:219 -nowarn:162
33 winstall: all
34 cp bmcs.exe $(prefix)/lib/mono/2.0/
36 diffus:
37 diff --exclude='.svn' --exclude='*-parser.*' --exclude='*-tokenizer.cs' -ruN ../gmcs ../bmcs