3 include ../build/rules.make
5 BUILT_SOURCES = cs-parser.cs
15 PROGRAM = $(topdir)/class/lib/$(PROFILE)/mcs.exe
16 PROGRAM_COMPILE = $(BOOT_COMPILE)
18 CLEAN_FILES = y.output *.exe *.mdb
20 cs-parser.cs: cs-parser.jay $(topdir)/jay/skeleton.cs
21 $(topdir)/jay/jay -ctv < $(topdir)/jay/skeleton.cs $< > jay-tmp.out && mv jay-tmp.out $@
23 ifeq (net_2_0_bootstrap, $(PROFILE))
25 all-local $(STD_TARGETS:=-local):
28 all-local: $(PROGRAM) $(PROGRAM).config
29 clean-local: clean-program
31 rm -f $(PROGRAM) $(PROGRAM).config
33 progdir = $(dir $(PROGRAM))
38 $(PROGRAM): $(topdir)/class/lib/default/mcs.exe | $(progdir)
41 $(PROGRAM).config: $(topdir)/gmcs/gmcs.exe.config | $(progdir)
45 include ../build/executable.make
48 ifeq (default, $(PROFILE))
49 # Utility rule to make debugging somewhat easier.
53 test ! -f $<.mdb || cp -p $<.mdb $@.mdb
60 # This used to be called test, but that conflicts with the global
63 btest: mcs2.exe mcs3.exe
64 ls -l mcs2.exe mcs3.exe
67 $(TIME) $(RUNTIME) $(RUNTIME_FLAGS) $(PROGRAM) $(USE_MCS_FLAGS) -target:exe -out:$@ $(BUILT_SOURCES) @$(response)
70 $(TIME) $(RUNTIME) $(RUNTIME_FLAGS) ./mcs2.exe $(USE_MCS_FLAGS) -target:exe -out:$@ $(BUILT_SOURCES) @$(response)
73 wc -l $(BUILT_SOURCES) `cat $(sourcefile)`
76 rm -f mcs2.exe mcs3.exe
77 $(MAKE) USE_MCS_FLAGS="-d:NET_1_1 -d:ONLY_1_1" btest
79 # we need this because bash tries to use its own crappy timer
80 FRIENDLY_TIME = $(shell which time) -f'%U seconds'
85 @ $(MAKE) TIME="$(FRIENDLY_TIME)" mcs2.exe > /dev/null || (echo FAILED; exit 1)
88 @ $(MAKE) TIME="$(FRIENDLY_TIME)" mcs3.exe > /dev/null || (echo FAILED; exit 1)
93 @ rm -f ../class/lib/mscorlib.dll
94 @ cd ../class/corlib ; $(MAKE) BOOTSTRAP_MCS='$(FRIENDLY_TIME) mono $$(topdir)/class/lib/$(PROFILE)/mcs.exe' > /dev/null || (echo FAILED; exit 1)
99 $(RUNTIME) $(RUNTIME_FLAGS) --profile=$(PROFILER) $(PROGRAM) $(USE_MCS_FLAGS) -target:exe -out:mcs2.exe $(BUILT_SOURCES) @$(response)