rename net_2_1 to moonlight
[mono.git] / runtime / Makefile.am
index 2b2731561b7cfbe33787dffb247fc97490c58f83..596c61b844b276585dc3fdafa971545a712c262a 100644 (file)
@@ -24,19 +24,19 @@ $(symlinks):
 
 SUPPORT_FILES = $(symlinks) mono-wrapper etc/mono/config
 
+if MOONLIGHT
+build_profiles = moonlight_raw
+test_profiles = moonlight_raw
+else
 build_profiles = net_2_0 net_3_5
 test_profiles = $(build_profiles)
+endif
 
 if INSTALL_4_0
 build_profiles += net_4_0
 #test_profiles += net_4_0
 endif
 
-if INSTALL_2_1
-build_profiles += net_2_1_raw
-test_profiles += net_2_1_raw
-endif
-
 if INSTALL_MONOTOUCH
 build_profiles += monotouch
 endif
@@ -71,7 +71,7 @@ clean-local:
 
 endif BUILD_MCS
 
-TEST_SUPPORT_FILES = $(tmpinst)/bin/mono $(tmpinst)/bin/mcs $(tmpinst)/bin/ilasm $(tmpinst)/bin/gmcs
+TEST_SUPPORT_FILES = $(tmpinst)/bin/mono $(tmpinst)/bin/ilasm $(tmpinst)/bin/gmcs $(tmpinst)/bin/al2
 
 # now a misnomer, but it'll go away soon enough.
 if ENABLE_NUNIT_TESTS
@@ -80,21 +80,13 @@ else
 test_select = ONLY_CENTUM_TESTS=yes
 endif
 
-if INSTALL_2_1
-moon-do-build: test-support-files
-       cd $(top_builddir)/../moon/class && $(MAKE) all
-else
-moon-do-build:
-       @:
-endif
-
 mcs-do-test-profiles:
        cd $(mcs_topdir) && $(MAKE) NO_DIR_CHECK=1 PROFILES='$(test_profiles)' test-profiles
 
 mcs-do-run-test-profiles: test-support-files
        cd $(mcs_topdir) && $(MAKE) NO_DIR_CHECK=1 PROFILES='$(test_profiles)' run-test-profiles
 
-if PLATFORM_WIN32
+if HOST_WIN32
 if CROSS_COMPILING
 cur_dir_cmd = pwd
 PLATFORM_PATH_SEPARATOR = :
@@ -113,7 +105,7 @@ endif
 mcs-compileall: mono-wrapper etc/mono/config
        save_MONO_PATH=$$MONO_PATH; mcs_topdir=`cd $(mcs_topdir) && $(cur_dir_cmd)`; ok=:; \
        for profile in $(test_profiles); do \
-         if [ "net_2_1" = "$$profile" ]; then \
+         if [ "moonlight" = "$$profile" ]; then \
           break; \
       fi; \
          if [ "net_3_5" = "$$profile" ]; then \
@@ -151,12 +143,6 @@ $(tmpinst)/bin/mono: mono-wrapper etc/mono/config
        $(mkinstalldirs) $(tmpinst)/bin
        cp mono-wrapper $@
 
-$(tmpinst)/bin/mcs: $(tmpinst)/bin/mono Makefile
-       echo '#! /bin/sh' > $@ ; \
-       r=`pwd`; m=`cd $(mcs_topdir) && pwd`; \
-       echo 'exec "'"$$r/$(tmpinst)/bin/mono"'" "'"$$m/class/lib/net_1_1/mcs.exe"'" "$$@"' >> $@ ; \
-       chmod +x $@
-
 $(tmpinst)/bin/gmcs: $(tmpinst)/bin/mono Makefile
        echo '#! /bin/sh' > $@ ; \
        r=`pwd`; m=`cd $(mcs_topdir) && pwd`; \
@@ -169,6 +155,12 @@ $(tmpinst)/bin/ilasm: $(tmpinst)/bin/mono Makefile
        echo 'exec "'"$$r/$(tmpinst)/bin/mono"'" "'"$$m/ilasm/ilasm.exe"'" "$$@"' >> $@ ; \
        chmod +x $@
 
+$(tmpinst)/bin/al2: $(tmpinst)/bin/mono Makefile
+       echo '#! /bin/sh' > $@ ; \
+       r=`pwd`; m=`cd $(mcs_topdir) && pwd`; \
+       echo 'exec "'"$$r/$(tmpinst)/bin/mono"'" "'"$$m/class/lib/net_2_0/al.exe"'" "$$@"' >> $@ ; \
+       chmod +x $@
+
 test-support-files: $(TEST_SUPPORT_FILES)
        @: