Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.5.24 /Rules.make

Filename:/Rules.make
Lines Added:31
Lines Deleted:0
Also changed in: (Previous) 2.5.23  2.5.22  2.5.21  2.5.20  2.5.19  2.5.18 
(Following) 2.5.25  2.5.30  2.5.35  2.5.40  2.5.40-ac1  2.5.40-ac2 

Location
[  2.5.24
   o  Rules.make

Patch

diff -Nru a/Rules.make b/Rules.make
--- a/Rules.make   Thu Jun 20 15:54:00 2002
+++ b/Rules.make   Thu Jun 20 15:54:00 2002
@@ -22,6 +22,30 @@
   TOPDIR_REL := $(subst $(space),,$(foreach d,$(subst /, ,$(RELDIR)),../))
 endif
 
+# Some paths for the Makefiles to use
+# ---------------------------------------------------------------------------
+
+# Usage:
+#
+# $(obj)/target.o                     : target.o in the build dir
+# $(src)/target.c                     : target.c in the source dir
+# $(objtree)/include/linux/version.h  : Some file relative to the build
+#               dir root
+# $(srctree)/include/linux/module.h   : Some file relative to the source
+#                    dir root
+#
+# Those can only be used in the section after
+# include $(TOPDIR)/Rules.make, i.e for generated files and the like.
+# Intentionally.
+#
+# We don't support separate source / object yet, so these are just
+# placeholders for now
+
+obj := .
+src := .
+objtree := $(TOPDIR)
+srctree := $(TOPDIR)
+
 # Figure out what we need to build from the various variables
 # ===========================================================================
 
@@ -381,6 +405,13 @@
 
 endif # ! modules_install
 endif # ! fastdep
+
+# Shipped files
+# ===========================================================================
+
+%:: %_shipped
+   @echo '  CP     $(RELDIR)/$@'
+   @cp $< $@
 
 # ===========================================================================
 # Generic stuff


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.