3 include ../build/rules.make
41 all_sources = $(COMPILER_SOURCES) cs-parser.cs
46 compiler.csproj.user \
56 install-local: gmcs.exe
57 $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/bin
58 $(INSTALL_BIN) gmcs.exe $(DESTDIR)$(prefix)/bin
61 -rm -f $(DESTDIR)$(prefix)/bin/mcs.exe
63 test-local run-test-local:
66 rm -f *.exe *.pdb cs-parser.cs y.output
68 dist-local: dist-default
70 gmcs.exe: $(all_sources)
71 $(BOOT_COMPILE) /target:exe /out:$@ $^
73 cs-parser.cs: cs-parser.jay $(topdir)/jay/skeleton.cs
74 $(topdir)/jay/jay -ctv < $(topdir)/jay/skeleton.cs $< >$@
80 # This used to be called test, but that conflicts with the global
83 btest: mcs2.exe mcs3.exe
84 ls -l mcs2.exe mcs3.exe
87 $(TIME) $(RUNTIME) ./gmcs.exe $(USE_MCS_FLAGS) /target:exe /out:$@ $(all_sources)
90 $(TIME) $(RUNTIME) ./mcs2.exe $(USE_MCS_FLAGS) /target:exe /out:$@ $(all_sources)
97 make btest USE_MCS_FLAGS=
99 # we need this because bash tries to use its own crappy timer
100 FRIENDLY_TIME = $(shell which time) -f'%U seconds'
104 @ $(FRIENDLY_TIME) $(RUNTIME) ./mcs.exe $(USE_MCS_FLAGS) /target:exe /out:mcs2.exe $(all_sources) > /dev/null || (echo FAILED; exit 1)
106 @ $(FRIENDLY_TIME) $(RUNTIME) ./mcs2.exe $(USE_MCS_FLAGS) /target:exe /out:mcs3.exe $(all_sources) > /dev/null || (echo FAILED; exit 1)
108 @ rm -f ../class/lib/mscorlib.dll
109 @ (cd ../class/corlib ; make BOOTSTRAP_MCS="$(FRIENDLY_TIME) mono ../../mcs/mcs.exe" > /dev/null ) || (echo FAILED; exit 1)
113 @ rm -f ../class/lib/mscorlib.dll
114 @ (cd ../class/corlib ; make BOOTSTRAP_MCS="$(FRIENDLY_TIME) mono ../../mcs/mcs.exe" > /dev/null ) || (echo FAILED; exit 1)
119 $(RUNTIME) --profile=$(PROFILER) ./mcs.exe $(USE_MCS_FLAGS) /target:exe /out:mcs2.exe $(all_sources)
122 echo $(all_sources) > res