Author: raja
Date: 2007-05-11 04:59:22 -0400 (Fri, 11 May 2007)
New Revision: 77207

Removed:
   trunk/mcs/class/compat/
   trunk/mcs/class/lib/
Modified:
   trunk/mcs/ChangeLog
   trunk/mcs/Makefile
   trunk/mcs/build/ChangeLog
   trunk/mcs/build/executable.make
   trunk/mcs/build/library.make
   trunk/mcs/build/profiles/net_2_0_bootstrap.make
   trunk/mcs/class/
   trunk/mcs/class/ChangeLog
   trunk/mcs/class/Makefile
   trunk/mcs/mcs/ChangeLog
   trunk/mcs/mcs/Makefile
Log:
In .:
        * Makefile (net_2_0_bootstrap_SUBDIRS): Add 'mcs'.

In build:
        * profiles/net_2_0_bootstrap.make: Move rules for mcs.exe to
        mcs/Makefile.
        * library.make (the_libdir, build_libdir): New.  Create these
        directories on demand instead of worrying about keeping the list
        of profiles uptodate.
        * executable.make (prog_dir): Likewise.

In class:
        * Makefile (DIST_PROFILE_DIRS, COMPAT_PROFILE_DIRS): Remove.
        (dist-local): No need for additional actions.

In mcs:
        * Makefile [PROFILE=net_2_0_bootstrap]: Add special-case rules.

** warning: uses a feature introduced into GNU Make in late 2002 **


Modified: trunk/mcs/ChangeLog
===================================================================
--- trunk/mcs/ChangeLog 2007-05-11 08:25:24 UTC (rev 77206)
+++ trunk/mcs/ChangeLog 2007-05-11 08:59:22 UTC (rev 77207)
@@ -1,3 +1,7 @@
+2007-05-11  Raja R Harinath  <[EMAIL PROTECTED]>
+
+       * Makefile (net_2_0_bootstrap_SUBDIRS): Add 'mcs'.
+
 2007-04-18  Marek Habersack  <[EMAIL PROTECTED]>
 
        * Makefile (SUBDIRS): removed tools/culevel, it is now built in

Modified: trunk/mcs/Makefile
===================================================================
--- trunk/mcs/Makefile  2007-05-11 08:25:24 UTC (rev 77206)
+++ trunk/mcs/Makefile  2007-05-11 08:59:22 UTC (rev 77207)
@@ -5,8 +5,8 @@
 
 basic_SUBDIRS := build jay mcs class
 net_1_1_bootstrap_SUBDIRS := build jay mcs class ilasm tools
-net_2_0_bootstrap_SUBDIRS := build class ilasm tools
-net_2_0_SUBDIRS := build jay gmcs class nunit20 ilasm tests errors tools
+net_2_0_bootstrap_SUBDIRS := build jay mcs class ilasm tools
+net_2_0_SUBDIRS := build jay gmcs class nunit20 ilasm tools tests errors
 
 # List of test subdirs that should pass 100%
 centum_tests := \

Modified: trunk/mcs/build/ChangeLog
===================================================================
--- trunk/mcs/build/ChangeLog   2007-05-11 08:25:24 UTC (rev 77206)
+++ trunk/mcs/build/ChangeLog   2007-05-11 08:59:22 UTC (rev 77207)
@@ -1,3 +1,12 @@
+2007-05-11  Raja R Harinath  <[EMAIL PROTECTED]>
+
+       * profiles/net_2_0_bootstrap.make: Move rules for mcs.exe to
+       mcs/Makefile.
+       * library.make (the_libdir, build_libdir): New.  Create these
+       directories on demand instead of worrying about keeping the list
+       of profiles uptodate.
+       * executable.make (prog_dir): Likewise.
+
 2007-03-17  Marek Sieradzki  <[EMAIL PROTECTED]>
 
        * library.make: Show correct log (TestResult-ondotnet-PROFILE...) for

Modified: trunk/mcs/build/executable.make
===================================================================
--- trunk/mcs/build/executable.make     2007-05-11 08:25:24 UTC (rev 77206)
+++ trunk/mcs/build/executable.make     2007-05-11 08:59:22 UTC (rev 77207)
@@ -2,7 +2,8 @@
 #
 # The rules for building a program.
 
