3 include ../build/rules.make
5 BUILT_SOURCES = cs-parser.cs
17 PROGRAM_COMPILE = $(BOOT_COMPILE)
18 PROGRAM_INSTALL_DIR = $(prefix)/lib/mono/1.0
20 CLEAN_FILES = y.output
22 cs-parser.cs: cs-parser.jay $(topdir)/jay/skeleton.cs
23 $(topdir)/jay/jay -ctv < $(topdir)/jay/skeleton.cs $< > jay-tmp.out && mv jay-tmp.out $@
25 include ../build/executable.make
31 # This used to be called test, but that conflicts with the global
34 btest: mcs2.exe mcs3.exe
35 ls -l mcs2.exe mcs3.exe
38 $(TIME) $(RUNTIME) ./mcs.exe $(USE_MCS_FLAGS) /target:exe /out:$@ $(BUILT_SOURCES) @$(response)
41 $(TIME) $(RUNTIME) ./mcs2.exe $(USE_MCS_FLAGS) /target:exe /out:$@ $(BUILT_SOURCES) @$(response)
44 wc -l $(BUILT_SOURCES) `cat $(sourcefile)`
47 rm -f mcs2.exe mcs3.exe
48 $(MAKE) USE_MCS_FLAGS= btest
50 # we need this because bash tries to use its own crappy timer
51 FRIENDLY_TIME = $(shell which time) -f'%U seconds'
56 @ $(MAKE) TIME="$(FRIENDLY_TIME)" mcs2.exe > /dev/null || (echo FAILED; exit 1)
59 @ $(MAKE) TIME="$(FRIENDLY_TIME)" mcs3.exe > /dev/null || (echo FAILED; exit 1)
64 @ rm -f ../class/lib/mscorlib.dll
65 @ cd ../class/corlib ; $(MAKE) BOOTSTRAP_MCS="$(FRIENDLY_TIME) mono ../../mcs/mcs.exe" > /dev/null || (echo FAILED; exit 1)
70 $(RUNTIME) --profile=$(PROFILER) ./mcs.exe $(USE_MCS_FLAGS) /target:exe /out:mcs2.exe $(BUILT_SOURCES) @$(response)