| Kernel v2.5.24 /Rules.make |
|---|
 2.5.24
 Rules.make
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
|