-base_prog = $(shell basename $(PROGRAM))
+base_prog = $(notdir $(PROGRAM))
+prog_dir = $(dir $(PROGRAM))
 sourcefile = $(base_prog).sources
 base_prog_config := $(wildcard $(base_prog).config.$(PROFILE))
 ifndef base_prog_config
@@ -80,7 +81,10 @@
 PROGRAM_COMPILE = $(CSCOMPILE)
 endif
 
-$(PROGRAM): $(BUILT_SOURCES) $(EXTRA_SOURCES) $(response)
+$(prog_dir):
+       $(MKINSTALLDIRS) $@
+
+$(PROGRAM): $(BUILT_SOURCES) $(EXTRA_SOURCES) $(response) | $(prog_dir)
        $(PROGRAM_COMPILE) -target:exe -out:$(base_prog) $(BUILT_SOURCES) 
$(EXTRA_SOURCES) @$(response)
 ifneq ($(base_prog),$(PROGRAM))
        mv $(base_prog) $(PROGRAM)

Modified: trunk/mcs/build/library.make
===================================================================
--- trunk/mcs/build/library.make        2007-05-11 08:25:24 UTC (rev 77206)
+++ trunk/mcs/build/library.make        2007-05-11 08:59:22 UTC (rev 77207)
@@ -45,13 +45,15 @@
 endif
 
 makefrag = $(depsdir)/$(PROFILE)_$(LIBRARY).makefrag
-the_lib = $(topdir)/class/$(lib_dir)/$(PROFILE)/$(LIBRARY_NAME)
+the_libdir = $(topdir)/class/$(lib_dir)/$(PROFILE)/
+the_lib = $(the_libdir)$(LIBRARY_NAME)
 the_pdb = $(the_lib:.dll=.pdb)
 the_mdb = $(the_lib).mdb
 library_CLEAN_FILES += $(makefrag) $(the_lib) $(the_pdb) $(the_mdb)
 
 ifdef LIBRARY_NEEDS_POSTPROCESSING
-build_lib = fixup/$(PROFILE)/$(LIBRARY_NAME)
+build_libdir = fixup/$(PROFILE)/
+build_lib = $(build_libdir)$(LIBRARY_NAME)
 library_CLEAN_FILES += $(build_lib) $(build_lib:.dll=.pdb)
 else
 build_lib = $(the_lib)
@@ -290,7 +292,12 @@
 
 # The library
 
-$(build_lib): $(response) $(sn) $(BUILT_SOURCES)
+$(the_libdir) $(build_libdir):
+       $(MKINSTALLDIRS) $@
+
+$(the_lib): | $(the_libdir)
+
+$(build_lib): $(response) $(sn) $(BUILT_SOURCES) | $(build_libdir)
 ifdef LIBRARY_USE_INTERMEDIATE_FILE
        $(LIBRARY_COMPILE) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS) -target:library 
-out:$(LIBRARY_NAME) $(BUILT_SOURCES_cmdline) @$(response)
        $(SN) $(SNFLAGS) $(LIBRARY_NAME) $(LIBRARY_SNK)

Modified: trunk/mcs/build/profiles/net_2_0_bootstrap.make
===================================================================
--- trunk/mcs/build/profiles/net_2_0_bootstrap.make     2007-05-11 08:25:24 UTC 
(rev 77206)
+++ trunk/mcs/build/profiles/net_2_0_bootstrap.make     2007-05-11 08:59:22 UTC 
(rev 77207)
@@ -9,22 +9,8 @@
 
 profile-check: 
 
-all-local: $(topdir)/class/lib/$(PROFILE)/mcs.exe 
$(topdir)/class/lib/$(PROFILE)/mcs.exe.config
-
-$(topdir)/class/lib/$(PROFILE)/mcs.exe: $(topdir)/class/lib/default/mcs.exe
-       cp $< $@
-
-$(topdir)/class/lib/$(PROFILE)/mcs.exe.config: $(topdir)/gmcs/gmcs.exe.config
-       cp $< $@
-
 PROFILE_MCS_FLAGS = -d:NET_1_1 -d:BOOTSTRAP_NET_2_0
 FRAMEWORK_VERSION = 2.0
 NO_SIGN_ASSEMBLY = yes
 NO_TEST = yes
 NO_INSTALL = yes
