aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2003-06-07 00:54:35 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2003-06-07 00:54:35 -0700
commit1ffdd43733501712676a6a898c69608f2491d959 (patch)
tree9886c303e7718a2da1e1df4e0c0bdcccfa0f9193 /Makefile
parent046511a42eb3b5b7ededf7964be712069de5a8fe (diff)
downloadhistory-1ffdd43733501712676a6a898c69608f2491d959.tar.gz
[PATCH] be more flexible about creating library archives
New makefile variable introduced: lib-y The lib-y syntax allows you to do the usual tricks such as: lib-$(CONFIG_SMP) += percpu_counter.o A built-in.o is always present in a directory that list .o files in either obj-* or lib-*. In contrast, lib.a is made only when lib-y is defined. I also updated lib/Makefile, so that crc32.o is now always built-in if selected.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5932e5ffe0c8fb..c2a5627d3c18c4 100644
--- a/Makefile
+++ b/Makefile
@@ -288,7 +288,9 @@ init-y := $(patsubst %/, %/built-in.o, $(init-y))
core-y := $(patsubst %/, %/built-in.o, $(core-y))
drivers-y := $(patsubst %/, %/built-in.o, $(drivers-y))
net-y := $(patsubst %/, %/built-in.o, $(net-y))
-libs-y := $(patsubst %/, %/lib.a, $(libs-y))
+libs-y1 := $(patsubst %/, %/lib.a, $(libs-y))
+libs-y2 := $(patsubst %/, %/built-in.o, $(libs-y))
+libs-y := $(libs-y1) $(libs-y2)
ifdef include_config