From a2acbc70a3eb6544a9909e71939633cf160b082e Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Fri, 16 Apr 2010 22:48:57 +0000 Subject: Build utils into their source directory equivalent in the build tree. Allow separate build tree for utils Use separate build tree for utils in abuild Signed-off-by: Patrick Georgi Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5453 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/sconfig/Makefile.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'util/sconfig') diff --git a/util/sconfig/Makefile.inc b/util/sconfig/Makefile.inc index 4e08135c14..aa2ce7ad8e 100644 --- a/util/sconfig/Makefile.inc +++ b/util/sconfig/Makefile.inc @@ -2,10 +2,10 @@ sconfigobj := sconfigobj += lex.yy.o sconfigobj += sconfig.tab.o -$(obj)/util/sconfig: +$(objutil)/sconfig: mkdir -p $@ -$(obj)/util/sconfig/%.o: $(obj)/util/sconfig/%.c +$(objutil)/sconfig/%.o: $(objutil)/sconfig/%.c printf " HOSTCC $(subst $(obj)/,,$(@))\n" $(HOSTCC) $(SCONFIGFLAGS) $(HOSTCFLAGS) -c -o $@ $< @@ -20,12 +20,12 @@ $(top)/util/sconfig/sconfig.tab.c_shipped: $(top)/util/sconfig/sconfig.y endif -$(obj)/util/sconfig/lex.yy.o: $(obj)/util/sconfig/sconfig.tab.h +$(objutil)/sconfig/lex.yy.o: $(objutil)/sconfig/sconfig.tab.h -$(obj)/util/sconfig/%: $(top)/util/sconfig/%_shipped +$(objutil)/sconfig/%: $(top)/util/sconfig/%_shipped mkdir -p $(dir $@) cp $< $@ -$(obj)/util/sconfig/sconfig: $(obj)/util/sconfig $(addprefix $(obj)/util/sconfig/,$(sconfigobj)) +$(objutil)/sconfig/sconfig: $(objutil)/sconfig $(addprefix $(objutil)/sconfig/,$(sconfigobj)) printf " HOSTCC $(subst $(obj)/,,$(@)) (link)\n" - $(HOSTCC) $(SCONFIGFLAGS) -o $@ $(addprefix $(obj)/util/sconfig/,$(sconfigobj)) + $(HOSTCC) $(SCONFIGFLAGS) -o $@ $(addprefix $(objutil)/sconfig/,$(sconfigobj)) -- cgit v1.2.3