-
-clean-local: clean-profile
-
-clean-profile:
-       rm -f $(topdir)/class/lib/$(PROFILE)/mcs.exe
-       rm -f $(topdir)/class/lib/$(PROFILE)/mcs.exe.config


Property changes on: trunk/mcs/class
___________________________________________________________________
Name: svn:ignore
   - semantic.cache

   + semantic.cache
lib
compat


Modified: trunk/mcs/class/ChangeLog
===================================================================
--- trunk/mcs/class/ChangeLog   2007-05-11 08:25:24 UTC (rev 77206)
+++ trunk/mcs/class/ChangeLog   2007-05-11 08:59:22 UTC (rev 77207)
@@ -1,3 +1,8 @@
+2007-05-11  Raja R Harinath  <[EMAIL PROTECTED]>
+
+       * Makefile (DIST_PROFILE_DIRS, COMPAT_PROFILE_DIRS): Remove.
+       (dist-local): No need for additional actions.
+
 2007-02-22  Marek Habersack  <[EMAIL PROTECTED]>
 
        * Makefile: Added Mono.Data.Sqlite to build.

Modified: trunk/mcs/class/Makefile
===================================================================
--- trunk/mcs/class/Makefile    2007-05-11 08:25:24 UTC (rev 77206)
+++ trunk/mcs/class/Makefile    2007-05-11 08:59:22 UTC (rev 77207)
@@ -135,13 +135,11 @@
 basic_files = mcs.exe mscorlib.dll System.dll System.Xml.dll
 monolite_files = $(basic_files:%=lib/monolite/%)
 
-DIST_PROFILE_DIRS = basic net_1_1_bootstrap default net_2_0_bootstrap net_2_0
-COMPAT_PROFILE_DIRS = default net_2_0
-
 lib/monolite:
        $(MKINSTALLDIRS) $@
 
-$(monolite_files): lib/monolite/%: lib/basic/% lib/monolite
+$(monolite_files): | lib/monolite
+$(monolite_files): lib/monolite/%: lib/basic/%
        cp -p $< $@
 
 $(basic_files:%=lib/basic/%):
@@ -149,4 +147,3 @@
 
 dist-default: $(monolite_files)
 dist-local: dist-default
-       -$(MKINSTALLDIRS) $(DIST_PROFILE_DIRS:%=$(distdir)/lib/%) 
$(COMPAT_PROFILE_DIRS:%=$(distdir)/compat/%)

Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog     2007-05-11 08:25:24 UTC (rev 77206)
+++ trunk/mcs/mcs/ChangeLog     2007-05-11 08:59:22 UTC (rev 77207)
@@ -1,3 +1,7 @@
+2007-05-11  Raja R Harinath  <[EMAIL PROTECTED]>
+
+       * Makefile [PROFILE=net_2_0_bootstrap]: Add special-case rules.
+
 2007-05-11  Marek Safar  <[EMAIL PROTECTED]>
 
        * typemanager.cs (IsFriendAssembly): Should not be called for building

Modified: trunk/mcs/mcs/Makefile
===================================================================
--- trunk/mcs/mcs/Makefile      2007-05-11 08:25:24 UTC (rev 77206)
+++ trunk/mcs/mcs/Makefile      2007-05-11 08:59:22 UTC (rev 77207)
@@ -20,7 +20,30 @@
 cs-parser.cs: cs-parser.jay $(topdir)/jay/skeleton.cs
        $(topdir)/jay/jay -ctv < $(topdir)/jay/skeleton.cs $< > jay-tmp.out && 
mv jay-tmp.out $@
 
+ifeq (net_2_0_bootstrap, $(PROFILE))
+
+all-local $(STD_TARGET:=-local):
+       @:
+
+all-local: $(PROGRAM) $(PROGRAM).config
+clean-local: clean-program
+clean-program:
+       rm -f $(PROGRAM) $(PROGRAM).config
+
+progdir = $(dir $(PROGRAM))
+
+$(progdir):
+       $(MKINSTALLDIRS) $@
+
+$(PROGRAM): $(topdir)/class/lib/default/mcs.exe | $(progdir)
+       cp $< $@
+
+$(PROGRAM).config: $(topdir)/gmcs/gmcs.exe.config | $(progdir)
+       cp $< $@
+
+else
 include ../build/executable.make
+endif
 
 ifeq (default, $(PROFILE))
 # Utility rule to make debugging somewhat easier.

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to