]> git.neil.brown.name Git - history.git/commitdiff
kbuild: small toplevel makefile tidyup
authorChristoph Hellwig <hch@sb.bsdonline.org>
Thu, 6 Jun 2002 04:09:25 +0000 (23:09 -0500)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Thu, 6 Jun 2002 04:09:25 +0000 (23:09 -0500)
- add comment about the vmlinux link components
- get rid of DRIVERS-y - always linking in sound/sound.o doesn't harm
- sort SUBDIRS in link order
- always use := to assign
- remove supeflous $(TOPDIR) for lib/lib.a

Makefile

index d2d326d6786e70ccbf7cf7338b8119b2e47db67c..ba741667ec40e355cfe58925df0e52ff7b7d6825 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -177,18 +177,14 @@ ifdef CONFIG_MODULES
 EXPORT_FLAGS := -DEXPORT_SYMTAB
 endif
 
-INIT           =init/init.o
-CORE_FILES     =kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o
-NETWORKS       =net/network.o
-
-LIBS           =$(TOPDIR)/lib/lib.a
-SUBDIRS                =init kernel lib drivers mm fs net ipc sound
-
-DRIVERS-y      = drivers/built-in.o
-DRIVERS-$(CONFIG_SOUND) += sound/sound.o
-
-DRIVERS := $(DRIVERS-y)
-
+# Link components for vmlinux
+# ---------------------------------------------------------------------------
+SUBDIRS                := init kernel mm fs ipc lib drivers sound net
+INIT           := init/init.o
+CORE_FILES     := kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o
+LIBS           := lib/lib.a
+DRIVERS                := drivers/built-in.o sound/sound.o
+NETWORKS       := net/network.o
 
 include arch/$(ARCH)/Makefile