3 include ../build/rules.make
41 all_sources = $(COMPILER_SOURCES) cs-parser.cs
55 install-local: gmcs.exe
56 $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/lib/mono/2.0
57 $(INSTALL_BIN) gmcs.exe $(DESTDIR)$(prefix)/lib/mono/2.0
60 -rm -f $(DESTDIR)$(prefix)/bin/mcs.exe
62 test-local run-test-local:
65 rm -f *.exe *.pdb cs-parser.cs y.output
67 dist-local: dist-default
69 gmcs.exe: $(all_sources)
70 MONO_PATH="../class/lib/net_2_0_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" mono ../mcs/mcs.exe -2 /target:exe /debug /define:MCS_DEBUG /out:$@ $^
72 gmcs2.exe: $(all_sources)
73 MONO_PATH="../class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" mcs -2 /target:exe /debug /define:MCS_DEBUG /out:$@ $^
75 cs-parser.cs: cs-parser.jay $(topdir)/jay/skeleton.cs
76 $(topdir)/jay/jay -ctv < $(topdir)/jay/skeleton.cs $< > jay-tmp.out && mv jay-tmp.out $@
82 # This used to be called test, but that conflicts with the global
85 btest: mcs2.exe mcs3.exe
86 ls -l mcs2.exe mcs3.exe
89 $(TIME) $(RUNTIME) ./gmcs.exe $(USE_MCS_FLAGS) /target:exe /out:$@ $(all_sources)
92 $(TIME) $(RUNTIME) ./mcs2.exe $(USE_MCS_FLAGS) /target:exe /out:$@ $(all_sources)
98 rm -f mcs2.exe mcs3.exe
99 make btest USE_MCS_FLAGS=
101 # we need this because bash tries to use its own crappy timer
102 FRIENDLY_TIME = $(shell which time) -f'%U seconds'
106 $(FRIENDLY_TIME) $(RUNTIME) ./mcs.exe $(USE_MCS_FLAGS) /target:exe /out:mcs2.exe $(all_sources) > /dev/null || (echo FAILED; exit 1)
108 @ $(FRIENDLY_TIME) $(RUNTIME) ./mcs2.exe $(USE_MCS_FLAGS) /target:exe /out:mcs3.exe $(all_sources) > /dev/null || (echo FAILED; exit 1)
110 @ rm -f ../class/lib/mscorlib.dll
111 @ (cd ../class/corlib ; make BOOTSTRAP_MCS="$(FRIENDLY_TIME) mono ../../mcs/mcs.exe" > /dev/null ) || (echo FAILED; exit 1)
115 @ rm -f ../class/lib/mscorlib.dll
116 @ (cd ../class/corlib ; make BOOTSTRAP_MCS="$(FRIENDLY_TIME) mono ../../mcs/mcs.exe" > /dev/null ) || (echo FAILED; exit 1)
121 $(RUNTIME) --profile=$(PROFILER) ./mcs.exe $(USE_MCS_FLAGS) /target:exe /out:mcs2.exe $(all_sources)
124 echo $(all_sources) > res