summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2007-03-11 16:48:33 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-03-11 16:48:33 +0000
commit12213f870debe1b7efc27e32bba753307252adbe (patch)
tree4700ff0b401f14fd590b0431ad36f42d3cab4e4b /lib
parente9f291869ea249bfefe34ae833633c108e6369cc (diff)
downloadcoreboot-12213f870debe1b7efc27e32bba753307252adbe.tar.gz
coreboot-12213f870debe1b7efc27e32bba753307252adbe.tar.bz2
coreboot-12213f870debe1b7efc27e32bba753307252adbe.zip
This patch drives the idea of a hierarchical structure below $(obj) a bit
further. It is only tested with my Kconfig build dir fixes applied. Not sure how pretty this is. All the mkdirs increase build time by 0.2s, so it looks a lot more nasty than it actually is. If wishes, we can create the whole directory structure below build in the "prepare" target. It's not faster, but more limited to one place. The next step could be to spread out *_LIB_OBJ to lib/Makefile. in which case it is nice that you can just write object.o instead of $(obj)/object.o or $(obj)/lib/object.o ... The top level modules (initram, stage0, stage2, ..) are still in $(obj). So are the northbridge and southbridge object files - These require some more cleanup anyways, as they're defined in the mainboard Makefile. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@242 f3766cd6-281f-0410-b1cd-43a5c92072e9
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 69d86df1e0b2..905f3c7be58e 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -35,6 +35,7 @@ endif
lzma:
$(Q)printf "Building lzma... skipped\n"
-$(obj)/%.o: $(src)/lib/%.c
+$(obj)/lib/%.o: $(src)/lib/%.c
+ $(Q)mkdir -p $(obj)/lib
$(Q)$(CC) $(INITCFLAGS) -c $< -o $@