summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMyles Watson <mylesgw@gmail.com>2009-10-28 15:30:11 +0000
committerMyles Watson <mylesgw@gmail.com>2009-10-28 15:30:11 +0000
commitd4e5c0a2282a2af05d620fb0f8806d42a998c6da (patch)
tree478a3674a64a87a5e4bfa6cb428c275e5258a5e2 /Makefile
parent2a87ac64030da0f445dd285a09bbfe44893c4a7a (diff)
Replace hard coded build with $(obj) paths.
Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4877 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index f304fb6809..a5bbf31e30 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@ export top := $(shell pwd)
export src := $(top)/src
export srck := $(top)/util/kconfig
export obj := $(top)/build
-export objk := $(top)/build/util/kconfig
+export objk := $(obj)/util/kconfig
export sconfig := $(top)/util/sconfig
export yapps2_py := $(sconfig)/yapps2.py
export config_g := $(sconfig)/config.g
@@ -289,8 +289,8 @@ doxygen-clean:
rm -rf $(DOXYGEN_OUTPUT_DIR)
clean: doxygen-clean
- rm -f $(allobjs) build/coreboot* .xcompile
- rm -f build/option_table.* build/crt0_includes.h build/ldscript
+ rm -f $(allobjs) $(obj)/coreboot* .xcompile
+ rm -f $(obj)/option_table.* $(obj)/crt0_includes.h $(obj)/ldscript
rm -f $(obj)/mainboard/$(MAINBOARDDIR)/static.c $(obj)/mainboard/$(MAINBOARDDIR)/config.py $(obj)/mainboard/$(MAINBOARDDIR)/static.dot
rm -f $(obj)/mainboard/$(MAINBOARDDIR)/auto.inc $(obj)/mainboard/$(MAINBOARDDIR)/crt0.s $(obj)/mainboard/$(MAINBOARDDIR)/crt0.disasm
rmdir -p $(alldirs) 2>/dev/null >/dev/null || true
@@ -300,7 +300,7 @@ distclean: clean
rm -f .config .config.old ..config.tmp .kconfig.d .tmpconfig*
update:
- dongle.py -c /dev/term/1 build/coreboot.rom EOF
+ dongle.py -c /dev/term/1 $(obj)/coreboot.rom EOF
# This include must come _before_ the pattern rules below!
# Order _does_ matter for pattern rules.
@@ -311,7 +311,7 @@ $(obj)/ldoptions: $(obj)/config.h
awk '/^#define ([^"])* ([^"])*$$/ {print $$2 " = " $$3 ";";}' $< > $@
$(obj)/romcc: $(top)/util/romcc/romcc.c
- @printf " HOSTCC build/romcc (this may take a while)\n"
+ @printf " HOSTCC $(obj)/romcc (this may take a while)\n"
$(HOSTCC) -g -O2 -Wall -o $@ $<
.PHONY: $(PHONY) prepare prepare2 clean distclean doxygen doxy coreboot